I just uploaded a picture on my assignment and you guys answered with the answer but I'm have trouble when I run the code it doesn't tell me "the water temperature" I'll send the assignment and what I got

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

I just uploaded a picture on my assignment and you guys answered with the answer but I'm have trouble when I run the code it doesn't tell me "the water temperature" I'll send the assignment and what I got 

7:54
LTE
Chapter 3 Project - new Fall 10-21-20....
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
will use to write the program. Place the algorithm in a
you
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.
|<terminated> Chpt3_Project [Java Application] C:\Program Files\Java\jdk-14.0.2\bin\javaw.exe (Oct 21, 2020 10:10:16 AM – 10:10:20 AM)
Enter the temperature in Celsius that beans cook at: 100
The water temperature is 78 Celsius and is not hot enough to cook beans.
<terminated> Chpt3_Project [Jaaplication] C:\Program Files\Javaljdk-14.0.2\bin\javaw.exe (Oct 21, 2020 10:11:01 AM – 10:11:06 AM)
Enter the temperature celsius that beans cook at: 100
The water temperaturs 59 Celsius and is not hot enough to cook beans.
<terminated> Chpt3_Project [Java Application] C:\Program Files\Java\jdk-14.0.2\bin\javaw.exe (Oct 21, 2020 10:11:32 AM – 10:11:36 AM)
Enter the temperature in Celsius that beans cook at: 100
The water temperature is 118
sius
and is hot enough to
ook
11
78
Calendar
Тo Do
Notifications
Inbox
Transcribed Image Text:7:54 LTE Chapter 3 Project - new Fall 10-21-20.... 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 will use to write the program. Place the algorithm in a you 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. |<terminated> Chpt3_Project [Java Application] C:\Program Files\Java\jdk-14.0.2\bin\javaw.exe (Oct 21, 2020 10:10:16 AM – 10:10:20 AM) Enter the temperature in Celsius that beans cook at: 100 The water temperature is 78 Celsius and is not hot enough to cook beans. <terminated> Chpt3_Project [Jaaplication] C:\Program Files\Javaljdk-14.0.2\bin\javaw.exe (Oct 21, 2020 10:11:01 AM – 10:11:06 AM) Enter the temperature celsius that beans cook at: 100 The water temperaturs 59 Celsius and is not hot enough to cook beans. <terminated> Chpt3_Project [Java Application] C:\Program Files\Java\jdk-14.0.2\bin\javaw.exe (Oct 21, 2020 10:11:32 AM – 10:11:36 AM) Enter the temperature in Celsius that beans cook at: 100 The water temperature is 118 sius and is hot enough to ook 11 78 Calendar Тo Do Notifications Inbox
000
**
CD
****
# 00
下
File Edit Source
Refactor Navigate Search
Project Run
Window
Help
EL https://services.flhsmv x
https://connect.secure X G bjs credit card - Googl x
GChapter 3 Project
GChapter 3 Reading an x
Chpt 3 - Chpt3_Project/Chpt3_Project.java - Eclipse IDE
a回
O E Outline X
Chpt3 Project.java X
10 import java.util.Scanner;
2 import java.math.*;
ckage Explorer X
Chpt3 Project
JRE System Library [Java SE 11.0.18 [1
(default package)
3.
4.
5 public class Chpt3 Project {
9, Chpt3 Project
main(String0): void
> Chpt3 Project.java
6.
public static void main(String[] args) {
11
12
13
int temp;
Scanner sc = new Scanner(System.in);
System.out.println("Enter the temperture in Celsius that beans cook
temp = sc.nextInt();
14
int rand;
rand = (int) (Math.random ( )*100+5);
15
16
%3D
if(rand > temp)
System.out.printf("The water temperature is %d Celcius and is hc
18
21
else
22
System.out. printf("The water tempature is %d Celcius and is not
23
24
25
28
{
he
31
{
Problems @ Javadoc Declaration Console X
Chpt3 Project [Java Application] /Library/Java/JavaVirtualMachines/jdk-11.0.13.jdk/Contents/Home/bin/java (Feb 13, 2022, 7:53:48 PM)
Enter the temperture in Celsius that beans cook at: 100
国 x
Writable
Smart Insert
9:5:122
44,892
13
人
$4
3.
5.
: :: / :/:/:
Transcribed Image Text:000 ** CD **** # 00 下 File Edit Source Refactor Navigate Search Project Run Window Help EL https://services.flhsmv x https://connect.secure X G bjs credit card - Googl x GChapter 3 Project GChapter 3 Reading an x Chpt 3 - Chpt3_Project/Chpt3_Project.java - Eclipse IDE a回 O E Outline X Chpt3 Project.java X 10 import java.util.Scanner; 2 import java.math.*; ckage Explorer X Chpt3 Project JRE System Library [Java SE 11.0.18 [1 (default package) 3. 4. 5 public class Chpt3 Project { 9, Chpt3 Project main(String0): void > Chpt3 Project.java 6. public static void main(String[] args) { 11 12 13 int temp; Scanner sc = new Scanner(System.in); System.out.println("Enter the temperture in Celsius that beans cook temp = sc.nextInt(); 14 int rand; rand = (int) (Math.random ( )*100+5); 15 16 %3D if(rand > temp) System.out.printf("The water temperature is %d Celcius and is hc 18 21 else 22 System.out. printf("The water tempature is %d Celcius and is not 23 24 25 28 { he 31 { Problems @ Javadoc Declaration Console X Chpt3 Project [Java Application] /Library/Java/JavaVirtualMachines/jdk-11.0.13.jdk/Contents/Home/bin/java (Feb 13, 2022, 7:53:48 PM) Enter the temperture in Celsius that beans cook at: 100 国 x Writable Smart Insert 9:5:122 44,892 13 人 $4 3. 5. : :: / :/:/:
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Encryption and Decryption
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education