Write a program which has a class named FileHandler to read StudentName, MarksObtained from the attached file. The class should have a function which calculates grade for a student and then adds it in a new column i.e. Grade. The grade should be calculated considering the following criteria. A: 87-100, B+: 80-86, B: 72-79, C+: 66-71, C: 60-65, D: 50-59, F: 0-49 The file should be saved once grade for all students is calculated. Write the driver program for executing the task.
Write a program which has a class named FileHandler to read StudentName, MarksObtained from the attached file. The class should have a function which calculates grade for a student and then adds it in a new column i.e. Grade. The grade should be calculated considering the following criteria. A: 87-100, B+: 80-86, B: 72-79, C+: 66-71, C: 60-65, D: 50-59, F: 0-49 The file should be saved once grade for all students is calculated. Write the driver program for executing the task.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
NEED PROGRAM CODE IN C++ VISUAL STUDIO AND OUTPUT screen shots ALL done by file handeling
STUDENTS LIST IS GIVEN.
Write a program which has a class named FileHandler to read StudentName, MarksObtained from the attached file. The class should have a function which calculates grade for a student and then adds it in a new column i.e. Grade. The grade should be calculated considering the following criteria.
A: 87-100, B+: 80-86, B: 72-79, C+: 66-71, C: 60-65, D: 50-59, F: 0-49
The file should be saved once grade for all students is calculated.
Write the driver program for executing the task.
StudentName | MarksObtained | |
ABDUR REHMAN | 87 | |
ABDUR REHMAN BIN TARIQ | 76 | |
AHMED MAJID BUTT | 56 | |
AHMED SHAFIQUE LONE | 78 | |
AIMEN BABAR | 98 | |
DANISH NAWAZ | 76 | |
FATIMA SAFA | 54 | |
KAINAT ARSHAD | 33 | |
MAIRA IMRAN | 55 | |
MALIK ABDUR RAFAY | 89 | |
MARYAM KHALIL | 98 | |
MIRZA ASJAD BASHARAT | 76 | |
MONEEBA HUSSAIN | 56 | |
MUHAMMAD HAMMAD ALI | 76 | |
MUHAMMAD HARIS | 77 | |
MUHAMMAD IBRAHIM | 88 | |
MUHAMMAD MUDDASIR HAYAT KHAN | 44 | |
MUHAMMAD TAIMOOR ATHER | 56 | |
MUHAMMAD UMER FAROOQ | 78 | |
NAHIL RAUF | 43 | |
REHAN AHMAD KHAN | 71 | |
SAAD JAVED | 50 | |
SAIRA RIASAT | 55 | |
SHAHERYAR MUNIR | 23 | |
SHAWAIZ OBAID | 67 | |
SYED HURR ALI SHAH | 76 | |
SYED MOBASHAR ALI | 45 | |
TAYYAB NAWAZ SATTI | 65 | |
WAHEEB AGMAL MAGED ALI | 76 | |
ZURAIZ NAYYAR | 89 | |
MUHAMAD ALYAN | 84 | |
MUHAMMAD AHMAD | 73 | |
MUHAMMAD FAIZAN | 56 | |
HASSAN SADAQET | 60 | |
AMEER HAMZA | 68 | |
MUHAMMAD HASHER | 58 | |
ASHIR ALI | 44 | |
SAAD HAROON | 56 | |
MUHAMMAD SADAQAT ASLAM | 41 | |
QASIM EJAZ | 51 |
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education