Question: You will create a code that will take user input for amount owed and a cash amount paid and return the amount of change
You will create a code that will take user input for amount owed and a cash amount paid and return the amount of change to be given back. You are only allowed to use material from Unit 1. No loops, conditionals, iteration, etc. For the set number of items just use 3 items no more or no less. 70%: Takes amount owed and amount paid and outputs change given back. Example: Input: Enter the price: 4.33 Enter the amount paid: 5.00 Output: Change owed: 0.67 80%: Same as above but user enters prices of a set number of items. Example: Input: Item 1 Price: 1.00 Item 2 Price: 2.00 Item 3 Price: 1.33 Total: 4.33 Enter the amount paid: 5.00 Output: Change owed: 0.67 Get Started!
Step by Step Solution
There are 3 Steps involved in it
1 Heres a simple Python script that adheres to the specified constraints Function to get user input ... View full answer
Get step-by-step solutions from verified subject matter experts
