(C PROGRAMMING ONLY!) 4. It's My Dog by CodeChum Admin My dog and my friend's look the almost exactly the same; the breed, the color, the size, they're all the same. The only way to differentiate them is through their collars where their names are engraved. Instructions: In the code editor, you are provided with 2 struct objects: Dog and Collar. In the main(), a Dog and a Collar object is already created for you and in line 26, a call to the function displayDog() is made. This displayDog() function has already been partially implemented. Your only task is to fill in the blank found on line 33. The displayDog() function should print the name of the Dog which has been set on its Collar. Input 1. Name of the Dog Output Enter the name of the dog: Muffin My dog's name is Muffin
(C PROGRAMMING ONLY!)
4. It's My Dog
by CodeChum Admin
My dog and my friend's look the almost exactly the same; the breed, the color, the size, they're all the same.
The only way to differentiate them is through their collars where their names are engraved.
Instructions:
In the code editor, you are provided with 2 struct objects: Dog and Collar. In the main(), a Dog and a Collar object is already created for you and in line 26, a call to the function displayDog() is made.
This displayDog() function has already been partially implemented. Your only task is to fill in the blank found on line 33. The displayDog() function should print the name of the Dog which has been set on its Collar.
Input
1. Name of the Dog
Output
Enter the name of the dog: Muffin
My dog's name is Muffin
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images