Computers and Technology

Design and implement a program that will allow us to determine the length of time needed to pay off a credit card balance, as well as the total interest paid. The program must implement the following functions:1. displayWelcome This function should display the welcome message to the user explaining what the program does.2. calculateMinimumPayment This function calculates the minimum payment. It should take balance and interest rate as arguments and return the minimum payment. So the value you display for minimum payment is the value you get from this method. Do not use a literal hardcoded value when you display the minimum payment!3. generatePaymentID: This should be a closure function that generates a new payment id for the payment. The function should remember the previous id and the new generated id should be the old one plus 1. Make the initial id 1.4. processPaymentSchedule This function displays the actual payment schedule. It should take the balance, monthly interest rate and minimum payment as arguments. Use the 1500, 18% and 2% literal values below. Each time you calculate a new payment line, create an object literal with properties for the Year, Balance, Payment Id, and InterestPaid. Pass this object literal to the displayPayment function. The paymentId should be generated by the generatePaymentID function each time. See the sample execution below:This program will determine the time to pay off a credit card and the interest paid based on the current balance, the interest rate, and the monthly payments made. Balance on your credit card: 1500 Interest Rate: 18 Assuming a minimum payment of 2% of the balance ($30 min) Your minimum payment would be $ 30.00PAYOFF SCHEDULEYear Balance Payment Num Interest Paid1 1,492.50 1 22.501,484.89 2 44.891,477.16 3 67.161,469.32 4 89.32. . .. . .7 517.51 73 1,207.51495.28 74 1,215.28472.70 75 1,222.70449.79 76 1,229.79. . .. . .8 227.51 85 1,277.51200.92 86 1,280.92173.94 87 1,283.94146.55 88 1,286.55118.74 89 1,288.7490.53 90 1,290.5361.88 91 1,291.8832.81 92 1,292.813.30 93 1,293.300.00 94 1,293.35 displayPayment This function should take the payment object literal and display it on the console. See the output example in part 4.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, lexhorton2002
The great length of north america causes the climate to be varied. true false
Answers: 2
image
Computers and Technology, 22.06.2019 18:30, Jessieeeeey
Kto rozmawia z clamentain przez krótkofalówke w the walking dead która śledzi lee w 4 epizodzie
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, emojigirl2824
Word vocabulary words: print, proofread, status line, graphics, font effects, left margin, justification, line spacing, copy/paste, data. review words: font point, bold, save, center, error. fill in the correct word for the definition and then transfer the letters to the appropriate spot by number. some numbers will be found multiple times. you will end up with a quotation about…… what else? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 k 16 17 18 19 20 21 22 23 24 25 8 27 28 29 w 31 32 k 34 35 36 w h 39 40 41 42 8 44 45 46 47 48 49 50 51 52 53 54 55 .1. a software function that records keystrokes on a disk or drive so information can be 5 4 52 9 later retrieved. p n 2. to produce a paper copy of information. 10 7 12u n 3. a display that shows the location of the cursor, pages, etc. 45 46 18 27 36 20 42p4. pictures or images, located in clip art or other files. 6 24 44 28 34 49 555. any mis-stroke of a key. 47 41 48 2 10 n6. allows major changes to the font such as shadow, emboss, etc. 21 25 46 35 23 21 29 14 22 17 n7. a feature that centers lines of text horizontally. 49 53 46 9 51 p8. size of the font 31 16 22 b l 9. a feature that prints designated text darker than the rest to add emphasis. 32 3 . p10. to compare copy on a display screen or printout to the original 24 39 25 23 54 9 50 3 and correct errors. j un 11. a feature that allows text to be aligned at the left 11 12 7 21 16 49 40 46 34 2 and right margins. leftn 12. amount of blank space on the left side of the paper. 8 18 41 6 34 linen 13. number of blank lines between lines of text. 17 4 49 13 1914. any information inputted into the computer. 3 4 46 44 p /p15. feature that duplicates text from one location and places it in another.
Answers: 2
image
Computers and Technology, 22.06.2019 21:00, mazolethrin9632
Which of these is most responsible for differences between the twentieth century to the twenty-first century?
Answers: 2
Do you know the correct answer?
Design and implement a program that will allow us to determine the length of time needed to pay off...

Questions in other subjects:

Konu
Mathematics, 09.10.2019 23:30