subject

Aveterinarian 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 a listing of all pets sorted by their outstanding bill balance. you have to write a program to produce a report of animals and their owners sorted by their outstanding bill balances from the data in the flat text file. below is a description of the information on the text file:

the first entry is the number of animals on the file (numeric)

the fields below repeat for each animal:

o owner name (string) o birth year (numeric) o bill balance (numeric) o species (string)

o special feature (numeric or string)

the animals serviced by the veterinarian are of two types: mammals and non-mammals. for a mammal the special feature field on the flat file is the number of legs of the animal (numeric). for a non-mammal the special feature field is the blood type, warm-blooded or cold-blooded (string).

program requirements and grading:

from the information provided, write a solution that includes the following:

a suitable inheritance hierarchy which represents the pets serviced by the veterinarian. it is up to you how to design the inheritance hierarchy. i suggest an animal class and appropriate subclasses.

for all classes include the following:

o instancevariables

o constructors

o access or and mutator methods

o suitable tostring() methods

write a class _program7 which utilizes the following:

o an array of animal objects

o a method which reads the input file provided and stores the objects in the array

of animals.

o the input file provided, program7.txt, to test your program.

o a method which sorts the array of animals in ascending order by the balance.

o a method that formats and prints the output report. there should be one a nimal per line and at most 40 animals per page,

o the main metho d will call all the other methods which will:

▪ read the text file and store the objects in the array

▪ sort the objects

▪ format and print the report

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 07:00, jared2461
Jean has kept the content of her website limited to what is important; she has also ensured that the text follows a particular style and color all throughout her website. which website features has jean kept in mind? jean has limited the content of her website to what is important; this ensures (clarity, simplicity, harmony and unity) of the content. she has also formatted the text in a particular style and color throughout her website, ensuring (balance, simplicity, consistency)
Answers: 2
image
Computers and Technology, 24.06.2019 09:30, nialphonsa
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
image
Computers and Technology, 24.06.2019 14:00, superstarsara5ouh83x
Fast answer i need for apex ! smartphones should be banned from the classroom in public schools so that students cannot cheat on test so easily? which is an example of a counter argument to the thesis above? a. the classroom is a place for learning not for making phone calls b. smartphones are useful learning tools in the modern classroom c. banning smartphones will not students pay attention to teachers any better d. banning smartphones would decreased incidents of theft
Answers: 2
image
Computers and Technology, 24.06.2019 17:30, mjmckay03
What is the main difference between cloud computing and saas? cloud computing is a platform, and saas is software. cloud computing is software, and saas is a platform. cloud computing is a service, and saas is software. cloud computing is a service, and saas is a platform.
Answers: 1
You know the right answer?
Aveterinarian services many pets and their owners. as new pets are added to the population of pets b...

Questions in other subjects: