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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!