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
Can I explicitly call a destructor if I've allocated my object with new?

A: 1.      By using const protects you against programming errors which inadvertently alter data. 2.      By using const allows function to procedure const and non-const actu

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

A:BinaryHeap.h ------------ #ifndef BINARY_HEAP_H_ #define BINARY_HEAP_H_ #include "dsexceptions.h" #include "vector.h" // BinaryHeap class // CONSTRUCTION: wi

how would land elevation have changed if Coronado had traveled 150 miles due west from what is today Arizona instead of east toward New Mexico

Classify computer system according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.

Program for calculate average of total marks: #include using namespace std; void print(int marks_arr[],int cnt) { int ind[cnt]; int i=0; int j=0; int k=0;

An experiment succeeds twice as often as it fails. Find the chance that in the next six trials there will be at least four successes.

within 2 mins give me answer pllzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec