Write a program for a furniture company

Assignment Help Programming Languages
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.

Reference no: EM13785056

Questions Cloud

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..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd