Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

whats the error??? wa watchedpojava Noten lit Search View Encoding Language Settings Tools Macro Run Plugins Window 7 Won 2 To WatchedPojava 3 import java.util.Scanner;

whats the error??? image text in transcribed
image text in transcribed
image text in transcribed
wa watchedpojava Noten lit Search View Encoding Language Settings Tools Macro Run Plugins Window 7 Won 2 To WatchedPojava 3 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=in.nextInt(); System.out.println("How warm in the water?"); int tempain.nextInt (); int radius 10; int heat=250; double volume=3.141* radius*radius*height; double timeRequired=(volume*(100-temp)) /heat: double timeInMinutes time Required/60; System.out.println("Minutes until boiling="+String.format("3", timeInMinutes)+" ") Command Prompt C:\Java>javac Watchedpot.java watchedpot.java:7: error: cannot find symbol int height=in.nextInt(); symbol: variable in location: class watchedpot watchedpot.java:9: error: cannot find symbol int temp=in.nextInt(); symbol: variable in location: class watchedpot 2 errors c:\java>. A urce file 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

More Books

Students also viewed these Databases questions