Question: I need some help with my C++ class. Thanks!! ogramS 1. You and a few friends are trying to earn a few extra dollars while


I need some help with my C++ class. Thanks!!
ogramS 1. You and a few friends are trying to earn a few extra dollars while in school and have started a lawn mowing service. Your service has been hired by a subdivision that pays for all lawn care. All of the lots and the homes in the subdivision are rectangular in shape. All homes also have a rectangular concrete driveway. Some homes have a single circular landscaped area that contains no grass that needs to be cut. Two hundred square feet of lawn can be mowed in one minute. Since you are doing all scheduling, you have decided to write a C program that estimates the amount of time it is going to take to mow a specific lawn. Write a program which will accept user input for lawn, house, driveway, and circle dimensions and will display both the number of square feet to be mowed and the time required to mow the lawn. Follow the guidelines below: Define PI as a defined constant or declare as a constant with a value of 3.14159265 Prompt the user each dimension value (lot width, lot length, house width, house length, etc) If no circular landscaped area is present, the user should enter zero for the measurement(s) Use floating point numbers for dimensions and area, but use integers for hours and minutes. The area that is to be mowed should be displayed on the screen using two decimal . . . The time required for the lawn to be mowed must be displayed in values of hours and minutes. Truncate to an even number of minutes. Do not round. (For example 842.8 minutes 14 hours and 2 minutes.) Belo are some values you might use to test your program o Lawn width: 250 ft o Lawn length: 150 ft o House width: 75 ft o House length: 40 ft o Driveway width: 12 ft o Driveway length: 50 ft o Circle radius: 5 ft 2. Write a program to calculate the volume of a truncated cone given the height, the radius of the base, and the angle in degrees formed by the centerline and the side of the cone at the apex. The formula for the volume is 3tan e 3 where y is the height. R is the radius, and is the angle in radians Enter the value of pi as a defined (symbolic) constant equal to 3.14159265 or declare it as a constant double. Prompt the user for values of height y, radius R, and angle in degrees Convert the angle to radians before using the formula to find the volume. Use math functions for raising to a power and for the tangent function. Print the volume with 3 decimal digits Test with the following values R- 2.5 meters 3 meters angle 30 degrees
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
