Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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 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

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

More Books

Students also viewed these Databases questions

Question

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

Answered: 1 week ago