Question: 4 . Write a C + + program that that does the following: a . Create a C + + file with the name problem
Write a C
program that that does the following:
a
Create a C
file with the name problem
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
e
Print the user
s name, and height in centimeters.
Sample run of the program:
Enter your name: Dave
Enter your height in inches:
Hi Dave. You are
centimeters tall.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
