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?
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?
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images