Q1/ Write a program that reads from the user the number of students in the class and their grades in one class, the program must find the largest and the lowest grades with the sequence of students and then find the average grade of the class, see the example below: N is the numbers of students in one class X is the grade for each student in the class For example Student # 1 = 89 Student # 2= 60 Student # =80 You must find the largest and the lowest grades with the sequence of the student. The largest grade is 89 the student's number is 1 The lowest grade is 60 the student's number is 2 The average grade of the class is 76.333

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question
Q1/ Write a program that reads from the user the number of students in the class and their grades in
one class, the program must find the largest and the lowest grades with the sequence of students and
then find the average grade of the class, see the example below:
N is the numbers of students in one class
X is the grade for each student in the class
For example
Student # 1 = 89
Student # 2= 60
Student # =80
You must find the largest and the lowest grades with the sequence of the student.
The largest grade is 89 the student's number is 1
The lowest grade is 60 the student's number is 2
The average grade of the class is 76.333
Transcribed Image Text:Q1/ Write a program that reads from the user the number of students in the class and their grades in one class, the program must find the largest and the lowest grades with the sequence of students and then find the average grade of the class, see the example below: N is the numbers of students in one class X is the grade for each student in the class For example Student # 1 = 89 Student # 2= 60 Student # =80 You must find the largest and the lowest grades with the sequence of the student. The largest grade is 89 the student's number is 1 The lowest grade is 60 the student's number is 2 The average grade of the class is 76.333
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Program on Numbers
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