Question: C++ I was going to use a nested for loop to separate the numbers that the random number generator will generate. As in the numbers

C++
 C++ I was going to use a nested for loop to
I was going to use a nested for loop to separate the numbers that the random number generator will generate. As in the numbers 1-10 for F, 11-40 for D, 41-70 for C, 71-90 for B 91-100 for A. Each number that is generated and falls within the range of the specific grade will increase the input for that grade by 1 on the report.
I have no idea how to display the graph though
Thank you ahead of time for helping.

Goal: Learn how to (1) use random number generator and (2) use nested for loop to display a report. Generate 100 random numbers to simulate 100 student final scores. Use these numbers to display a report like the following: And the distribution of the grades is roughly in the percentage range of the following table. That is, roughly 10% of the students gain A grade, 20% B grade, and so on. Grade 20 20 30 The first column is the number indicating the amount of students of a grade. The bottom row shows the grades A, B, C, D and F. Q1: How can we set the range so that the % distributions are like the first table above? a2: How can we accumulate the counts of each grade? 03: How can these counts be displayed

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 Databases Questions!