Question: 1. The program will prompt for the user's first and last name 2. The program will prompt for the user's height in inches, and weight

 1. The program will prompt for the user's first and last

1. The program will prompt for the user's first and last name 2. The program will prompt for the user's height in inches, and weight in pounds. 3. 4. 5. These values will be whole numbers The program will compute the user's BMI. This will include some metric conversion and you will have to research the formula for BMI The program will display the results as shown in the following example. You must include the "number" bar which will assist in grading. Field widths and formatting for all output values must match the following output exactly. For example, the BMI must have one significant decimal place, there should be no space between the feet and inches output (5'9"). The first and last names are printed in a 20 character field and have opposite justification (left, right). $ ./a.out Enter your first and last name Donald Trump Enter (int) height in inches and (int) weight in lbs 72 190 01234567890123456789012345678901234567890123456789 Donalc 72 inches is 6'0" Trump, Your BMI is 25.8

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!