Question: I need a java oriented program that is for a pet store. The program must have a pet store class and a driver class where

I need a java oriented program that is for a pet store. The program must have a pet store class and a driver class where the main method is located and tests the program. The program must read data from a text file. The code must be able to read:

A last name

A first name

An address

A client ID

number of visits

Outstanding Balance

an array of Pets (aggregation)

Each Pet will have:

A name

An animal type

A weight

A date of last rabies shot (String)

A date of last visit (String)

Also, Write the constructor methods and toString ( ) method for each class. Write an equals( ) method for the client based on the client id Write a program that reads in data from a file to create an array of five clients. The driver will print each client's information (along with the pet name and type)

File Structure:

Last name, first name, address, ID, number of visits, balance, number of pets, pet name, animal type, weight, rabies date, last visit date.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!