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

  Explain online ordering system application

Develop 3 proposals for your development strategy, which include outsourcing (buy), insourcing (make), or a combination of both. You will present the pros and cons of each, along with a financial analysis. Finally, you will make a recommendation o..

  Write liberty basic to make payment of current balance

Makes a payment equal to 5 percent of current balance suppose the customer makes no new purchases. Must be written in Liberty Basic.

  Write program to allow two users to play tic-tac-toe

Write a program that will allow two users to play tic-tac-toe. The program should ask for moves alternately from player X and player O.

  Create logic for program to enter each household size

Create logic for a program that allows a user to enter each household size and find out the mean and median household size in Marengo.

  Develop unix shell script to input number of hours

Develop a Unix shell script to input number of hours worked and pay rate and calculate the total pay, then the social security amount (assume 5%), then the net pay.

  Create security code program-display digit-ascii character

You have been hired to create the security code program. Program must permit user to enter message, one character at a time.

  Function to compute the average of numbers

Function will then compute the average of numbers, total of all of the numbers added together, and new array of numbers.

  Write a class to accepts no parameters and returns no value

Write class named ParkingMeter containing:A method named tick that accepts no parameters and returns no value. tick decreases value of timeLeft by 1, but only if value of timeLeft is greater than 0.

  Calculate interest on account balance-get total amount due

Accepts account balance and calculates interest on Account balance. It then adds on interest to get total amount due.

  Function to recognize employee-s number and address

You are given with 45 telephone numbers of Employee who are misusing call center resources.Write down Fcomputer program function to recognize Employee no.

  Compare and contrast object-oriented languages

Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of: Programmability Maintainability Performance Development tools Explain the use of scripting languages, such as JavaScript, PHP,..

  Rewrite the extract.pl using bioperl

Rewrite the "extract.pl" using BioPerl, including the use of Bio::SeqIO to read the genome FASTA file ("mystery_seq1.fas") and the use of Bio::Seq for obtaining coding sequences and translating sequences.

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