Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Jul 2017 |
Last Sign in: | 206 Weeks Ago, 2 Days Ago |
Questions Answered: | 15833 |
Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Please Hurry
Create the html file with a <title> tag that states: Chapter 6 Assignment 2
2. Create Loan Payment Program. Use prompts to ask the user for the following:
a. Enter the vehicle price. Like 16900
b. Enter the down payment amount. Like 6000
c. Enter the annual interest rate for the loan. Like 7.5 Use a prompt window for each of the above.
3. Once the input has been entered, the script should calculate the monthly payment for a 24, 36, 48 and 60 month loan.
4. Other specifications include:
a. Page background color should be tan.
b. Loan amount = vehicle price - down payment
c. Monthly interest rate =Â annual interest rate / 1200
d. Create function which accepts the monthly interest rate, number of months for the loan, and the loan amount and returns the monthly payment.Â
Use the following formulas in the function:
var base = Math.pow(1 + monthly interest rate, number of months for the loan); var payment = loan amount * monthly interest rate / (1 - (1/base)); return payment
NOTE: Don't worry if you don't know these formulas. They are simply the two steps you use to calculate a monthly payment based on a fixed interest rate and a fixed term.e. Create the heading and print the input as shown in the sample window
f. Using a loop, display the payments starting at 2 years and going through 5 years.
 g. Format your output to line up nicely (check out the <pre> html tag). Round the calculated monthly payment to the nearest penny. For extra credit, put in $ signs and commas. (you might want to look this up on the web
Attachments:----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly