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

  Create program that uses array of shape

Create a program that uses an array of Shape references to objects of each concrete class in the hierarchy. The program should print a text description of the object to which each array elements

  Determine the output displayed in the list box

Determine the output displayed in the list box by the lines of code

  Program to display aggregate information for state

For each state, display aggregate information for that state, including: the total number of counties in the state, the total number of tax returns.

  Define a virtual terminal emulation window

NETW240: Managing User and Group Accounts, Using the mouse, click on the Fedora icon. Select ‘System Tools' and then select ‘Terminal'. A virtual terminal emulation window will appear. The window will provide access to the shell command-line prompt..

  Explain encapsulation of data and methods

Explain the following three key concepts of object-oriented technology. Illustrate each one using examples. a) Encapsulation of data and methods b) Support for polymorphism c) Inheritance within class hierarchies.

  Write function that produces a stream prime numbers

Write a function that produces a stream of positive prime numbers . Use that stream to create a list of the product of all pairs of consecutive prime numbers up to a given value.

  Why wont the following program compile correct it so it

question why wont the following program compile?class exception3 public static void mainstring args if

  What is a data flow diagram

Define what is meant by a process in a process model. How should a process be named? What information about a process should be stored in the CASE repository?

  Write program to input number of hours worked

Write a program that allows the user to input the number of hours worked and hourly pay rate for employees and outputs their total pay.

  Computing return value after execution of program

Compute return value of Antony after its execution?

  Dishtinguish antigone and what you know of theban saga

How would you dishtinguish Antigone, and what you know of Theban saga, to Oresteia, and what you know of story of Mycenaean saga?

  Write a bioperl-based script

Write a BioPerl-based script ("pick-by-id.pl") to extract sequences by id. It will emulate the "blastdbcmd -db -entry" command. Use "GBB.pep" and "BBA15" as the two arguments.

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