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, BardiFan
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
image
Engineering, 04.07.2019 18:10, danksans7011
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
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, redrosesxx
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
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, 12.06.2020 05:57
Konu
Social Studies, 12.06.2020 05:57