Can any 1 help me this out..???please....

converting dollars to coins...
conditions..::::
• Multiple outputs to the screen
• At least one input
• The use of integers and strings
• Looking or repetition with Do..While, If..Else
• Must have some output text to show correct value of coins that would be converted from the dollars.
• Code must include comments explaining your reason for the code section or what the code is doing
• Code must compile
• Dollar amounts should be round numbers with 2 decimals points (i.e. 47.00, 47.37, 47.50). If value is less than 1 or 0, the program should break or exit.



if u can help me i glad to you....
Here's a starting point:
1
2
3
4
5
6
7
quarters = Cents / 25;
Cents   %= 25; 
dimes    = Cents / 10;
Cents   %= 10;
nickels  = Cents / 5;
Cents   %= 5;
pennies  = Cents / 1;


And also remember there are 100 cents in a dollar.
Topic archived. No new replies allowed.