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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started