Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How would I code this: Further details on the sod. There are two components of t

ID: 3639843 • Letter: H

Question

How would I code this:

Further details on the sod. There are two components of the total sod cost: the cost to purchase and the cost to install. Ask the user which type of sod that they want: Kentucky bluegrass goes for $1.47 per square yard, while South Carolina rye is much cheaper, retailing at 57 cents per square yard. Compute the installation cost using an average labor charge of $6.95 per hour and assume that the sod installer can install one square yard every 3 minutes. As far as the cost is concerned, the user wants to know just the total cost, i.e., the sum of the cost to purchase and the cost to install. (Note: when asking the user to input the sod type, give them a simple menu to choose from with Carolina Rye being 1 and Kentucky Bluegrass being 0.

Explanation / Answer

#include using namespace std; int main() { int grass; int sq; double tc; cout > grass; cout > sq; if(grass == 0) { tc = (1.47 * sq * 6.95)/60; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote