Create a C# Console application

profilejjooeee9

  

Assignment 5: LOOPS

Problem Description:

Create a C# Console application Similar to the lab we covered in class (Program #4) . Now your program has to read in a collection of exam scores ranging in value from 1 to 100. The input will terminate with the value ‐1. As each score is input a category should be output: excellent 100 – 90; good 89 – 70; satisfactory 69 – 50; unsatisfactory 49 – 1. After all the scores have been input the program should then display the number of scores in each category. Example of Inputs and Outputs is below:

Enter a Score:

80

Enter a Score or enter -1 to stop:a

45

Enter a Score or enter -1 to stop:

75

Enter a Score or enter -1 to stop:

95

Enter a Score or enter -1 to stop:

87

Enter a Score or enter -1 to stop:

100

Enter a Score or enter -1 to stop:

-1

You have entered 6 scores, here is the classification:

Excellent 100 – 90: 2 scores

Good 89 – 70: 3 scores

satisfactory 69 – 50: 0 scores

unsatisfactory 49 – 1: 1 score

Solution: 

I. C# CODING

    • 8 years ago
    • 10
    Answer(0)