Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

-Create an abstract class called Client.java to allow for three abstract methods the bank needs to process. Name your methods readData(), processData() and printData(). No

-Create an abstract class called Client.java to allow for three abstract methods the bank needs to process. Name your methods readData(), processData() and printData(). No arguments are needed for your methods. -Create a BankRecords.java file which will utilize the Client asbtract methods and generate ultimately the client records from the csv file. The client file has the following header information id {string} age {numeric} sex {FEMALE,MALE} region {INNER_CITY,TOWN,RURAL,SUBURBAN} income {numeric} married {NO,YES} children {0,1,2,3} car {NO,YES} save_act {NO,YES} current_act {NO,YES} mortgage {NO,YES} pep {YES,NO} Create instance fields for each header item above in your class. Include getter and setters for each instance field. -Include code definitions for each method declared in your Client class as follows Your readData() method should read in all the record data from the csv file in your path into an ArrayList. Your processData() method should take all the record data from your ArrayList and add the data into each of your instance fields via your setters. Use an array of objects to store record data for each instance field. Your printData() method should print the first 25 records for various fields to the console via your getters. Print records for the following fields: ID, AGE, SEX, REGION, INCOME, and MORTGAGE. -Include headings in your print detail. Printing record detail should be in a neat columnar style format. Make sure to include a try catch block when reading any file! Include proper exception handling. Include your projects entire source code/csv file into a zip file, a jar file of your program, as well as your console output into a doc file for credit

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

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

=+3. What are market presence strategies, and which can you name?

Answered: 1 week ago