Good day:
My infile contains the following:
U
Apple Pie
1.29
A
Bacon Burger
3.45
V
Burrito
2.09
S
Cheeseburger, Double
3.59
W
Cheeseburger, Regular
2.95
Y
Chicken Nuggets
1.87
H
Chicken Sandwich
3.33
C
Chili, Bowl
2.12
X
Chili Dog
2.29
N
Chocolate Milk
0.98
D
Coffee
1.09
R
Fries, Large
1.89
F
Fries, Small
1.19
Q
Hamburger
2.45
Z
Hot Dog
1.99
T
Onion Rings, Large
2.59
G
Onion Rings, Small
1.57
J
Peach Pie
1.29
I
Potato, Baked
1.47
P
Salad, Regular
3.69
K
Salad, Side
1.95
M
Shake, Large
1.98
B
Shake, Small
1.49
O
Soft Drink, Large
1.69
L
Soft Drink, Regular
1.49
E
Soft Drink, Small
1.06
The assignment:
You are familiar with computer-driven systems used by cashiers in fast food restaurants. In this
project, you will plan and write a program that will simulate such a point-of-sale device. Here's how
it will work.
When a customer orders, the cashier presses a key for each item ordered (WITHOUT PRESSING
<ENTER>). If more than one of the same item is ordered, the key is pressed an appropriate
number of times. As each key is pressed, the name of the item and its price are displayed on the
next available line on the monitor. Typically, a customer might order a sandwich, then fries or
onion rings and finally, a drink or dessert.
After the customer finishes ordering, a key is pressed to indicate that the …