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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, makaylashrout77
Amass of 1.5 kg of air at 120 kpa and 24°c is contained in a gas-tight, frictionless piston-cylinder device. the air is now compressed to a final pressure of 720 kpa. during the process, heat is transferred from the air such that the temperature inside the cylinder remains constant. calculate the boundary work input during this process.
Answers: 2
image
Engineering, 04.07.2019 18:10, anna22684
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
image
Engineering, 04.07.2019 18:10, keigleyhannah30
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
image
Engineering, 04.07.2019 18:10, lowkeyqueenk
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
You know the right answer?
Void showloanrepayment(double amount, double payment, double rate) this function loops to show the l...

Questions in other subjects:

Konu
Mathematics, 18.03.2021 01:00