1. Engineering
  2. Computer Science
  3. lb5 write a c console application that accepts an indefinite...

Question: lb5 write a c console application that accepts an indefinite...

Question details

LB5. Write a C# console application that accepts an indefinite number of
test scores for a student, and then computes some statistics about
those scores:
● Prompt the user for test scores until they enter 999
● If the user enters a score inside the range of 0 through 100
○ Accept the score
○ Prompt the user for another score
● If the user enters 999
○ Ignore the test score
○ Do not display an error message
○ display the number of scores, sum, average, min, and max
○ stop the program
● If they enter a score outside the range of 0 through 100
○ Ignore the test score
○ Display an error message
○ Prompt the user for another score

Please enter a test score: 70 Please enter a test score: 1 Invalid score Please enter a test score: 80 Please enter a test score: 101 Invalid score Please enter a test score: 90 Please enter a test score: 999 Number of scores: 3 Sum of test scores: 240.0 Average test score: 80.0 Lowest test score: 70.0 Highest test score: 90.0 Press any key to continue . . .

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution