Question: Purpose: To experience usage of decision structures. and formatting using printf when displaying double-type values in the output. Note: There are two parts to this

 Purpose: To experience usage of decision structures. and formatting using printf

Purpose: To experience usage of decision structures. and formatting using printf when displaying double-type values in the output. Note: There are two parts to this assignment. Part A: Computation of Body Mass Index and interpretation of the result 15 points] Problem Statement: Review Problem 3 in Programming Challenges at the end of Chapter 3 (page 181) Ask the person's name and save it in a String variable. Then ask that person for weight in pounds, and height in inches and save them in appropriately named variables (with proper type, hint: in this case both are double as they can receive inputs that contain fractions also, not necessarily whole numbers) Calculate BMI and display its value and diagnosis as shown below: Sample output (Line numbers are shown for guidance - need not appear in ouitput) Line 1: Line2: Line4: Line5: Line6: Line 7: Line 8: Line 9: Line 10: Welcome to 's Clinic Hello person's name> Your height in inches: xxx.xxxx Your weight in pounds: xxx.xxxx Your BMI is calculated as: xxx.xxxxx Our Diagnosis For your height and weight, BMI is Test the program with different values of inputs that produces all different diagnosis outputs for all cases. What to Submit: the source code you developed for PA4a (with java ) on Blackboard. Submit PA4a output.docx which should contain output for 4 different types of inputs, showing optimal, overweight, and underweight condition + any 'unusual or interesting' input (your choice)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!