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)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education