In one of the excercieses that i'm doing it wan'ts me to write a program that asks the user to input an amount in dollars (5.67) and then converts that (5.67) to the old british style system of pounds shilling and pence (10.3.9). Here's some info
20 shilling = 1 pound
12 pence (pennies) = 1 shilling
240 pence (pennies) = 1 pound
interaction with the program might look like this:
//example
Enter amount in new style currency: 5.67 //example
Converted (pound, shilling, pence) = 10.3.9 //not right answer
I'm very confused on how to go about converting this. This is all the info that's given. If you have any suggestions plz write back. thanks