Question: Write a program that helps your contractor friend build a deck. we need to get the length and width of the deck. ask them for

Write a program that helps your contractor friend build a deck.

we need to get the length and width of the deck.

ask them for the length and width of the board they are going buy.

we need to calculate the number of boards required for the deck

ask them for the price per board - calculate total cost of boards

Our friendly home improvement offers a bulk discount

If we are buying more than $1000 in boards, we get 10% off

if we are buying more than $2000 in boards, we get 15% off

 

ask for a time estimate and the $ per hour they charge

 

ask them for whether or not the custom gets a discount

if they get a discount, ask for the % discount

the discount only applies to the time cost, not the board cost

 

calculate the total of the project with materials and labor

output the total cost?

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!