[Solved]Write C Program Solve Following Problem Write Program Takes Length Width Rectangular Yard Q37192299
Write a C++ program to solve the following problem:
Write a program that takes the length and width of a rectangularyard and the length and width of a rectangular house situated inthe yard. Your program should compute the time required to cut thegrass at the rate of one square foot per second. The lengths andwidths are expressed in feet and are integers. Your program shouldinteract with the user in exactly this manner:
Enter length of yard in feet: 100
Enter width of yard in feet: 97
Enter length of house in feet: 45
Enter width of house in feet: 38
Area to be mowed: 7990
Time: 133 minutes and 10 seconds
Test data 1) 100, 97, 45, 38
Test data 2) 120, 100, 60, 50
The source code must contain your name, email and lab number ascomments at the top. In addition to these comments, have at leastfour other meaningful comments. The output mustcontain your name created through cout statement(s).
Submit the source code with the output for “Test data 2)’ copiedand pasted at the bottom as a comment.
Example for math behind this lab:
100 * 97 = 9700 is the area of the yard
45 * 38 = 1710 is the area of the house
9700 – 1710 = 7990 is the area to be mowed
Using integer division (no remainder) 7990 / 60 = 133
The remainder of 7990 / 60 is 10 (Hint: use modulus operator %)
Expert Answer
Answer to Write a C++ program to solve the following problem: Write a program that takes the length and width of a rectangular yar… . . .
OR

