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, 23.06.2019 03:30
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
Following are uses of spreadsheets. for each use, choose whether the use is a business use, consumer use, or student use. family budget: sales data: recording research data for science class:
Answers: 2
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
Chemistry, 14.05.2020 02:57
question
Health, 14.05.2020 02:57
question
English, 14.05.2020 02:57
question
Mathematics, 14.05.2020 02:57
Questions on the website: 13722367