Project Zero
Due 25 April
Intro:
We already know how to generate random numbers between 1 and 6. But what about 1 and 10? or 22-200. You are going to write a program that will generate 20 random numbers between a min value and a max value of the user's choosing. By midnight on the due date, you will need to email me your source code to me.
Details:
- Your program should ask the user to input a max value and a min value and generate 20 random numbers in that range. To generate random numbers between 1 and 6, the user would enter 6 and 1. To generate random numbers between 20 and 2000, the user would enter 2000 and 20.
- Your program will generate 20 random numbers between max and min.
- Your program will output the average random number computed. Be sure to use typecasting!!!
- Your program should have comments in it, one for about every 5 lines of code. Your name should also appear in comments at the top.
- Your variable names should make sense.
Sample Output
Here is the results of running my solution. Yours does not need to look exaclty like this, but something like it.
Please enter the max random number: 6
Please enter the min random number: 1
After 20 rolls, the average number rolled was 3.487.
Here is another sample output....
Please enter the max random number: 2000
Please enter the min random number: 20
After 20 rolls, the average number rolled was 1009.445
Grading Guidlines
This program is worth 75 points. The largest amount of points a non compiling program can earn is 5 points. From this total, 2-10 points per error will be deducted until no more errors are found or there are no points left. Style is very important. All variables should have useful names, all lines of code should be indented, and there should be comments about once every 5-10 lines. Each violation is subject to a 2 point deduction to a maximum of 26 points.