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 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 inches. Print this value.
Note: Use these conversion factors: mile feet, foot inches and hour minutes.
Finally, calculate the time in minutes it will take to mow the lawn and print this out. You may leave this as a floatingpoint value.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
