Question: This is the problem 1. Develop a JavaScript program that will determine whether a department store customer has exceeded the credit limit on a charge
This is the problem
1. Develop a JavaScript program that will determine whether a department store customer has exceeded the credit limit on a charge account. For a customer, the following facts are needed: a) Account number b) Balance at the beginning of the month c) Total expenditure by this customer this month d) Total amount of payments by this customer this month e) Allowed credit limit 2. The program should input each of these facts from prompt dialogs as integers, calculate the new balance (= beginning_balance + expenditure - payments), display the new balance, and determine whether the new balance exceeds the customer's credit limit. For those customers whose credit limit is exceeded, the program should output HTML text that displays the message, "Credit limit exceeded
This is what I have and i am getting stuck on the current balance part, it isn't truly adding all the numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
