You will Also need Eclipse Workspace
Chapter 3 Project
Project Name: Chpt3_Project
Class Name: Chpt3_Project
Write a Java program that generates a random number between 50 and 150 that represents the temperature in Celsius of a pot of boiling water on a stove, and determine if the water is hot enough to cook the following vegetable:
Beans: cook at 100 degrees Celsius
Inputs: The program must prompt the user for the temperature that beans cook at.
Enter the temperature in Celsius that beans cook at:
Output: The program should tell the user if the water is hot enough to cook the beans.
The water temperature is <temp> Celsius and is <hot or not hot> enough to cook beans.
Example of a program run: Run the program three times and take a screen snipit after each run.
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 in Eclipse and test the program to verify it works correctly. Be sure to run the program three times.
Step 3. 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.
Note: the water temperature you show will be different than below because it is a random number.
Note: be sure to checkout the Chapter 3 videos and tutorial on how to generate random numbers in a specific range.
When you finish the assignment you will need to
submit two files to for grading:
1. Word document with your algorithm pseudocode, flowchart, or use case for the program, along with a screen shot of the program running on your computer. (10 points)
2. The source code file you created containing the java class for the program. This file is located in the folder where you stored your program and it has the file extension name of “java”. (10 points)