Highlights
Introduction
The objective of this assignment is to extend the implementation of Assignment 1 using arrays and external files. Before you start
Carefully read the problem description below. Make sure that you have all the information necessary to start the program. Do not assume what is necessary. There is a discussion board forum: assignment 2. Post your questions there and check it regularly.
Problem Description
Your task in this assignment is to extend your vet clinic management program from Assignment 1, by adding the following functionality:
1. The user may input up to 4 doctors and 5 pets.
2. The user may edit the information of a pet. The user will input the name of a pet, an attribute to change, and a new attribute value.
If the pet does not exist, or the attribute is invalid, the program should output an error message. The user should be able to change any attribute of a pet except its name and doctor (so, “type”, “size”, “weight”, and “age”). The usual validity checks need to be made on the attribute value (such as whether a new weight is positive).
3. The user may read in doctors and pets from a file. The user will input the name of the file to read from. An example file VetManagement.txt is provided on Blackboard.
All existing doctors and pets should be deleted before reading from the file. And the file’s specified doctors and pets can be assumed to be valid.
4. The user may save doctors and pets to a file. The user will input the name of the file to write to. The output file should have the same format as that expected when reading from a file. The functionalities from Assignment 1 should remain, but must be adapted to use doctor and pet arrays.
They are listed again below.
1. The user may enter a new doctor into the vet clinic. The user will input the name and specialisation. If a doctor with the same name already exists, or the specialisation is invalid, or the array if full, the program should output an error message.
2. The user may enter a new pet into the vet clinic. The user will input the name, type, size, weight, and age. If a pet with the same name already exists, or an invalid value is given, or the array if full, the program should output an error message.
3. The user may delete a doctor from the vet clinic. The user will input the name of the doctor. If the doctor does not exist, the program should output an error message. Before deletion, all pets that are assigned to the specified doctor should have their 'doctor' instance variable updated to "No doctor assigned".
4. The user may delete a pet from the vet clinic. The user will input the name of the pet. If the pet does not exist, the program should output an error message.
5. The user may request a list of doctors in the vet clinic with all the information of each doctor. Normally, one line should be output for each doctor, with the form: Doctor <NAME>: <SPECIALISATION> specialist. If there are no doctors, the program should output the message "No doctors".
6. The user may request a list of pets in the vet clinic with all the information of each pet. Normally, one line should be output for each pet, with the form: Pet <NAME>: <SIZE> <TYPE> weighing <WEIGHT> kg at <AGE> years old (<DOCTOR>). If there are no pets, the program should output the message "No pets".
This SENG1110 - IT Assignment has been solved by our IT experts at My Uni Papers. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.