
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
thumb_up100%
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](https://content.bartleby.com/qna-images/question/63634126-993b-4774-b35a-09cc7379ce23/0e1ef6fd-703d-4b85-815e-10b44a60e093/ur3l99g_thumbnail.png)
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.
: :: / :/:/:](https://content.bartleby.com/qna-images/question/63634126-993b-4774-b35a-09cc7379ce23/0e1ef6fd-703d-4b85-815e-10b44a60e093/u9yipkg.jpeg)
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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 3 images

Knowledge Booster
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
- A number used once in a challenge response system is a A. key B. password C. timestamp D. noncearrow_forwardShirley works in the IT department for a large retail store. She has been testing a theory about why an error message keeps popping up on a coworker’s computer when he tries to start Windows. She has hit a wall and doesn’t know where to look next. Sara feels very frustrated with the problem. What should Shirley do to help work out the solution? Group of answer choices Take a break and come back later. Don’t assume the worst. Write down everything. Divide and conquerarrow_forwardWhich statement is correct about jQuery library? a. You need to purchase the jQuery library. b. All browsers automatically include the jQuery library. c. The jQuery library is available online through a CDN. d. None of the above statements is true.arrow_forward
- I need help with the part below and please add comments in the code to help me understand better what I am doing wrong in my own code. I have already created my database and the connection and some of the code but am stuck on these parts."Home" and "Create Account" pages The index.php file will ask the user to log in to the system with a login form If they're already logged in, the home page will NOT show the login form. It will show a "welcome to our store" type of message instead even if they click on the "home" button in the navigation. The create-account.php page has them fill out a form for creating an account. Use real-time JavaScript validation (and regex) to: Verify that the password and "verify password" match as they are typing. Verify that the password contains at least one number and is at least 8 characters long Be sure to display user feedback messages on the screen as they type, e.g.: Password must contain a number Password must be 8 characters long Password and…arrow_forwardRead ALL of the instructions carefully before starting the exercise!Dear Colleague,Earlier today I built my third website using HTML5. Based on what we had learned in Exercises 1through 9, I wanted my website to try out four forms as shown in Figure 1 (below). However,after giving it my best effort, things once again didn’t turn out the way I wanted (see the codeprovided). I’ve been told that there are exactly 20 things wrong with the code. Can you help mespot all of the errors?Hint: You should not add ANY LINES to the code. There will never be more than one set of (ortype of errors) per line.To complete this assignment, update only the file named c2_broken.html contained in thec2_broken directory. Also, create a MS Word file describing what you did. Specifically, create abulleted list describing your improvements and be sure to include the line numbers. Save thissecond file as c2_notes_LastName.docx and add this file to the c2_broken directory. Whendone, rename c2_broken to…arrow_forwardHow do you get the total revenue to be displayedarrow_forward
- Write a script that uses two variables to store (1) the count of all of the products in the Products table and (2) the average list price for those products. If the product count is greater than or equal to 7, the script should print a message that displays the values of both variables. Otherwise, the script should print a message that says, “The number of products is less than 7”.arrow_forwardUSING PHP : Make a website that shows the current world record holder for your game of choice.The user should be able to enter in the Name of the game, it's category (ANY%, 100%, NG+), and theworld record holder. Those input fields should have placeholder values up to you to decide what those defaultvalues are. Add a message underneath that simply tells the user the current world record holder for thatgame is. When reloading the page the message should have the values the user previously entered which weresaved as cookies. Also these cookies should have a 1 week expirary date. use a cookie and set its value read the cookie's value and print it outarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education