subject
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.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 03.07.2019 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
question
Engineering, 04.07.2019 18:10
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
You know the right answer?
Void showloanrepayment(double amount, double payment, double rate) this function loops to show the l...
Questions
question
History, 07.10.2019 08:00
Questions on the website: 13722363