Question: (python) Cheesy Joe's Currency Exchange converts US Dollars to Wizarding Moncy. For cach conversion, they charge a flat fee plus 3% of the amount converted.
(python)Cheesy Joe's Currency Exchange converts US Dollars to Wizarding Moncy. For cach conversion, they charge a flat fee plus 3% of the amount converted. For instance, the total charge for converting 350 0.. dollars is .03 - 350+fee = $15.00 Write a program that prompts the user for a US currency valuc, and tells them the total amount charged to do the conversion. (Part of your job is to figure out the flat fee.) Your output should be formatted the way we'd expect currency to look, like this: $100.00. You can assume that the user enters a valid input, and you should treat it as a float. Before you begin coding -- write test cases! In the comments at the top of your file, list 3 test cases that you came up with. Something like this, but choose your own examples. You should write your test cases in such a way that, if they all pass, you can be fairly confident your program will work all the time. Test case #1: Input: $350 Total fee: $15.00 Test case #2: Input: $80 Total fee: $6.90 AMAZING points: These final two points may be awarded if you've completed the rest of the assignmen perfectly and blown us away with... Using constants where appropriate Using round or format functions only for printing out, and do not save any values that have been rounded off, floored, etc. Example Output Please enter an amount of money to convert. $350 Cheesy Joe's charges you $15.00 >>> Ln: 58
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
