Reference no: EM13785056
Write a program for a furniture company that determines the price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany. The output is the name of the wood chosen as well as the price of the table. Pine tables cost $100, oak tables cost $225, and mahogany tables cost $310. If the user enters an invalid wood code, set the price to 0 (This might be best done in a switch structure). Add a prompt to ask the user to specify a (1) large table or a (2) small table. Add $35 to the price of any large table, and add nothing to the price for a small table (This might be best done in an if - else structure). Display an appropriate message if the size value is invalid, and assume the price is for a small table. Add on 6% tax and display a receipt at the end. See the sample output for how your program should interact.
Runs a loop to add more tables one customers order.
Within that loop, accumulate a total. Totals can be done within that loop by declaring double grandTotal = 0; outside of the loop and then after the first one is calculated, accumulate with grandTotal = grandTotal + total; whereas total is the cost of one desk.
At the end of each desk input, display the cost of that desk, the size, and the wood type as you did in the original assignment. Take tax out and recalculate tax using the grandTotal variable. This will be done outside the loop.
Error code / range check every numeric input your program takes.
An assignment on fudiciary duties
: Fudiciary Duties.
|
Racial makeup of organizations issues
: What was the racial makeup of organizations you were in? Scouts, soccer team, church, etc.?
|
Write a paper about women rights and human development
: Write a paper about Women rights and human development.
|
Discuss the persuasive authority of each
: Discuss the major differences between an opinion letter, a legal memorandum, and a legal brief. Next, identify the primary audience of each legal document, and discuss the persuasive authority of each. Support your opinion
|
Write a program for a furniture company
: Write a program for a furniture company that determines the price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany. The output is the name of the wood chosen as well as the price of the table
|
Write a critical evaluation essay on platos apology
: Write a critical evaluation essay on Plato's "Apology".
|
Difference between explicit and implicit costs of production
: Difference between explicit and implicit costs of production - Explain the reasoning behind the U- shaped, long-run, average cost curve.
|
Did oshas revision to the bbp standard
: Did OSHA's revision to the BBP standard that called for advances in sharps technology result in fewer BBP incidences?
|
Why are some reasons to eliminate it
: Given the huge negative outcome of prisoner disenfranchisement, what are some reasons to stay the course? Why are some reasons to eliminate it? If correctional supervision is "enough" punishment, why do we continue to punish after release from sup..
|