Question: Create a program called Desk. You are going to create a program will calculate the cost of how much it would cost to make a

Create a program called Desk. You are going to create a program will calculate the cost of how much it would cost to make a desk based on some questions. In the main(): will call a print function. input function: have it accept input for the number of drawers are in the desk, they type of wood (mahogany, oak or pine) return the values to cost cost function: call the input function then calls the wood function and drawer function. return the cost to Calculate the total cost of the desk and return the answer to print wood function Pine desk are $200 Oak desk are $240 all other woods are $280 drawer function The customer gets 3 drawers at no additional cost $30 charge for each additional drawer. print function: will call the cost function and then display the wood type chosen and cost, the number of drawers and cost and the total cost. remember to use the currency method main(): call printOutput(): userInput(): ask user for type of wood and number of drawers returns to the cost() (hint: leave the parameters blank and return the drawer and wood type) wood() Determine the wood price drawer() Determine the drawer price cost(): calls the Userinput() (hint: intDrawers, strWoodType = userInput() ) calls the wood() calls the drawer() Calculates the answer returns to the print print(): printOutput() calls the cost() Displays answer

You should solve this with python

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 Databases Questions!