Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write using HTML and JavaScript. Thanks. The National Commerce Bank has hired you to create Web application that verifies a customer personal identification number (PIN).

Write using HTML and JavaScript. Thanks.

The National Commerce Bank has hired you to create Web application that verifies a customer personal identification number (PIN). A valid PIN is a seven-digit number that meets the following specifications: Digit 1: Must be in the range of 7 through 9 Digit 2: Must be in the range of 5 through 7 Digit 3: Must be in the range of 0 through 4 Digit 4: Must be in the range of 0 through 9 Digit 5: Must be in the range of 6 through 9 Digit 6: Must be in the range of 3 through 6 Digit 7: Must be in the range of 4 through 8

Notice that each digit must fall into a range of integers. Do not use HTML5 validation support. Your application should have two arrays: intMinimum and intMaximum. The intMinimum array should hold the minimum value for each digit position, and the intMaximum array should hold the maximum value for each digit position. (Use a different JavaScript file for this). The application should allow the user to enter seven digits on the HTML form.

When the Verify button is clicked, the application should use the intMinimum and intMaximum arrays to verify that the numbers fall into acceptable ranges. Note: If the digit field fails the pattern match, display the corresponding validation message. (For example: Invalid input value. Digit 1: Must be in the range of 7 through 9.)

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

Discuss the Hawthorne experiments in detail

Answered: 1 week ago

Question

Explain the characteristics of a good system of control

Answered: 1 week ago

Question

State the importance of control

Answered: 1 week ago

Question

What are the functions of top management?

Answered: 1 week ago

Question

1. Explain why evaluation is important.

Answered: 1 week ago