program which has a class named FileHandlerto read StudentName, MarksObtained from the attached picture. 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

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

PROGRAMMING LANGUAGE: C++

 

Write a program which has a class named FileHandlerto read StudentName, MarksObtained from the attached picture. 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.

A
B
1 StudentName
MarksObtained
2 ABDUR REHMAN
87
3 ABDUR REHMAN BIN TARIQ
76
4 AHMED MAJID BUTT
56
5 AHMED SHAFIQUE LONE
6 AIMEN BABAR
7 DANISH NAWAZ
78
98
76
8 FATIMA SAFA
54
9 KAINAT ARSHAD
33
10 MAIRA IMRAN
55
11 MALIK ABDUR RAFAY
89
12 MARYAM KHALIL
98
13 MIRZA ASJAD BASHARAT
76
14 MONEEBA HUSSAIN
56
15 MUHAMMAD HAMMAD ALI
76
16 MUHAMMAD HARIS
77
17 MUHAMMAD IBRAHIM
88
18 MUHAMMAD MUDDASIR HAYAT KHA
44
19 MUHAMMAD TAIMOOR ATHER
56
20 MUHAMMAD UMER FAROOQ
78
21 NAHIL RAUF
43
22 REHAN AHMAD KHAN
71
23 SAAD JAVED
50
24 SAIRA RIASAT
55
25 SHAHERYAR MUNIR
23
26 SHAWAIZ OBAID
67
27 SYED HURR ALI SHAH
76
28 SYED MOBASHAR ALI
45
29 TAYYAB NAWAZ SATTI
65
30 WAHEEB AGMAL MAGED ALI
76
31 ZURAIZ NAYYAR
89
32 MUHAMAD ALYAN
84
33 MUHAMMAD AHMAD
73
34 MUHAMMAD FAIZAN
56
35 HASSAN SADAQET
60
36 AMEER HAMZA
68
37 MUHAMMAD HASHER
58
38 ASHIR ALI
44
39 SAAD HAROON
56
40 MUHAMMAD SADAQAT ASLAM
41
41 QASIM EJAZ
51
Transcribed Image Text:A B 1 StudentName MarksObtained 2 ABDUR REHMAN 87 3 ABDUR REHMAN BIN TARIQ 76 4 AHMED MAJID BUTT 56 5 AHMED SHAFIQUE LONE 6 AIMEN BABAR 7 DANISH NAWAZ 78 98 76 8 FATIMA SAFA 54 9 KAINAT ARSHAD 33 10 MAIRA IMRAN 55 11 MALIK ABDUR RAFAY 89 12 MARYAM KHALIL 98 13 MIRZA ASJAD BASHARAT 76 14 MONEEBA HUSSAIN 56 15 MUHAMMAD HAMMAD ALI 76 16 MUHAMMAD HARIS 77 17 MUHAMMAD IBRAHIM 88 18 MUHAMMAD MUDDASIR HAYAT KHA 44 19 MUHAMMAD TAIMOOR ATHER 56 20 MUHAMMAD UMER FAROOQ 78 21 NAHIL RAUF 43 22 REHAN AHMAD KHAN 71 23 SAAD JAVED 50 24 SAIRA RIASAT 55 25 SHAHERYAR MUNIR 23 26 SHAWAIZ OBAID 67 27 SYED HURR ALI SHAH 76 28 SYED MOBASHAR ALI 45 29 TAYYAB NAWAZ SATTI 65 30 WAHEEB AGMAL MAGED ALI 76 31 ZURAIZ NAYYAR 89 32 MUHAMAD ALYAN 84 33 MUHAMMAD AHMAD 73 34 MUHAMMAD FAIZAN 56 35 HASSAN SADAQET 60 36 AMEER HAMZA 68 37 MUHAMMAD HASHER 58 38 ASHIR ALI 44 39 SAAD HAROON 56 40 MUHAMMAD SADAQAT ASLAM 41 41 QASIM EJAZ 51
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY