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 problem
4
.
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
.
5
4
.
e
.
Print the user
s name, and height in centimeters.
Sample run of the program:
Enter your name: Dave
Enter your height in inches:
6
1
Hi Dave. You are
1
5
4
.
9
4
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!