I've just been to a Dog show and the dogs in there are really talented! One Dog was able to jump over a very high bar and one was able to perform a CPR on a human! Now, I'm inspired to train my Dog too so people will also say that mine is talented! Could you please help me with this?
( C PROGRAMMING ONLY)
5. Talented Dogs
by CodeChum Admin
I've just been to a Dog show and the dogs in there are really talented! One Dog was able to jump over a very high bar and one was able to perform a CPR on a human!
Now, I'm inspired to train my Dog too so people will also say that mine is talented! Could you please help me with this?
Instructions:
In the code editor, you are provided with the enum, DogTalent. Then in the main(), the user is asked for an option which represents the talent to be trained. After that, the option selected is checked and the appropriate talent message is printed.
Your task is to fill in the blanks found in lines 20 - 24, with the correct enum values of the DogTalent.
Input
1. Talent selected
Output
Which·talent·do·you·want·to·choose?
d·-·Dance
j·-·Juggle
p·-·Play·Dead
Enter·option:·d
The·dog·now·knows·how·to·dance!
Step by step
Solved in 2 steps