+ 1
Java Loan Calculator quiz does not work locked items show error when unlocked items are correct...
How can I figure out what errors I am making when certain things showing errors are locked and don't show the error you have made even though I have pro version ??
6 Antworten
+ 7
Some test cases are hidden to prevent cheating.
BTW, yeah, decimals will be lost if we use integers instead of floats :)
+ 5
amount -= (amount / 100.0) * 10 ;
+ 1
Thank you I am guessing the ones you couldn't see were wrong due to roundings although it would help if they wernt locked so that you could see that 👍
+ 1
I think , it needs
System.out.println((int)amount);
0
Int x = 0;
do{ amount = amount - amount / 100 * 10 ;
x ++; } while(x < 3);
System.out.println(amount);