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 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
