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
Calculate the salary if the person work 8 hours/day and the salary/hour is RM5.20 - UML class diagaram -Class -Exception handling/assertion

Algorithm for railway ticket booking process

assume that the first integer read with cin specifies the number of values remaining to be entered. that program should read only one value each time cin is executed .a typical inp

C Program to check FACTORIAL   main() {             int i,j,m,fact,sum=0;           clrscr();           printf("ENTER THE NO.: ");           scanf("%d",&m);

The definition of an object(variable ): We can explain a variable(set memory to the variable) in the following ways. e.g. double salary; int month; When more than o

Rahul is a newbie to the programming and while learning the programming language he came to know the following rules: ???• Each program must start with ''{'' and end with '


What are the different types of endless loops? An endless loop can be of two types: i.) A loop that is intentionally designed to go round and round until the condition withi

Luminous Jewels - The Polishing Game Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various lum

How many levels deep can include files be nested? - As such, there is no limit to number of levels of nested include files you can have however your compiler might run out of s