A professor has constructed a two-dimensional array of double numbers having 3 rows and 5 columns. This array currently contains the test grades of the students in the professor’s advanced compiler design class. Write a C++  program that reads 15 array values and then determine the total number of grades in the ranges less than 60, greater than or equal to 60 and less than 70, greater than or equal to 70 and less than 80, greater than or equal to 80 and less than 90, and greater than or equal to 90.   b. Entering 15 grades each time the program written for 7A is run is cumbersome. What method, therefore, is appropriate for initializing the array during the testing phase?   c. How might the program you wrote for 7A be modified to include the case of no grade being present? That is, what grade could be used to indicate an invalid grade and how would your program have to be modified to exclude counting such a grade?

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.3: Declaring And Processing Two-dimensional Arrays
Problem 7E: (Electrical eng.) a. An engineer has constructed a two-dimensional array of real numbers with three...
icon
Related questions
Question

a. A professor has constructed a two-dimensional array of double numbers having 3 rows and 5 columns. This array currently contains the test grades of the students in the professor’s advanced compiler design class. Write a C++  program that reads 15 array values and then determine the total number of grades in the ranges less than 60, greater than or equal to 60 and less than 70, greater than or equal to 70 and less than 80, greater than or equal to 80 and less than 90, and greater than or equal to 90.

 

b. Entering 15 grades each time the program written for 7A is run is cumbersome. What method, therefore, is appropriate for initializing the array during the testing phase?

 

c. How might the program you wrote for 7A be modified to include the case of no grade being present? That is, what grade could be used to indicate an invalid grade and how would your program have to be modified to exclude counting such a grade?

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Array
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++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr