Question: This needs to be done in C++ programming. The output of the program should match the formatting of the sample run given at the end

This needs to be done in C++ programming. The output of the program should match the formatting of the sample run given at the end of this question.

Program

Implement a program that:

1. Get the following from the user (no prompts):

first name

last name

birth year

height (in feet and inches; e.g., 5'10")

- (Note: You will need to get feet and inches for height separately.)

2. Subsequently,

approximates the users age as their birth year subtracted from the current year

calculates his/her height in centimeters (Note: 1 inch is 2.54 centimeters; moreover, there are 12 inches in one foot.)

computes her/his average annual growth per year in centimeters, under the assumption that ones height at birth is 51 cm

Sample Program Run

Note:

use the current year to caluclate user's age

The input is expected in the exact order as shown below in the green text below. Note that Jon Doe is 510.

Then output the results precisely as shown in the red text below.

This needs to be done in C++ programming. The output of the

Again, there should not be input prompts for the user, but you can include them while writing the code as to not get confused what to input when testing.

The picture above is an example of what the program should look like after it has been run. The inputs should be printed in green text each on its own line and the output of the program should look exactly like it is above in red text.

John Doe 1999 5 10 Hello John Doe. You are 18 years old in 2017, and your height is 177.8 cm. That means that you grew an average of 7.04444 cm per year (assuming you were 51 cm at birth)

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!