subject

**PLEASE AN IPO CHART AND A C++ PROGRAM FOR EACH QUESTION** 20. When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2 / 12 5 0.6%. The first month’s interest on $1,000 is 1000 3 0.006 5 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 2 6 5 19. This means after making the first payment, the loan amount is 1, 000 2 19 5 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 3 0.006 5 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 2 5.89 5 19.11 and the remain- ing balance after the second payment is 981 2 19.11 5 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then out- puts the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first month’s interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)

28. (Apartment problem) A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit?

Write a program that prompts the user to enter:

a. The total number of units.

b. The rent to occupy all the units.

c. The increase in rent that results in a vacant unit.

d. Amount to maintain a rented unit.

The program then outputs the number of units to be rented to maximize the profit.

30. Let n be an integer. The value of the expression lim (1 1 1 ) is n→` n written as e. This number e appears in many places in mathematics. For example, it appears in the formula A 5 Pert to compute the total mount accumulated when the interest is compounded continuously. It also appears in problems relating to exponential growth and decay. It is known that e is an irrational number. The value of e to nine decimal places is e 5 2.718281827. Write a program that computes the value n of the expression lim (1 1 1 ) between certain values of n and then n→` n compare the values with e. For example, you can compute the values of the expression between 100 and 10,000 with an increment of 100, or between 1,000 and 1,000,000 with an increment of 1,000.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
What tool can discover and report computer errors and conflicts that occur when you first turn on a computer and before the operating system?
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
Answers: 2
You know the right answer?
**PLEASE AN IPO CHART AND A C++ PROGRAM FOR EACH QUESTION** 20. When you borrow money to buy a hous...
Questions
question
Mathematics, 24.06.2019 20:00
question
Mathematics, 24.06.2019 20:00
Questions on the website: 13722367