Question: Given integer variables seedVal and largestValue, generate four random numbers that are less than largestValue and greater than or equal to 0. Each number generated

 Given integer variables seedVal and largestValue, generate four random numbers that

Given integer variables seedVal and largestValue, generate four random numbers that are less than largestValue and greater than or equal to 0. Each number generated is output. Lastly, the average of the four numbers is output. Ex. If largestvalue is 10 , then a possible output is: 1 5 4 8 Average: 4.5 Note: The input seeds are large integers that approximately equal the time in seconds since January 1, 1970

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!