Java loan calculator problem in loops | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java loan calculator problem in loops

Hi, I WOULD APPRECIATE IT VERY MUCH IF ANYONE COULD EXPLAIN ME HOW TO PROGRAM THE LOAN CALCULATOR THAT IS FOUND AT THE END OF THE JAVA COURSE OF LOOPS. ThANKS IN ADVANCE! HERE IS THE CODE: https://code.sololearn.com/cV0qeq7CepWO/?ref=app

23rd Dec 2020, 11:28 AM
Siem Aynealem Weldeyohannes
3 Answers
+ 1
Where is your code?? Attach your code here https://www.sololearn.com/discuss/2212558/?ref=app
23rd Dec 2020, 11:34 AM
ㅤㅤㅤ
- 1
I updated my initial post; I put a link to the code so that you can have a look at it. Thanks again!
23rd Dec 2020, 3:53 PM
Siem Aynealem Weldeyohannes
- 1
Use 90% for 6 months to find the balance. 4 lines of code added. https://code.sololearn.com/cp6GXE4Rc84v/?ref=app If you are paying 10% every month, one way is to find the 10% and then use your total minus the 10% paid to get the balance. The other way, is to find the 90% so you don't have to minus. If you have 100 and you paid 10%, Method 1: 100 - (100 * 10%) = 90 Method 2: 100 * 90% = 90 The "i=0" is used for looping. It will loop from 0 until 5 (< 6), which is 6 times. Finally prints out amount.
29th Dec 2020, 6:32 PM
Lam Wei Li
Lam Wei Li - avatar