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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 24.06.2019 12:50
When is it most apprpriate for a development team to change the definition of done
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
In excel, what happens to the cell contents when you click and drag a cell into multiple cells?
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
Suppose a router has built up the routing table shown in the table. subnet number 128.96.39.00 28.96.39.128 128.96.40.00 192.4.153.0 default) subnet mask 255.255.255.128 255.255.255.128 255.255.255.128 255.255.255.192 nexthop interface 0 interface 1 r2 r3 r4. the router can deliver packets directly over interfaces 0 and 1, or it can forward packets to routers r2, r3, or r4. describe what the router does with a packet addressed to each of the following destinations: (a) 128.96.39.10 (b) 128.96.40.12 (c) 128.96.40.151 (d) 192.4.153.17 (e) 192.4.153.90
Answers: 3
You know the right answer?
Aveterinarian services many pets and their owners. as new pets are added to the population of pets b...
Questions
question
Mathematics, 08.12.2021 22:30
question
Mathematics, 08.12.2021 22:30