Computers and Technology

Write a program that will prompt the user for miles, yards, feet, and inches. input one value percin. convert the measurements into meters and display the results on the screen. make the metersvalue a float. output each of the sub totals individually❦.(i. e. miles, yards, feet, inches) then output the grandtotal. units value metersmiles xxx xxx. xxyards xxx xxx. xxfeet xxx xxx. xxinches xxx xxx. xxtotal xxx. xxto limit your output to 2 decimal places use the following: example: include #include using namespace std; int main () {double f =3.14159; cout < < fixed; cout < < setprecision(2) < < f < < endl; 1 mile = 5280 feet1 mile = 1760 yards1 yard = 3 feet1 foot = 12 inches1 inch = 0.0254 meters. tips: use good names of identifies. try: const int yards_per_mile = 1760; const int feet_per_mile = 5280; const int feet_per_yard = 3; const float meters_per_inch = 0.0254; const int inches_per_yard = 36; then if: double yards; double meters; cout < < "enter the yards: "; cin > > yards; meters = yards*inches_per_yard*meters_per_in ch;

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:30, gabby640
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
image
Computers and Technology, 23.06.2019 21:40, gaby06
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
image
Computers and Technology, 23.06.2019 23:30, jamalchris9353
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
image
Computers and Technology, 24.06.2019 05:30, lolololol21
Cómo pongo un tomo de llamada sin pagar?
Answers: 1
Do you know the correct answer?
Write a program that will prompt the user for miles, yards, feet, and inches. input one value percin...

Questions in other subjects:

Konu
History, 22.11.2019 07:31
Konu
Mathematics, 22.11.2019 07:31