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)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
icon
Related questions
Question

 

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)

 

 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Concept of pointer parameter
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr