Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

Explain the causes of indiscipline.

Answered: 1 week ago