Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help to prove a full current ly java code which can run in eclipse (by type, not in photo) following the Requirement blew, thank

Please help to prove a full current ly java code which can run in eclipse(by type, not in photo) following the Requirement blew, thank you so much.

Requirement:

"

-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.

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

From Herds To Insights Harnessing Data Analytics For Sustainable Livestock Farming

Authors: Prof Suresh Neethirajan

1st Edition

B0CFD6K6KK, 979-8857075487

Students also viewed these Databases questions

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago

Question

understand the key issues concerning international assignments

Answered: 1 week ago