Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics Of A Networked World Semantics For Grid Databases First International Ifip Conference Icsnw 2004 Paris France June 2004 Revised Selected Papers Lncs 3226

Authors: Mokrane Bouzeghoub ,Carole Goble ,Vipul Kashyap ,Stefano Spaccapietra

2004 Edition

3540236090, 978-3540236092

More Books

Students also viewed these Databases questions

Question

What is a benefi t change log?

Answered: 1 week ago

Question

MatLab Simulink 1) Create the following single pulse in Simulink 19

Answered: 1 week ago