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:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Which steps will open the system so that you can enter a question and do a search for
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, 05.05.2020 07:53
question
Mathematics, 05.05.2020 07:54
Questions on the website: 13722367