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


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

Extracted 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

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here