Write a program in C++ Jordan University of science and Technology has the following rules for grading system; the IT department administrator in the university wants to automate the grading system, by writing a C++ program. The administrator wants your help to having a computer program that reads N of grades for M students and gets the average reading. Then the program should decide the student status up to the following: 50 to 59 - C 60 to 80 - B Above 80 to 100 - A Can you write this program? Note that the last student's average is not followed by new line. Constraints 0 < N,M,G <= 100 Input Format Tow integer number N representing the grades number and M representing the student's number. (Use integer variables and ignore the fractional part in the result) Output Format Integer number represents the average for each student. And what it represents in the new grading system as one character (one of the following C, B, A). Sample #1 Input 2 3 85 83 84 75 72 80 Output The Average of student 1 = 84(A) The Average of student 2 = 75(B) Sample #2 Input 3 4 90 95 90 70 72 79 55 56 59 Output The Average of student 1 = 86(A) The Average of student 2 = 65(B) The Average of student 3 = 59(C)
Write a program in C++
Jordan University of science and Technology has the following rules for grading system; the IT department administrator in the university wants to automate the grading system, by writing a C++ program.
The administrator wants your help to having a computer program that reads N of grades for M students and gets the average reading. Then the program should decide the student status up to the following:
50 to 59 - C
60 to 80 - B
Above 80 to 100 - A
Can you write this program?
Note that the last student's average is not followed by new line.
Constraints
0 < N,M,G <= 100
Input Format
Tow integer number N representing the grades number and M representing the student's number.
(Use integer variables and ignore the fractional part in the result)
Output Format
Integer number represents the average for each student.
And what it represents in the new grading system as one character (one of the following C, B, A).
Sample #1
Input
2 3
85 83 84
75 72 80
Output
The Average of student 1 = 84(A)
The Average of student 2 = 75(B)
Sample #2
Input
3 4
90 95 90
70 72 79
55 56 59
Output
The Average of student 1 = 86(A)
The Average of student 2 = 65(B)
The Average of student 3 = 59(C)
Step by step
Solved in 2 steps