Hi,
I am a beginner to C and have been given the following task to complete, I some vague ideas on how to go about doing it and really need help.
Write a program to keep a record of dogs at a vet. Each dog has the followinginformation: Name, Height, Age and Breed.
(iii) Write functions to do the following (all functions must have a void return type, thereforarguments should be pointers):
- Print out the name, height, age and breed of a dog when the dogstruct is provided as an argument.
- Change the age of a dog when a new age and the dog struct isprovided.
- Change the name of a dog when a new name and the dog struct isprovided.
- Change the breed of a dog when a new name and the dog struct isprovided.
(iv) Using the functions described in (iii), carry out the following tasks:- Change Dog3’s name to “Lando”.
- Change Dog2’s age to 10.
- Change Dog1’s breed to “Husky”.
- Print out the name, height, age and breed of a dog when someonetypes in the dog ID into the console window.