Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago