Program prompts the user to enter his or her height


Discuss the below:

Q: Create a complete C++ program that prompts the user to enter his or her height in inches and outputs the following:

Output "Height is six feet or more." when the user's height is 6 feet or more.

Output "Height is less than five feet." when the user's height is less than 5 feet.

Output "Height is at least five feet but less than 6 feet" otherwise.

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Program prompts the user to enter his or her height
Reference No:- TGS01936698

Now Priced at $20 (50% Discount)

Recommended (96%)

Rated (4.8/5)