Chpt5_Project Write a Java program that generates 100 random numbers in the range of 0-100 and counts how many are equal

Chpt5_Project
Write a Java program that generates 100 random numbers in the range of 0-100 and counts how many are equal to or greater than a value entered by the user.
Inputs: Prompt the user for the value to test against. This value must be between 30 and 70. If the
value is out of range then let the user reenter the value until it is with the range.
Outputs: The output will be all the number of random numbers equal to or larger than the number input
Code the program to prompt the user for a value between 30 and 70 (30 < value < 70). The value must the checked to ensure it is in the required range. If the user's value is out of range then they are prompted to reenter until the value is in range. Use a while or do-while loop to keep prompting until the value is within the range. Next, use a for loop to generate 100 random variables between 0 and 100 and compare each random number to the value entered by the user. If value < random number then then increase the count by 1. Lastly, print out the number of times the random number is larger than the value entered by the user.

Complete Answer:

Get Instant Help in Homework Asap
Get Instant Help in Homework Asap
Calculate your paper price
Pages (550 words)
Approximate price: -
Open chat
1
Hello 👋
Thank you for choosing our assignment help service!
How can I help you?