A large veterinarian services many pets and their owners. As new pets are added to the population
Question:
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 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 balances from the data in the flat text file, as follows.
A class named VetShop with the following details
– clients: an array of Animal objects
– A simple main method that calls the following input, sort, and report methods.
– An input method to fill the clients array with Animal objects created with the information in the input text file attached. The first line has the number of clients, followed by the data of one animal in each line.
– A method to sort the array of Animals by bill balance.
– A method to produce an output report with one Animal per line.
Using Microsoft Excel and Access 2016 for Accounting
ISBN: 978-1337109048
5th edition
Authors: Glenn Owen