Question: C language 4- Write a program that computes the time it takes to cut the grass based on the size of the lawn. a) Your

4- Write a program that computes the time it takes to cut the grass based on the size of the lawn. a) Your program should take the length and width of a rectangular yard and the length and width of a rectangular house situated in the yard in feet 8 points). b) Your program should then compute and display the area of the lawn, where the house is not situated 10 points) c) Your program should finally calculate and display the time (in seconds) required to cut the grass at the rate of two square feet a second. 7 points) 5. Write a program that estimates the temperature in a freezer (in C) given the elapsed time (hours) since a power failure. Assume this temperature (T) is given by +7-20 where t is the time since a power failure. a) Your program should prompt the user to enter how long it has been since the start of the freezer power failure in whole hours and minutes 5 points). b) You would need to convert the elapsed time into hours. For example, if the user entered 2 30 (2 hours 30 minutes), you would need to convert this to 2.5 hours (10 points). c) Your program should then calculate the freezer temperature in Celsius degrees (10 points) Note: the temperature of the freezer should increase as the power failure time lapse increases. This is a good test to run your program at different times (t) and test for correctness of the program. d) You should finally display the current temperature of the freezer based on the time elapsed since the power failure. Use proper output formatting to display acceptable results points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
