Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with this webpage. Every time the user clicks add option, it needs to create a new a new offer like displayed in

I need help with this webpage. Every time the user clicks add option, it needs to create a new a new offer like displayed in the first picture(up to a maximum of 3). The second picture shows the current output. The code for both the javascript and html is listed below the pictures.

image text in transcribed

image text in transcribed

extra_credit.html

Your title here
Financing offer details

script.js

function generateOption() { var initBalance = parseFloat(document.getElementById("purchPrice").value); var cashIncentive = parseFloat(document.getElementById("cashIncentive").value); var interestRatePercent = parseFloat(document.getElementById("interestRatePercent").value); var currBalance; var loanTerms = parseInt(document.getElementById("loanTerms").value); var monthlyPay = 1000; var html = ''; currBalance = initBalance; html += "

"; html += ""; html += ""; html += ""; html +=""; html +=""; html +=""; html += ""; html += ""; html += ""; html += ""; html += ""; html += ""; html += ""; html += ""; html += ""; html += ""; html += ""; html += ""; html += ""; html += ""; html += ""; html += "
Offer 1:X
Interest Rate:#.##%
Loan Term (months):##
Monthly Payment:$###.##
Total cost of ownership:$####.##
"; html += "
"; document.getElementById("offerDetails").innerHTML = html; } material design. Specifically, each financing option that displayed should be styled as a "card". Wireframe Purchase Price Financing Offer Details Cash Incentive: Interest Rate: Term (months): Add Option Offer 1 xOffer 2: Interest Rate: Loan Term (months): Monthly Payment: Total cost of Ownership: ###96 | | Interest Rate: ## | | Loan Term (months $####### | | Total cost of Owner 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago