Question: Write a C++ program that starts by asking a teacher for the size of his/her class (the number ofstudents). Then the program asksthe teacher to

Write a C++ program that starts by asking a teacher for the size of his/her class (the number ofstudents). Then the program asksthe teacher to enter for each student his/her name along with his/her grade in an exam. Only enter students' last names as one word. All grades are integers that have to be in the range from 0 to 100 (inclusive). Store the names in an array of strings and the grades in another array of integers. Use dynamic memory to create both arrays.

After getting the names and grades of allstudents, your program will display the following on the screen:

The average grade of the students in the exam.

The name and grade of the student who received the highest grade.

The names and grades of the students who received grade lessthan 50 in the exam

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!