Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

More Books

Students also viewed these Databases questions

Question

3. What might you have done differently

Answered: 1 week ago

Question

4. Did you rethink your decision?

Answered: 1 week ago