Question: C++ To solve this problem your program must perform the following tasks: Declare a variable named user name that holds text. Declare variables named length

 C++ To solve this problem your program must perform the followingtasks: Declare a variable named user name that holds text. Declare variables

C++

To solve this problem your program must perform the following tasks: Declare a variable named user name that holds text. Declare variables named length feet and length yards that hold single precision real numbers. Prompt the user to enter his her first name. Get the name and store it in the corresponding variable. Prompt the user to enter the length in feet. Get the length from the keyboard and store it in the corresponding variable. Calculate the length in yards using the formula exactly as provided above and assign the result to he corresponding variable. Display on the screen the following message: "Hi,"user_name length feet. "feet are equal to ", length yards." yards" Problem: You are asked to write a program to receive a length expressed in feet, convert it to yards, and show the result on the screen. The formula for converting a length expressed in feet to yards is: lengh in yards = 1/3 x length in feet Your solution must ask the user to enter the length in feet at the keyboard and then calculate and display the resulting length in yards. You must ask for and display the first name of the person using your program too

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!