Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create the following classes, data, and methods for the following specifications: BankAcctApp.java - This will be the primary file where all functionality takes place. Include

Create the following classes, data, and methods for the following specifications: BankAcctApp.java - This will be the primary file where all functionality takes place. Include a main() method. Customer.java - This class will define the data and methods used by the class. Data includes: Customer ID - string max 5, can't be blank Customer SSN - string must be 9 characters, can't be blank, validate it's numeric Customer Last Name - string max 20, can't be blank Customer First Name - string max 15, can't be blank Customer Street - string max 20, can't be blank Customer City - string max 20, can't be blank Customer State - string must be 2 characters, can't be blank Customer Zip - must be 5 characters, can't be blank, validate it's numeric characters Customer Phone - string must be 10 characters, no punctuation, validate numeric Add public setter and getter methods for all instance variables. Include a public toString() method to return all data for a customer. DataEntry.java - This file will control all data entry in the application. For Phase 1, it only needs to perform very basic data validation based on data types, but as the project progresses it will be modified to use exception handling code. The initial static methods will be: Entry of string data with no limit Entry of string data but with a length limit Entry of string data that must only have numeric values. Entry of integer data Entry of integer data with a range limit Entry of decimal data Entry of decimal data with a range limit Entry of a date STEP 4 Test and execute your program by adding 2 customers. Then output the information for the customers and format it with appropriate headings.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Heres an implementation of the classes and methods you described in Java BankAcctAppjava java public class BankAcctApp public static void mainString args Customer customer1 DataEntryenterCustomerData ... 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

Organizational Behavior Integrating Individuals Groups And Organizations

Authors: Joseph E. Champoux

4th Edition

0415804647, 9780415804646

More Books

Students also viewed these Algorithms questions