FirstName_LastName_PinTester Class The National Commerce Bank has hired you as a contract programmer. Your first assignment is to write a class that will be used by the bank's automated teller machines (ATMS) to validate a customer's personal identification number (PIN). Your class, which will be named FirstName_LastName_PinTester, will be incorporated into a larger program that asks the customer to input hìs or her PIN on the ATM's numerìc keypad. (PINS are multi-digit numbers. The program stores each digit in an element of an int array.) The program also retrieves a copy of the customer's actual PIN from a database, as an int array. If these arrays match, then the customer's identity is validated. FirstName_LastName_PinTester class fields Field Name Description This field should be an int array reference variable. It will be used to reference an array containing the PIN digits entered by the user. This field should be an int array reference variable. It will be used to reference an array containing the valid PIN digits retrieved from the database. userPIN validPIN FirstName_LastName_PinTester class methods Method Description The constructor is to accept references to two in t arrays as arguments. The array referenced by the first argument will contain the numbers entered by the customer. The array referenced by the second argument will contain the numbers retrieved from the bank's database. The constructor should create Constructor two arrays and reference them by the userPIN and validPIN fields. Then, it should copy the contents of the arrays passed as arguments to the userPIN and validPIN arrays. This boolean function should return true if the userPIN and validPIN arrays are identical. Otherwise, it should return false. isValid FirstName_LastName_PinTesterDemo Class This is the main/driver program that uses methods built in the FirstName_LastName_PinTester class. This program tests the FirstName_LastName_PinTester.isValid method by calling it several times with various arguments.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

In JAVA

FirstName_LastName_PinTester Class
The National Commerce Bank has hired you as a contract programmer. Your first assignment is to write a class that
will be used by the bank's automated teller machines (ATMS) to validate a customer's personal identification
number (PIN). Your class, which will be named FirstName_LastName_PinTester, will be incorporated into a
larger program that asks the customer to input hìs or her PIN on the ATM's numeric keypad. (PINS are multi-digit
numbers. The program stores each digit in an element of an int array.) The program also retrieves a copy of the
customer's actual PIN from a database, as an int array. If these arrays match, then the customer's identity is
validated.
FirstName_LastName_PinTester class fields
Field Name
Description
This field should be an int array reference variable. It will be used to reference
an array containing the PIN digits entered by the user.
This field should be an int array reference variable. It will be used to reference
an array containing the valid PIN digits retrieved from the database.
userPIN
validPIN
FirstName_LastName_PinTester class methods
Description
Method
Constructor
The constructor is to accept references to two in t arrays as arguments. The
array referenced by the first argument will contain the numbers entered by the
customer. The array referenced by the second argument will contain the
numbers retrieved from the bank's database. The constructor should create
two arrays and reference them by the userPIN and validPIN fields. Then, it
should copy the contents of the arrays passed as arguments to the userPIN
and validPIN arrays.
This boolean function should return true if the userPIN and validPIN arrays
are identical. Otherwise, it should return false.
is Valid
FirstName_LastName_PinTesterDemo Class
This is the main/driver program that uses methods built in the FirstName_LastName_PinTester class. This
program tests the FirstName_LastName_PinTester.isValid method by calling it several times with various
arguments.
Transcribed Image Text:FirstName_LastName_PinTester Class The National Commerce Bank has hired you as a contract programmer. Your first assignment is to write a class that will be used by the bank's automated teller machines (ATMS) to validate a customer's personal identification number (PIN). Your class, which will be named FirstName_LastName_PinTester, will be incorporated into a larger program that asks the customer to input hìs or her PIN on the ATM's numeric keypad. (PINS are multi-digit numbers. The program stores each digit in an element of an int array.) The program also retrieves a copy of the customer's actual PIN from a database, as an int array. If these arrays match, then the customer's identity is validated. FirstName_LastName_PinTester class fields Field Name Description This field should be an int array reference variable. It will be used to reference an array containing the PIN digits entered by the user. This field should be an int array reference variable. It will be used to reference an array containing the valid PIN digits retrieved from the database. userPIN validPIN FirstName_LastName_PinTester class methods Description Method Constructor The constructor is to accept references to two in t arrays as arguments. The array referenced by the first argument will contain the numbers entered by the customer. The array referenced by the second argument will contain the numbers retrieved from the bank's database. The constructor should create two arrays and reference them by the userPIN and validPIN fields. Then, it should copy the contents of the arrays passed as arguments to the userPIN and validPIN arrays. This boolean function should return true if the userPIN and validPIN arrays are identical. Otherwise, it should return false. is Valid FirstName_LastName_PinTesterDemo Class This is the main/driver program that uses methods built in the FirstName_LastName_PinTester class. This program tests the FirstName_LastName_PinTester.isValid method by calling it several times with various arguments.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY