Html/Javascript code that display a program that looks similar to the one shown
ID: 3730203 • Letter: H
Question
Html/Javascript code that display a program that looks similar to the one shown in the picture (payment and payoff amount need to be calculated, and display the right values ($429.49 and $54306.40 using the example values)
Loan Calculator x C D file:///C/Users/rab29/Dropbox/books/handbooIQ -. Loan Calculator Amount borrowed (principal) Annual interest rate (example: .065) Number of years Payments per year Compute payment Number of payments paid to date 80000 0.05 30 12 $429.46 180 $54306.40 Compute payoff amount ResetExplanation / Answer
<!DOCTYPE html>
<html>
<head>
<title>Loan Calculator</title>
<style type="text/css">
*
{
margin: 0;
}
#All
{
width: 500px;
height: 250px;
}
p
{
font-family: arial;
font-variant: inherit;
font-size: 1.2em;
}
</style>
<script>
function changeScreenSize(w,h)
{
window.resizeTo( w,h )
}
</script>
</head>
<body>
<div id="All">
<table>
<tr><th colspan="2"><h2>Loan Calculator</h2></th></tr>
<tr><td><p>Amount Barrowed (Principal)</p></td><td><input type="text" name="AB"></td></tr>
<tr><td><p>Annual Intrest Rate (Example: .065)</p></td><td><input type="text" name="AIR"></td></tr>
<tr><td><p>Number Of Years</p></td><td><input type="text" name="NOY"></td></tr>
<tr><td><p>Payments Per Year</p></td><td><input type="text" name="PPY"></td></tr>
<tr><td><input type="Button" name="CP" value="Compute Payment"></td><td><input type="text" name="CPV"></td></tr>
<tr><td><p>Number Of Payments Paid To Date</p></td><td><input type="text" name="NOPPTD"></td></tr>
<tr><td><input type="Button" name="CPOA" value="Compute Payoff Amount"></td><td><input type="text" name="CPOAV"></td></tr>
<tr><td colspan="2"><input type="Button" name="Rest" value="Reset"></td></tr>
</table>
</div>
</body>
</html>
Note:please Provide Formula To Calculate Loan. So That I Will Update
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.