Program that allows a restaurant employee to enter an order, C/C++ Programming

The Malt Shop restaurant charges $2.99 for burgers, $1.29 for fries, and $1.25 for sodas. 

Write a program that allows a restaurant employee to enter an order (the number of burgers, fries and sodas), and then display the total cost before tax, the tax (8.25%), the final total cost and the customer's change given the amount tendered.  

Since the program is dealing with the use of money, be sure to utilize the setprecision, setw, left and right manipulators. 

Account for Input failure. It is possible the user may accidentally enter something other than a number into a numeric field.  Expect and correct a possible input failure using clear and ignore statements. 

Use constants to define the cost of burgers, fries and drinks, and the tax rate, something like this:

const double BURGER_COST = 1.99;

const double FRIES_COST = 1.29;

const double SODA_COST = 1.25;

const double TAX_RATE = .0825;

1826_Program That Allows a Restaurant Employee to Enter an Order.png

Posted Date: 3/2/2013 6:53:44 AM | Location : United States







Related Discussions:- Program that allows a restaurant employee to enter an order, Assignment Help, Ask Question on Program that allows a restaurant employee to enter an order, Get Answer, Expert's Help, Program that allows a restaurant employee to enter an order Discussions

Write discussion on Program that allows a restaurant employee to enter an order
Your posts are moderated
Related Questions
Write out pseudocode for a function called "and" that takes two arguments, both booleans, and returns the logical and of the inputs. DO NOT use the logical and operator: instead, w

#questiStarting with a blank solution, write a program to prompt the user for an employee number, hourly rate and hours worked. Compute and display the employee number, gross weekl

C Program for MULTIPLICATION TABLE   main() {           int a, b=1, c, d;           char ch;           clrscr();           while(ch!='n')           {

Does improper inheritance have a potential to wreck a project? Many projects meet a dead end due to bad inheritance. Hence it certainly has potential to wreck a project. Sma

How would I use variables of a C++ object within a Lua function, and then call the Lua function from C++ code?

Write a program to define a matrix: 1. Write a function that takes an integer and calculates and returns the factorial of the integer. The Factorial of a number "n" is compute

hi Bhasker, as we spoke tru phone ,we need a project using cloud computing .we need to present a protoype or demo on it (any thing using cloud should be fine)(ex: P2p)

example of program to ad two numbers

There are ''''n'''' ants on a ''''n+1'''' length rod. The ants are numbered from 1 to n and are initially placed at positions starting from position 1 till position n. They are mov

recsection method source code for searching position