Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use HTML and two JavaScript files. The National Commerce Bank has hired you to create Web application that verifies a customer personal identification number

Please use HTML and two JavaScript files.

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 the second 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_2

Step: 3

blur-text-image_3

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

Students also viewed these Databases questions

Question

the standard error

Answered: 1 week ago

Question

Discuss the six purposes of performance management. page 340

Answered: 1 week ago