Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago