Question: 4 . Write a C + + program that that does the following: a . Create a C + + file with the name problem

4.Write a C++ program that that does the following:
a.Create a C++ file with the name problem4.cpp.
b.Prompt the user to enter his/her name, reading it into a string variable.
c.Prompt the user to enter his/her height in inches, reading it into an int variable.
d.Convert the height to centimeters by multiplying it by 2.54.
e.Print the users name, and height in centimeters.
Sample run of the program:
Enter your name: Dave
Enter your height in inches: 61
Hi Dave. You are 154.94 centimeters tall.

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 Programming Questions!