Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

just updated the picture, please help Description A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be,

image text in transcribedjust updated the picture, please help

Description A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be, say, four inches thick. The length of the patio is to be, say, twice the width. Write a program that prompts the user to specify the amount of premixed concrete (in cubic yards) ordered, the thickness of the patio (in inches), and the ratio of length and width. The program then outputs the length and width of the patio (in feet). (1 cubic yard equals 46656 cubic inches). (To find the square root of a decimal number, include the header file ath using the statement #include in your program. The function sqrt included in this header file determines the square root of a decimal number. For example sqrt(16.0) -4.0.) Specifications In order to get full credit, your code must contain/perform the following Variables with correct type with meaningful names (All variables wll be of type double) . Comment your code, comment the variables and parts of code for input, output, and calculations Program must compile and run with any input Sample Output u-10-81-167-9 Asst03 VaskoDaGamer$ g++ Asst03. cpp u-10-81-167-9: Asst03VaskoDaGamer./a.out Enter cubic yards of premixed concrete ordered 30.0 Enter thickness of patio in inches: 4.0 Enter length to vidth ratio:0.5 Length: 418.282 inches Width 836.564 inches u-10-81-167 -9: Asst03 VaskoDaGamer$ ./a.out Enter cubic yards of premixed concrete ordered: 24.6

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago