Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i run it in my pc it doesnt show any output numbers like the picture ive attached i run it online gives me error VatchedPotjava

i run it in my pc it doesnt show any output numbers like the picture ive attached
i run it online gives me error
image text in transcribed
image text in transcribed
VatchedPotjava 3wpjna3y6 NEW JAVA V RUN STOIN Input for the program Optional) Output: 7. 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 heightscan.nextInt(); system.out.println("row vorm is the water?"); 10 int tempuscan.nextInt(); int radius 103 int heate50; double volume.141 radius radius height; double tistequirede (volume(100-teep/heat; double tinutes(doubleyti equired/60; System.out.print(inutes until boltinet, ftimetretinutes); System.out.println(""); Hoop is the water Free Called out overcot.sara 10 20 ungle WatchedPotjava 3 Wordava porno 3 import java.util.Scanner; epublic class Watched Pot { 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 temp=scan.nextInt(); int radius=10; int heat=250; double volume=3.141*radius*radius*height; double timeRequired=(volume*(100-temp>)/heat; double timeInMinutes=(double) timeRequired/60; System.out.printf("Minutes until boiling: 4.31", timeInMinutes); System.out.println(" "); Command Prompt - java Watched Pot C:\Java>javac watchedPot java C:\java>java watchedpot How deep is the water

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions