Question: please wirte a python program Problem 2 Filename: currency.py In the currency of Wizarding Money, there are 17 Sickles to a Galleon. Prompt the user
please wirte a python program
Problem 2 Filename: currency.py In the currency of Wizarding Money, there are 17 Sickles to a Galleon. Prompt the user to enter an amount of Galleons as a float, and convert it to Galleons and Sickles. For full credit under the documentation category, write two test cases in a comment at the top of your file, like this but with your own examples. Do this before you start coding -- that way you know if your program works! # Input: 1.5 # Output: 1 Galleon, 8 # Input: 2.75 # Output: 2 Galleons, 13 Sickles Here's an example of what happens when I run my program (your text/formatting doesn't need to look exactly like ours though): How much money does Hermione have? 2.75 That's 2 galleons and 13 sickles
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
