Write a program In C# that creates a 10 element double array to store program grades and reads 10 values between 0.0 and 100.0 from the user. After the values are read and stored in the array, your program should (a) display the values in the array with 1 digit to the right of the decimal point, (b) output the minimum value, (c) output the maximum value, and (d) output the average program grade. Successful completion of this program will require that you use at least TWO loops: the first should store the values in the array, and the second will do the process/calculations. If your program doesn’t have TWO loops, you’ll get to do it again. Challenge: Write your program such that invalid program grades are rejected and not added to the array. Valid program grades are between 0.0 and 100.0 inclusive.
Write a
100.0 from the user. After the values are read and stored in the array, your program should (a) display the values in the
array with 1 digit to the right of the decimal point, (b) output the minimum value, (c) output the maximum value, and (d)
output the average program grade. Successful completion of this program will require that you use at least TWO loops:
the first should store the values in the array, and the second will do the process/calculations. If your program doesn’t
have TWO loops, you’ll get to do it again. Challenge: Write your program such that invalid program grades are rejected
and not added to the array. Valid program grades are between 0.0 and 100.0 inclusive.
Step by step
Solved in 2 steps with 1 images