Question: Computing the average score where the lowest score is dropped Write a program to read scores from a file named scoreData.txt (where -1 is used

Computing the average score where the lowest score is dropped Write a program to read scores from a file named scoreData.txt (where -1 is used as a sentinel value) and compute/display the average score (after dropping the lowest score). You may assume that the scores in the file are all positive integers and that at least three scores will be provided in the file.

Example file (note: scoreData.txt will differ from the file below, although it will also use -1 as a sentinel value):

10 9 10 8 5 9 10 10 8 7 10 -1 (

dropping score 5): (10+9+10+8+9+10+10+8+7+10)/10 = 9.1

Output for the example file above: Average score: 9.1

Help me with this homework please program with C++ without using Arrays

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!