Question: This is a Java program A large veterinarian services many pets and their owners. As new pets are added to the population of pets being

This is a Java program

A large veterinarian services many pets and their owners. As new pets are added to the population of pets being serviced, their information is entered into a flat text file. Each month the vet requests and updates listing of all pets sorted by their outstanding bill balance.. You are to write a program which in produce a report of animals and their owners sortedby their outstanding balances from the data in the flat text file.

Program requirements:

A class named Animal with the following details/subclasses

Name(owner) a character String

birth year numeric

bill balance numeric

species a character String

Special specie feature Mammal legs or nonMammal blood type

Constructor methods of all classes

Accessor and mutator methods of all classes

An array of Animal objects

Read a input text file from http://imc.kean.edu/CPS2231/program5.txt

with the ordering as above, one grouping for each animal will be provided. Also, the first item in the file is the number of animals. You should test your program with the input data.

One method for inputting each Animal object

One method for producing an output report - formatting is one Animal per line and at most 40 Animals per page

One method for sorting the array of Animals

One simple main method that calls for all input, calls a sort method, and calls for the report of the sorted list.

Record your planning time, coding time, testing time, and bug fixing time. Put these information in the comments at the top of the program.

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!