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 . .

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

(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'
main.c
+ c
3. DO NOT EDIT ANYTHING IN THE
MAIN
1 #include<stdio.h>
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 }.
Transcribed Image Text:6. CODE_6 = 'y' main.c + c 3. DO NOT EDIT ANYTHING IN THE MAIN 1 #include<stdio.h> 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 }.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY