Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This project requires you to write a C++ program that willmanipulate data stored

ID: 3610254 • Letter: T

Question

This project requires you to write a C++ program that willmanipulate data stored in an array of structs. This program willgive you practice inputting data from files, writing and callingfunctions and using arrays.

A textfile contains information about the final exam scores forstudents in two sections of an art history class. Store allof the student data in one array of structs. Each line inthe input file begins with a command (P, S, C, A, D, Q). Yourprogram will be command driven.

P: Print the contents of the list

C: Change the test score for a particular student; input the IDand the new score.

S: Print the data for one section; input the section number

A: Add data for a new student to the end of the array; input thesection, ID, and score

D: Delete the data for a particular student; input the ID todelete.

Q: Quit processing. Sort the array into ascending order by ID.Print a report. The report should contain a listing of the ids andscores by section, the number of students in each section, theaverage of the scores in each section and the high score in eachsection. The average should be a decimal formatted with 1 decimalplace. Print the report to the screen.

            

Format of the input file: Each linebegins with a command. The format of the rest of the linedepends on the command.

P

C <id> <new test score>

S <section number>

A<section number><id> < test score>

D <id>

Q

Sample lines:

A        62        5555   86

P         

A        61        6666   83

C         1220    75

S          61

D 5555

P

Q

Notes:

1. Remember to review the grading algorithm.

2 Prompt the user to input the name of the input file. Twosample files are fiveA.txt and fiveB.txt. 3. Print an error messageif the input file is missing.

4. Do not use global variables.

5.You should use functions to accomplish each task.

6. Use function prototypes. Declare the main function before youdeclare additional functions.

7. You may assume that there are no more than 50 students.

Explanation / Answer

This project requires you to write a C++ program that willmanipulate data stored

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote