Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions