Files
basic-computer-games/22_Change
Martin Thoma c500424956 Simplify Python Code
print_with_tab / print_with_whitespace is trivial with Python
string formatting and was mostly used in only 2 lines.
2022-04-02 07:32:09 +02:00
..
2022-03-05 09:29:23 +01:00
2022-01-01 23:33:18 -06:00
2022-04-02 07:32:09 +02:00
2022-03-19 14:20:52 -07:00

Change

In this program, the computer pretends it is the cashier at your friendly neighborhood candy store. You tell it the cost of the item(s) you are buying, the amount of your payment, and it will automatically (!) determine your correct change. Arent machines wonderful? Dennis Lunder of Peoples Computer Company wrote this program.


As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at http://www.vintage-basic.net/games.html

Porting Notes

(please note any difficulties or challenges in porting here)