subject

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;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
What can you prevent issues related to downloading content form the internet
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
William travels a lot on business purpose. he needs to regularly communicate with his business partner. he also needs to send out weekly reports to his boss while he is traveling. which web-based application best suits william’s needs? (social media, webmail, wiki) is the best web-based application for william. he can access this application via the internet using a (digital cable, fax machine, web browser).
Answers: 1
You know the right answer?
Write a program that will prompt the user for miles, yards, feet, and inches. input one value percin...
Questions
question
Mathematics, 07.12.2021 05:40
question
Mathematics, 07.12.2021 05:40
Questions on the website: 13722359