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

Write a C++ program that will display the following menu and work accordingly. A

ID: 3560589 • Letter: W

Question

Write a C++ program that will display the following menu and work accordingly. A menu function that will display the following choices:

1. Enter the name of the file that contains students enrolled in the computer course.

2. Screen display of average and the letter grade for each student.

3. Display the maximum exam average on the screen. Student Name is not required.

4. Display the minimum exam average on the screen. Student Name is not required.

5. Write the calculated data to "result.txt" file.

6. Exit.

Sample Output RUN (not a complete run- menu should be shown after each selection):

Enter 1-6 to choose one of the following selections:

1. Enter the student file name.

2. Average and the letter grade for each student.

3. Display the maximum exam average on the screen.

4. Display the minimum exam average on the screen.

5. Write the calculated data, similar to the one shown below, to "result.txt" file.

6. Exit.

>> 1

>> studInfo.txt

>> 2

First name Last Name Exams Average Letter Grade

---------- --------- ------------- ------------

Student one 92 A

Student two 80 B

Student three 70 C

NOTE: 1. Read the information stored in the file and store it in an array.

3. The name of the file that contains student information is studInfo.txt

Make sure: (i) Each menu option should be done by designing an appropriate function, even the display portion.

(iv) Data validation for file IO is required.

(v) Options 3-5 can be done only if 1 and 2 have been selected before.

NOTEPAD file

student   one       12345   70   70   80
student two       23456   80   76   98
student   three   78654   90   77   85
student   four   55544   77   80   30   
student   five   98766   90   90   92
student   six       22110   60   70   50

Explanation / Answer

You can also run your program via command prompt like so:

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