The purpose of this project is to create code that calculates the minimum number of bills and coins.
In this project the user will be given an amount of change to return to a customer.
Create an interactive program to
The Number of Bills and Coins | |||
---|---|---|---|
Bills | Number of Bills | Coins | Number of Coins |
$100 | Unlimited | 50¢ | Unlimited |
$50 | Unlimited | 25¢ | Unlimited |
$20 | Unlimited | 10¢ | Unlimited |
$10 | Unlimited | 5¢ | Unlimited |
$5 | Unlimited | 1¢ | unlimited |
$1 | Unlimited |
Develop using a menu first, then convert to a GUI?
See PySimpleGUI or PyQt. (Note: There are other Python GUI toolkits.)
The same as Project #1, except with a limited number of bills and coins.
The Number of Bills and Coins | |||
---|---|---|---|
Bills | Number of Bills | Coins | Number of Coins |
$100 | 3 | 50¢ | 6 |
$50 | 4 | 25¢ | 5 |
$20 | 8 | 10¢ | 7 |
$10 | 2 | 5¢ | 4 |
$5 | 4 | 1¢ | 4 |
$1 | 5 |
This is a list of bills and coins to start with. The next step is to generate the number of bills and coins randomly (within limits).
Same as project #1 except use "Old English" money.
When entering or displaying money use these symbols (£), (s), and (d). If your keyboard/display does not have a (£) character, substitute (x).
Also display the money using the descriptive names shown below.
From Old English Money
Before decimalization on 15 February 1971, there were twenty (20) shillings per pound (£).
The shilling was subdivided into twelve (12) pennies.
The penny was further sub-divided into two halfpennies or four farthings (quarter pennies).
2 farthings = 1 halfpenny (1/4d) 2 halfpence = 1 penny (1d) 3 pence = 1 thruppence (3d) 6 pence = 1 sixpence (6d) 12 pence = 1 shilling (a bob) (1s) 2 shillings = 1 florin ( a 'two bob bit') (2s) 2 shillings and 6 pence = 1 half crown (2s 6d) 5 shillings = 1 Crown (5s)