Question: My instructions are: To write a program that will accept a length (feet followed by inches) and width (feet followed by inches) and calculate the

My instructions are:

To write a program that will accept a length (feet followed by inches) and width (feet followed by inches) and calculate the amount of concrete and rebar needed to pour a rectangle concrete slab.

? Footings are one foot wide by one foot deep.

? Slab thickness is four inches thick.

? Two sticks of rebar placed in the footings half way down and a minimum of 2 inches from the edge.

My program needs to be able to calculate and report:

? The total concrete needed as a whole.

? The concrete needed for the footings.

? The concrete needed for the portion of the foundation that is only four inches thick.

? The total number of feet of rebar required for the project. Rebar will be four inches lower than the length of each side, which allows the ends to come within two inches from each edge.

All calculations need to be in cubic yards, except for rebar; rebar will be in feet.

First I need to prompt the user to input a length in feet and any additional inches which I figured out: Where I am confused is actually coming up with the formulas to use in order to find the concrete needed for footings and slab. Also, declaring the correct variables to do so.

I attached the picture of how the figure sort of looks like in order for this to make more sense: (Length and width depends on input given by user)

My instructions are:To write a program that will accept a length (feet

\f

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!