subject

Write a program to analyze a car loan. The user should enter the amount of the loan, the annual percentage rate of interest, and the duration of the loan in months. After each piece of data is entered, the data should be checked to make sure it is reasonable. If bad data has been supplied, the user should be so advised Otherwise, the monthly payment and the total amount of interest paid should be dis played. The formula for the monthly payment is:

Monthly Payment= p. r/1-(1+r)^-n

where p is the amount of the loan, r is the monthly interest rate (annual rate divided by 12) given as a number between 0 (for 0%) and 100 (for 100%), and n is the duration of the loan in months. The formula for the total interest paid is

Total interest = n. [monthly payment] - p

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
Given the following code: if (n == 2) { k -= 2; } else if (n == 3) { k -= 3; } can be rewritten as: if (< condition > ) { < assignment statement > ; } assume that evaluating < condition > does not change the values stored in n and k. which of the following could be used as < assignment statement > ? k -= n; k -= 1; k -= 2; k += n; k = n - k;
Answers: 2
question
Computers and Technology, 23.06.2019 01:00
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Selling a product through an electronic medium is
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
You know the right answer?
Write a program to analyze a car loan. The user should enter the amount of the loan, the annual perc...
Questions
question
Mathematics, 22.11.2019 19:31
question
Mathematics, 22.11.2019 19:31
question
Mathematics, 22.11.2019 19:31
question
Mathematics, 22.11.2019 19:31
question
Mathematics, 22.11.2019 19:31
question
History, 22.11.2019 19:31
Questions on the website: 13722367