Question: a ) Construct a program that prompts the user to input the number of students they wish to document. Subsequently, within a loop, gather information

a) Construct a program that prompts the user to input the number of students they wish to document. Subsequently, within a loop, gather information on each student, including their name and corresponding scores, and record this data into a text file named "Students.txt." The structure of the text file should resemble the following:
Jesse Aarons
97
Leslie Burke
85
Janice Avery
82
b) Develop a separate program to read the file, calculate the average score, and identify students whose scores surpass the calculated average. The output should be presented as follows:
The average score is 88
Jesse Aaronss score is above the average.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!