Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Observe the following guidelines:1. Begin each program with a comment section which contains the following:Program Name: Lab 1 Authors Name: Class Day & Time: A

image text in transcribedimage text in transcribedObserve the following guidelines:1. Begin each program with a comment section which contains the following:Program Name: Lab 1 Authors Name: Class Day & Time: A description of what the program does.2. Use comment through out the source code to explain steps.3. In general use lower case for variable names. Variable names should be mnemonic. Separate words in variable names with underscore or begin second word with uppercase letter. Example: int num, float cir_radius, double cirRadius ... etc.4. Indent 2-4 spaces (optimally 3) within main. (This should be supported by the Microsoft visual studio editor).5. Place no more than one C statement per line. 6. Do not type more than 80 characters per line.

Please use C++ 2019

Consider a problem where you have asked a contractor to visit your backyard lawn and provide an estimate of how much it will cost to carpet grass in your lawn. There is a pool, storage and doghouse, which don't need to be carpeted. You need to write a C program that will prompt the user to input the grass carpeting cost per square foot, the width and height of the lawn. Your program should read L, W, circ, stLen, and dogHwid, as well as price of carpet grass per sqft. It should calculate the area of pool, storage, dog house, lawn, the total area of the lawn that needs carpeting, total cost of the carpeting and output each to the console window. The dimension of the lawn, pool (circle), storage, doghouse are given in the figure below. All units are in feet. Note C = Circumference L Doghouse A dogHwid C=circ w pool 5v2 storag stLen

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

Explain the relationship between language and culture

Answered: 1 week ago