Been messing with the thing for an hour still not getting it, but believe me I tried. Do you think you could really do me a favor this one time and tell me how I can fix this so I can understand?
Type: Posts; User: GMPoison
Been messing with the thing for an hour still not getting it, but believe me I tried. Do you think you could really do me a favor this one time and tell me how I can fix this so I can understand?
There's something wrong with this:
int quarters = (int) ((owed_final) / 25);
int dimes = (int) ((owed_final % 25) / 10);
int nickels = (int) ((owed_final % 25 % 10) / 5);
int pennies = (int)...
I did a couple of tests and I know how it works, I just can't seem to implement my knowledge of it into this program. Further help would really be appreciated Norm. Thank you.
--- Update ---
I...
The program is supposed to output the following:
Please Enter the Cost of the Item:
4.57
Please Enter the Amount Paid:
5.00
Change Owed: 0.43
Quarters: 1
Dimes: 1