Chapter 5 Project Project Name: Chpt5_Project Class Name: 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 by the user. Step 1. Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Place the algorithm in a Word document. Step 2. 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. Step 3. Test your program and it should display the number of random numbers greater than or equal to the user input value. Use the test data in the example below by entering 80 first, which is out of range, then enter 50. Note: the number of random variables oreater than 50 wi1l vary because the user

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Hi, I need help with this coding problem on eclipse. 

5:05
LTE O
Chapter 5 Project - new Fall 10-21-20....
Chapter 5 Project
Project Name: Chpt5_Project
Class Name: 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 by the user.
Step 1. Create an algorithm (either flowchart or pseudocode)
that you will use to write the program. Place the algorithm in a
Word document.
Step 2. 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.
Step 3. Test your program and it should display the number of
random numbers greater than or equal to the user input value.
Use the test data in the example below by entering 80 first,
which is out of range, then enter 50. Note: the number of
random variables greater than 50 will vary because the user
value is being compared to random numbers, and those random
numbers change each time the program runs.
Use the Snip It tool in Windows or a similar tool on the Mac to
cut and paste the Eclipse Console output window into the same
Word document as the algorithm in Step 1. Below is an example
output. Note: your output will be different because random
numbers are involved.
<terminated> Chpt5_Project_Fall_20 [Java Application] C:\Program Files\Java\jdk-14.0.2\bin\javaw.exe (Oct 27, 2020 11:51:17 AM - 11:51:28 AM)
Enter a value between 30 and 70: 80
The value is out of range, please reenter: 50
The value enterd by user is: 50
There are 51 random numbers larger than 50
1
13
85
Dashboard
Calendar
Notifications
Inbox
LO
00
SAMPLE
Transcribed Image Text:5:05 LTE O Chapter 5 Project - new Fall 10-21-20.... Chapter 5 Project Project Name: Chpt5_Project Class Name: 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 by the user. Step 1. Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Place the algorithm in a Word document. Step 2. 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. Step 3. Test your program and it should display the number of random numbers greater than or equal to the user input value. Use the test data in the example below by entering 80 first, which is out of range, then enter 50. Note: the number of random variables greater than 50 will vary because the user value is being compared to random numbers, and those random numbers change each time the program runs. Use the Snip It tool in Windows or a similar tool on the Mac to cut and paste the Eclipse Console output window into the same Word document as the algorithm in Step 1. Below is an example output. Note: your output will be different because random numbers are involved. <terminated> Chpt5_Project_Fall_20 [Java Application] C:\Program Files\Java\jdk-14.0.2\bin\javaw.exe (Oct 27, 2020 11:51:17 AM - 11:51:28 AM) Enter a value between 30 and 70: 80 The value is out of range, please reenter: 50 The value enterd by user is: 50 There are 51 random numbers larger than 50 1 13 85 Dashboard Calendar Notifications Inbox LO 00 SAMPLE
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY