A company of soldiers are beyond enemy lines waiting to launch a surprise attack. However, they require orders from their commander, who will be sending a code (an integer) via a cell phone. It is known that the enemy can intercept all communications, which is why the commander and his troops have decided upon the details of the encoded secret code before setting off for the mission. The discussion is shown in the table below. For example, if bits 14, 11 and 7 of the secret code are 0, 0 and 0, it implies that the the company must hold their position. Assuming a random code between 39999 and 3999999 is received by the soldiers, determine what action will be taken. You are not allowed to convert the number into a binary in your code. Use bitwise operators. Bit 14 | Bit 11 | Bit 7 Action Hold Position 1 Move and Take Cover Abort Operation Load Weapons 1 1 1 1 Attack at dusk 1 1 Attack now 1 Create a distraction Wake up. This is a dream 1 1 1 Table 1: Discussion prior to deployment

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

in c language please and thank you also include a picture of the program and the output too thank you!! 

Note: please do not copy from Chegg or other!! Thank you!!

 

A company of soldiers are beyond enemy lines waiting to launch a surprise attack. However,
they require orders from their commander, who will be sending a code (an integer) via a
cell phone. It is known that the enemy can intercept all communications, which is why the
commander and his troops have decided upon the details of the encoded secret code before
setting off for the mission. The discussion is shown in the table below. For example, if
bits 14, 11 and 7 of the secret code are 0, 0 and 0, it implies that the the company must
hold their position. Assuming a random code between 39999 and 3999999 is received by the
soldiers, determine what action will be taken. You are not allowed to convert the number
into a binary in your code. Use bitwise operators.
Bit 14
Bit 11
Bit 7
Action
Hold Position
1
Move and Take Cover
Abort Operation
Load Weapons
1
1
1
1
Attack at dusk
1
1
Attack now
1
1
Create a distraction
1
1
1
Wake up. This is a dream
Table 1: Discussion prior to deployment
Transcribed Image Text:A company of soldiers are beyond enemy lines waiting to launch a surprise attack. However, they require orders from their commander, who will be sending a code (an integer) via a cell phone. It is known that the enemy can intercept all communications, which is why the commander and his troops have decided upon the details of the encoded secret code before setting off for the mission. The discussion is shown in the table below. For example, if bits 14, 11 and 7 of the secret code are 0, 0 and 0, it implies that the the company must hold their position. Assuming a random code between 39999 and 3999999 is received by the soldiers, determine what action will be taken. You are not allowed to convert the number into a binary in your code. Use bitwise operators. Bit 14 Bit 11 Bit 7 Action Hold Position 1 Move and Take Cover Abort Operation Load Weapons 1 1 1 1 Attack at dusk 1 1 Attack now 1 1 Create a distraction 1 1 1 Wake up. This is a dream Table 1: Discussion prior to deployment
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 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