(C PROGRAMMING ONLY!) DO NOT EDIT ANYTHING IN THE MAIN 1. Dog Codes by CodeChum Admin In the military, they have these military dogs that help them in their missions. To handle them very well, they...



(C PROGRAMMING ONLY!)



DO NOT EDIT ANYTHING IN THE MAIN


1. Dog Codes
by CodeChum Admin


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:


In the code editor, there are multiple printf messages where each printf prints a dog code's value.
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'

DO NOT EDIT ANYTHING IN THE MAIN

Output


Dog Code #1 = f
Dog Code #2 = a
Dog Code #3 = z
.
.
.


6. CODE_6 = 'y'<br>main.c<br>+ c<br>3. DO NOT EDIT ANYTHING IN THE<br>MAIN<br>1 #include<stdio.h><br>2<br>3 int main(void) {<br>// NOTE: DO NOT EDIT THE MAIN()<br>printf(

Extracted text: 6. CODE_6 = 'y' main.c + c 3. DO NOT EDIT ANYTHING IN THE MAIN 1 #include 2 3 int main(void) { // NOTE: DO NOT EDIT THE MAIN() printf("Dog Code #1 = %c\n", CODE_1); printf("Dog Code #2 = %c\n", CODE_2); printf("Dog Code #3 = %c\n", CODE_3); printf("Dog Code #4 = %c\n", CODE_4); printf("Dog Code #5 = %c\n", CODE_5); printf("Dog Code #6 = %c\n", CODE_6); Output 6 7 Dog Code #1 = f 8 Dog Code #2 = a 9 Dog Code #3 = z 10 11 }.

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here