1.

Solve : Creating java program?

Answer»

I need HELP creating a java program that inputs an AMOUNT of cents, converts the input amount to dollars, quarters, dimes, nickels and pennies.
Input the cents
dollars = cents/100
centsLeft = cents%100;
quarters = centsLeft/25
centsLeft = centsLeft%25
dimes = .....
Test your program with DIFFERENT inputs.I don't recall java having a modulus operator, I'm not sure about javascript, though.

You seem to have it- what exactly to you need help with?Its a straigth forward program ... .wat u want .... whole program
If you are facing any problem then let me .. please POST error msgQuote from: alyoob on July 22, 2008, 08:27:13 AM

I need help creating a java program that inputs an amount of cents, converts the input amount to dollars, quarters, dimes, nickels and pennies.
Input the cents
dollars = cents/100
centsLeft = cents%100;
quarters = centsLeft/25
centsLeft = centsLeft%25
dimes = .....
Test your program with different inputs.

I didn't provide any code straight-up because this kind of looks LIKE homework.Quote
looks like homework.
I agree with BC_Programmer

Quote
I need help creating a java program that inputs an amount of cents, converts the input amount to dollars, quarters, dimes, nickels and pennies.
alyoob !
Do you think this program only need simple calculate and simple input and output?All of these can be found in Textbooks.

I advise you to read your Textbooks throughout .


Discussion

No Comment Found