Client project
Market Stall Calculator
for Tilda Marsh, Marsh & Daughters Market Stall
Tilda adds up every customer's fruit on a slate, and on busy mornings the sums go wrong. She wants a small calculator program: one function for the price of a bag of fruit, and a proper four-operation calculator that never crashes on her, even when someone asks it to divide by zero.
- The price of a bag. A function that prices a bag of fruit with a discount.
- Four operations. A calculate() function for +, -, *, and /.
- Open for business. The interactive calculator Tilda will use at the stall.
Variables and arithmeticFunctions and returnmatch or if/elifinput()