Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions

Question

Write short notes on Interviews.

Answered: 1 week ago

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago