Write a program that asks the user for a file name. The file contains a series...

60.1K

Verified Solution

Question

Advance Math

Write a program that asks the user for a file name.

The file contains a series of scores(integers), each written ona separate

line.

The program should read the contents of the file into an arrayand then

display

the following content:

1) The scores in rows of 10 scores and in sorted in descendingorder.

2) The lowest score in the array

3) The highest score in the array

4) The total number of scores in the array

5) The average score in the array.

6) The median score in the array.

Please find a file named scores.txt in Canvas.

Program structure shall be as follows:

A top level function named TestScoreAnalysis() which acceptsa

file of scores to be analyzed and displayed to the console

screen describing the six content items specified above.

Each task shall be done in a separate function.

There are nine(9) tasks,... therefore at least ninefunctions

should be constructed to meet the requirements.

Allocate an array to hold at least 100 scores.

Note - The programming language is C++

Answer & Explanation Solved by verified expert
4.3 Ratings (926 Votes)
    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students