Question: Write a program in C + + to compute the time it will take to walking mow a rectangular lawn with a rectangular house on

Write a program in C++ to compute the time it will take to walking mow a rectangular lawn with a rectangular house on it.
The program prompts the user to input 5 values which represent:
the length of the lawn,
the width of the lawn,
the length of the house,
the width of the house (in feet),
the speed that you walk (in miles per hour).
Echo this input and then compute the area to be mown (in square feet) by subtracting the area of the house from the total area of the lawn. Print out this value.
Next, calculate your rate of mowing in square feet per minute, assuming that the width of the mower is 18 inches. Print this value.
Note: Use these conversion factors: 1 mile =5280 feet, 1 foot =12 inches and 1 hour =60 minutes.
Finally, calculate the time in minutes it will take to mow the lawn and print this out. You may leave this as a floating-point value.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!