Do in C Program In the military, they have these military dogs that help them in their missions. To handle them very well, they assign a code to each of the dogs. This has only been partially implemented though and they would need your help to finish this. Instructions: 1. In the code editor, there are multiple printf messages where each printf prints a dog code's value. 2. Your task is to create an enum, DogCode, and set its values to the following: CODE_1 = 'j' CODE_2 = 'r' CODE_3= 'v' CODE_4= 'd' CODE_5 = 'l' CODE_6 = 'y' 3. DO NOT EDIT ANYTHING IN THE MAIN Output Dog Code #1 = f Dog Code #2 = a Dog Code #3 = z .
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images