Question: USING ONLY C# ONLY PLEASE Complete off the following short program whose output would look like this when the user types in 88 blah [enter]

USING ONLY C# ONLY PLEASE

Complete off the following short program whose output would look like this when the user types in 88 blah [enter] 77 66 55 999: (but would have a different output, accordingly, with different values)

USING ONLY C# ONLY PLEASE Complete off the following short program whoseoutput would look like this when the user types in 88 blah

What it needs to do:

1.Call a method that asks for up to 20 scores, and saves the result until 20 are entered or until 999 is entered.

a.It must return the integer value that represents how many scores you keyed in.

i.See in my example, I typed in 4 scores, so this method returned integer 4

b.Internally, this method needs to receive the array as an argument, and make the score requests.

i.The TryParse method must be used in this array.

1.See, in my example, TryParse did not accept blah or just pressing enter to nothing

2.Loop back and make the user type in a correct value dont exit the loop just because an invalid value is entered.

ii.Keep asking for scores and saving to the array until the user has entered 20 scores, or enters 999.

iii.See, in my example, the first 7 lines of output were created generated during the running of this method.

2.Call another method. This one should accept your array and quantity of scores, and provide the value to 4 variables (that are declared in Main()): high, low, sum, and avg.

a.This method should determine which of the scores is the highest, and save it to the high variable

b.This method should also determine which of the scores is the lowest, and save it to the low variable.

c.This method should also calculate the sum of the scores, and save it to the sum variable

d.This method should also calculate the average of the scores, and save it to the avg variable

e.Note that those 4 variables are declared in the Main() method, but receive values via. this created method.

3.Now display in a single line, the array values. Mine would look like this:

4.Now, use the information created in that second array you created to output the statistics of the scores. Format it like mine (those last 5 lines of output that follow what you see after running step 3). Must include Quantity of scores, the high score, the low score, the sum of the scores, and the average score.

Please the first of up to 20 scores or 999 to quit >> 88 Please enter the next score or 999 to quit blah Invalid entry - try again >> Invalid entry - try again >> 77 Please enter the next score or 999 to quit 66 Please enter the next score or 999 to quit 55 Please enter the next score or 999 to quit 999 Here are the scores you entered: 88 77 66 55 There are a total of 4 scores ll1he? Itn.ll@]ltnes.ii: s:()|rc:) .iis The lowest score is 55 The sum of the scores is 286 The score average is 71.5 Press any key to continue

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!