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

Assignment Help:

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


Related Discussions:- Program that allows a restaurant employee to enter an order

Least coast method, Find out initial basic feasible solution for the given ...

Find out initial basic feasible solution for the given transportation problem using Least Cost Method (LCM).

What is the significance of external declaration, Problem 1 What is the...

Problem 1 What is the difference between function declaration and function definition? 2 Write a recursive function to find sum of even numbers from 2 to 10. 3 List some

What do you mean by inheritance, Inheritance is the process of forming new ...

Inheritance is the process of forming new classes, called derived classes, from existing classes or base classes. The derived class inherits all the capabilities of the base class,

FlipFlaps fltk project, The project is to design and write a C++11/FLTKgame...

The project is to design and write a C++11/FLTKgame program with a graphical user interface.The game is based on "pancake sorting," as described at http://en.wikipedia.org/wiki/P

Described assignment operator?, Default assignment operator mange assigning...

Default assignment operator mange assigning one object to another object of the same class. It is member to member copy as shallow copy.

Diploma in IT, Function fact explain how the process of recursion works in ...

Function fact explain how the process of recursion works in C++.In your answer assume that the function is called to calculate the factorial of 6?

Padovan string, A Padovan string P(n) for a natural number n is defined as:...

A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of t

#padovan string in c, #write a program that counts the number of occurances...

#write a program that counts the number of occurances of the string in the n-th padovan string p(n)

I need plugin for amibroker using c++, I need plugin for amibroker using c+...

I need plugin for amibroker using c++ Project Description: Need to prepare plugin for amibroker using c++. Should be system bound after installing. System should show based o

Write Your Message!

Captcha
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