+ 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 ??

14th Jul 2021, 1:30 PM
Tweakey
Tweakey - avatar
5 ответов
+ 7
Some test cases are hidden to prevent cheating. BTW, yeah, decimals will be lost if we use integers instead of floats :)
14th Jul 2021, 3:41 PM
Simba
Simba - avatar
+ 5
amount -= (amount / 100.0) * 10 ;
14th Jul 2021, 3:13 PM
Simba
Simba - avatar
+ 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 👍
14th Jul 2021, 3:36 PM
Tweakey
Tweakey - avatar
+ 1
I think , it needs System.out.println((int)amount);
14th Jul 2021, 4:42 PM
Jayakrishna 🇮🇳
0
Int x = 0; do{ amount = amount - amount / 100 * 10 ; x ++; } while(x < 3); System.out.println(amount);
14th Jul 2021, 3:01 PM
Tweakey
Tweakey - avatar