Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started