Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

Show that Use the identity (.-T-H- -1 j-1 - . +b

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago