Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

New Folder . jGRASP CSD (lava) Help int gender double maxHeartRate ; //Prompt the user for their name: 23 24 25 26 27 28 29

image text in transcribed
New Folder . jGRASP CSD (lava) Help int gender double maxHeartRate ; //Prompt the user for their name: 23 24 25 26 27 28 29 System.out.print (Enter your name: name -userInput.nextline() //Prompt the user for their age System.out.printEnter your age in years ) ageInYears = user1nput.next1nt(); //convert age 31 System.out.print (tyour age in minutes is System.out.println( tYour age in centuries is ouble) ageInYears 525680 minutes."); + (double) ageInYears /180 centuries."); + (d 34 35 36 /display max heant nate 37 System.out.println("Your ma heart nate s 38 f (gender .. 1) { //calculate female MHR i else t //caclulate male MHR NHR 39 40 41 42 43 Hello3java FirstProgramjavaCourselnte My World java Compile Messages KGRA SP Messages Run VO Interactions Stop Clear Copy jGRASP exec: java cp c:NUsersWenzhe Song VDown loads \checkstyle-8.1 (4)\checkstyle-8.1lcheck starting audit [ERROR]-AgeStatistics, java: 39:24: Mast have at least one statement. [ERROR] AgeStatistics.java: 41:12: Mas t have at least one statenent. [E1ptyBlock) Audit done. Checkstyle ends with 2 errors. [EagtyBlock) --joRASP wedge2: exit code for process is 2. jGRASP: operation complete

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

Finance The Role Of Data Analytics In Manda Due Diligence

Authors: Ps Publishing

1st Edition

B0CR6SKTQG, 979-8873324675

More Books

Students also viewed these Databases questions