Question
Design and implement a Java program to create a system that will keep track of pets treated and boarded in an animal hospital. The program
Design and implement a Java program to create a system that will keep track of pets treated and boarded in an animal hospital. The program will maintain a current list of owner and pet records within a given veterinary practice. Owner data for the program includes an owners first and last name, an ID number, an e-mail address (valid emails contain an @ and .), a telephone number and an array of pets owned by the owner.
The array of pets should contain the following: type of pet (dog, cat, bird, lizard, etc), name of pet, reason for visit (illness, checkup, shots, boarding, etc) (the maximum number of pets an individual can own should be five). Error checking of all data is required. The program should allow entry of owner information via the keyboard with the maximum number of owners being 30, but the list can contain less.
Once the data is entered the program should then allow the user to retrieve the entire list of owners along with their pets information or an individual owners information via their ID number. This assignment should use classes and methods.
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