Question: * * The program used is C + + * * Do not use a break, continue, or exit statements or more than 1 return

** The program used is C++**
Do not use a break, continue, or exit statements or more than 1 return statement in the assignment.
Do not use a break, continue, or exit statements or more than 1 return statement in the assignment.
Write a program that asks how many random numbers to generate between 0 and 99. The program will randomly generate that
many numbers.
As the numbers are generated, the program will determine how many numbers are in each group: 0-9,10-19,20-29,30-39,40-49,
50-59,60-69,70-79,80-89, and 90-99.
After all the numbers have been generated, the program should determine the percentage of the numbers are in each group. The
number should be rounded to the nearest tenth. So if the percentage is 14.632 then it should be rounded to 14.6%. The output
should print the distribution of the numbers with their percentage with a report similar to the following. Assuming 35 was entered
as the number of random numbers to generate the report should look similar to the following:
Enter the how many numbers to generate: 35
Distribution of 35 Random Numbers
Write a program that asks how many random numbers to generate between 0 and 99. The program will randomly generate that many numbers.
As the numbers are generated, the program will determine how many numbers are in each group: 0-9,10-19,20-29,30-39,40-49,50-59,60-69,70-79,80-89, and 90-99.
After all the numbers have been generated, the program should determine the percentage of the numbers are in each group. The number should be rounded to the nearest tenth. So if the percentage is 14.632 then it should be rounded to 14.6%. The output should print the distribution of the numbers with their percentage with a report similar to the following. Assuming 35 was entered as the number of random numbers to generate the report should look similar to the following:
* * The program used is C + + * * Do not use a

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!