Question: please include comments to explain code 9:06 PM Desk Program Write a program that calculates the cost of building a desk. Using reference variables, create

 please include comments to explain code 9:06 PM Desk Program Write

please include comments to explain code

9:06 PM Desk Program Write a program that calculates the cost of building a desk. Using reference variables, create a function that will get all input from the user. You will ask the user what type of wood they prefer: Mahogany, Oak, or Pine. You will then ask them whether or not they would like it to have drawers. If they say yes, ask them how many. Then call a function called calculateCostf) that will calculate and return the cast. If they say no, call a function called calculateCost (1 that will calculate and return the cost The cost is based on the following: Pine desks are $150.00 Oak desks are $190.00 Mahogany desks are $230.00 Each drawer costs $45.00 You be writing this SAME program twice: 1) Using overloaded functions 2) Using default arguments/parametens Write them REALLY well, as if this were a job interview question! Upload both files to Moodle Due next time I see you

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!