求解答思路,谢谢。
Write a program for a restaurant called CFOOD:1Defines should be used for price of items and taxes.
2 Program must demonstrate the use of functions where values are passed to the function or the use of pointers. Whichever is most appropriate
3 Prices are as follows:
Fish 3.00 Chips 2.00
Hamburgers 3.00 Hamburger With cheese 4.00
Soft drinks or coffee/tea 1.00
4 There is only one tax and the tax rate is 5%
5 Program must loop until the user enters the character N, NOT a number
Input Screen
CFOOD FISH && CHIPS && BURGERS
FOOD
How many orders of fish ?
How many orders of chips ?
How many hamburgers ?
How many with cheese ? <<<only asked if hamburgers ordered
These brackets indicate good choices for a function
DRINKS
How many soft drinks ?
How many coffees or teas ?
The output area should look like this:
CSIDE FISH && CHIPS && BURGERS
Total Food 999.99
Total Drink 99.99
Total Order 999.99
Tax 99.99
--------------------------
Total Owing 999.99
Amount tendered 999.99
Change 999.99