Specification
The program will keep track of up to 2 doctors, and up to 4 pets.
When run, the program will display a menu of actions to the user, including one that exits the program. Until the user chooses to exit, the menu is displayed again after each action is completed. The program must have the following functionalities:
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 doctor limit has been reached, 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 pet limit has been reached, 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
Get Free Quote!
393 Experts Online