Question: I am working on a Java project that uses comparable interfaces. This project is being done via Netbeans and is a project. Write a program
I am working on a Java project that uses comparable interfaces.
This project is being done via Netbeans and is a project.
Write a program that will create an array of Pet objects from a file of veterinary records. Once the array is fully loaded, sort the array by pet age in ASCENDING order, and then find and display only the youngest and oldest pet.
Then, re-sort the array again in ASCENDING order by date of last vaccination (year + month + day) and print the message OwnerName + ", your pet named " + PetName + " was last vaccinated on " + year+"/" + month + "/" + day.
The program would use around ten entries of the following information:
PetName Species Age Year Month Day OwnerLastName OwnerFirstName OwnerEmail
Example: Spot canine 3 2021 03 10 Rodriguez Raul rrodrig@gmail.com
The output of the project when compiling or running would look like this:

This is a program that uses multiple .java files in a Netbeans project. I would greatly prefer if one did not have the program read a TEXT file, but rather have the program ask for input from the user, and then display the above as it's output.
If this could be done as soon as possible I would greatly appreciate it!
The youngest pet is: Misty. A feline owned by Hernandez, Yvette The oldest pet is: Shiloh. A canine owned by Smith, John Morris Green, your pet named Pitipua was last vaccinated 2017/9/15 Jorge Gonzalez, your pet named Cozy was last vaccinated 2018/12/17 Garfield Morris, your pet named Oreo was last vaccinated 2019/6/5 Manuel Garcia, your pet named Misty was last vaccinated 2020/2/14 Jorge Rodriguez, your pet named Rambo was last vaccinated 2020/4/25 Yvette Hernandez, your pet named Misty was last vaccinated 2020/10/3 Michelle Joseph, your pet named Lady was last vaccinated 2021/1/8 Maria Charters, your pet named Rover was last vaccinated 2021/1/17 Raul Rodriguez, your pet named Spot was last vaccinated 2021/3/10 John Smith, your pet named Shiloh was last vaccinated 2021/7/3 BUILD SUCCESSFUL (total time: 0 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
