![Engineering](/tpl/images/cats/User.png)
Engineering, 27.11.2019 21:31, iiwolfiexuni
Void showloanrepayment(double amount, double payment, double rate) this function loops to show the loan being repaid and keeps track of the number of months it takes to do so. before the loop, it initializes the balance to the loan amount and months to zero. within the loop, it calculates the interest portion of each monthly payment, the principal portion of the payment, and the new balance with formulas: interest = balance * rate; principal = payment - interest; balance = balance - principal; it continues to loop while the balance is greater than zero. after the loop, it prints the number of months it took to repay the loan. void println parameters(double amount, double payment, double rate) this function prints the current loan parameters in two formatted columns. it is called after any loan parameter is changed (amount, payment, or rate), and before any loan repayment output. before printing the parameters, change the precision to 4. after printing the parameters, change the precision back to 2.
![answer](/tpl/images/cats/otvet.png)
Answers: 1
Other questions on the subject: Engineering
![image](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:10, hadellolo8839
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
![image](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:10, qwertylol12345
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
![image](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:10, lerasteidl
Determine whether or not it is possible to compress air adiabatically from k to 140 kpa and 400 k. what is the entropy change during this process?
Answers: 3
Do you know the correct answer?
Void showloanrepayment(double amount, double payment, double rate) this function loops to show the l...
Questions in other subjects:
![Konu](/tpl/images/cats/en.png)
English, 04.08.2019 06:40
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/en.png)
English, 04.08.2019 06:40
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 04.08.2019 06:40
![Konu](/tpl/images/cats/mat.png)
Mathematics, 04.08.2019 06:40
![Konu](/tpl/images/cats/istoriya.png)
History, 04.08.2019 06:40
![Konu](/tpl/images/cats/istoriya.png)
History, 04.08.2019 06:40
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 04.08.2019 06:40
![Konu](/tpl/images/cats/es.png)
Spanish, 04.08.2019 06:40