Week 3
Felipe's Taqueria
Look each item up, add its price, and ignore anything that is not on the menu. Stop when the person ends input.
Menu items, one per line, until the person is done.
A running total after each real item.
The question, more slowly
The question is: the person types menu items, one per line, until they end the input. After each item that is on the menu, you print the running total. An item that is not on the menu is ignored, and the total does not change.
You need the menu as a lookup, a total that starts at zero, and a loop that stops when input ends. On a Mac, Control-D ends input. The prices are in cents in the sense that you format them as dollars the way the spec shows.
People crash when input ends, or they add a price for an unknown item. Type one real item, one fake item, then end the input.
Before you code
On a Mac, Control-D ends input in the terminal. Practice that with a tiny loop that only prints what you typed, in the sandbox, not in this problem.