Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

it's not showing anything to me! please look at the attachments below import java.util.Scanner; public class WatchedPot public static void main(String[] args) { Scanner scan

it's not showing anything to me!
please look at the attachments below
image text in transcribed
image text in transcribed
image text in transcribed
import java.util.Scanner; public class WatchedPot public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("How deep is the water?): int height scan.nextInt(); System.out.println("How warm is the water?"); int tempascan.nextInt(); int radius=10; int heat=250; double volume. 141radius radius height; double time Required= (volume (100-temp))/heat; double timeInMinutes=time Required/60 System.out.println("Minutes until boling:"string.format("31",timeInMinutes)+" "); > Command Prompt watchedet 9 File 6.929 bytes 2 dir(s) 441.080,627,200 bytes free C:\java>javac watchedpot.java C:\java>java watchedpot How deep is the water? Problem 3: A watched pot never boils You need to know exactly how long it will take for your water to boil. Your pot is cylindrical with a radius of 10cm. Your stove delivers 250 Cal/sec of heat energy. Write a java program which will ask the user how deep and warm the water is and then calculates and displays the time in minutes that it will take the water to reach 100 degrees. (Recall that it takes 1 caloric to heat up 1 ml of water by 1 degrec.) Declare and use constants for the rate of heat added and the radius of your pot. Declare and use styleGuide compliant variables for the depth of the water, how warm it starts out, the volume of the water, and the time until the water boils. Example output: Command Prompt X G:\>javac Watchedpot.java G:\>java Watchedpot How deep is the water? 5 How warm is the water? 50 Minutes until boiling: 5.235 G:\>java Watchedpot How deep is the water? 10 How warm is the water? 25 Minutes until boiling: 15.705 G:\>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

Students also viewed these Databases questions

Question

3. What may be the goal of the team?

Answered: 1 week ago

Question

Is how things are said consistent with what is said?

Answered: 1 week ago