Okay, I know I should be posting some code here and showing where I've started and such, but I'm pretty lost as to how to start this program. Here's the problem:
2. Making Change:
This application, named ChangeMaker, will take as input a product price and an amount paid,
both floating-point numbers representing euro and cent amounts. The application computes and prints the amount of change due the user, and also expresses the change amount in number of 2-euros, 1-euro, 20-cent, 10-cent, 5-cent, 2-cent, and1-cent coins.
(Assume no change is given in bills, only in coins.)
Enter product price: 2.32
Enter amount paid: 5.00
Your change is 2.68 euros
1 x 2 euro
3 x 20-cent
1 x 5 cent
1 x 2 cent
1 x 1 cent
You can assume that the amount paid is greater than the product price, and that both inputs are
"euro and cent" amounts: positive numbers with at most two decimal places.3
Now, I know how to print the line asking for product price and enter amount paid, but I cannot figure out how to set up the rest of the code when switching from american USD dollars/coins to euros. I looked up the conversions and they are just intimidating as all get out when trying to take the equivalency of euros to each dollar thats entered and then taking the rest of the USD remainders and represent that in USD coinage. >.< Help is much appreciated thank you.