Question: Write a program that read the given file StudentScores.txt. Store the scores for each student in an array (this should be done automatically by the

Write a program that read the given file StudentScores.txt. Store the scores for each student in an array (this should be done automatically by the program). Your program will calculate the following results and display the results on the screen. The lowest number in the array The highest number in the array The total of the numbers in the array (use integer type for total) The average of the numbers in the array (use integer type for average) The grade based on the average according to the following grading scale Test Score Letter Grade 90100 A 8089 B 7079 C 6069 D 059 F For example, if the following is the records in StudentScores.txt Kate 80 83 83 82 90 88 Tom 79 70 70 73 66 69 Andrew 90 92 94 92 90 87 The results displayed on the screen should look like the following. Name lowest highest total average grade Kate 80 90 506 84 B Tom 66 79 427 71 C Andrew 87 94 548 91 A Your program should contain the following functions:

1. A function named Lowest, which takes an array as the parameter and returns the lowest number in the array.

2. A function named Highest, which takes an array as the parameter and returns the highest number in the array.

3. A function named Total, which takes an array as the parameter and returns the total of the numbers in the array. 4. A function named Average, which takes an array as the parameter and returns the average of the numbers in the array

For example, if the following is the records in StudentScores.txt

Kate 80 83 83 82 90 88 Tom 79 70 70 73 66 69

Andrew 90 92 94 92 90 87

Notes: Program with Visual studio( If you can please explain each steps with comments, Just want to know how you getting those steps)

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!