Web Application Tutorial3 - (=beginning balance + charges...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
WXGE6320: Web Application Tutorial 3 1. Develop a JavaScript program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: a. Account number b. Balance at the beginning of the month c. Total of all items charged by this customer this month d. Total of all credits applied to this customer’s account this month e. Allowed credit limit The program should input each of these facts from a prompt dialog as an integer, calculate the new balance
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (=beginning balance + charges credits), display the new balance and determine whether the new balance exceeds the customers credit limit. For customers whose credit limit is exceeded, the program should output XHTML text that displays the message Credit limit exceeded. 2. Write a JavaScript program that uses looping to print the following table of values. Output the results in an XHTML table as shown below. N N*10 N*100 1 10 100 2 20 200 3 30 300 4 40 400...
View Full Document

Ask a homework question - tutors are online