The Tale
You work in a store and make change for customers.
You are presented with with the total cost of items purchases.
The customer gives you cash and you must make change.
(The difference between the total cost and the amount tendered.)
Project #1
Create an interactive program to practice simple mental arithmetic:
- ask the user to mentally calculate the change
- loop
- randomly generate the total cost
- randomly generate the amount tendered
- calculate the change
- test the change for accuracy
- display the results
- set reasonable limit for input values
- What if the customer does not give you enough money?
Do not allow this?
Tell the customer how much they still owe?
- Google the web. There are articles and videos on
how to quickly do mental arithmetic.
- This program is a way to practice.
Project #2
Covert Project #1 to a GUI.
Project #3
Turn it into a game by timing how long it takes
to perform 10, 20, ... problems.