Question: Create a program in C with the following directions Program 2 Scarlet Overkill had a device built that is capable of radiating EM field and

Create a program in C with the following directions Program 2 ScarletOverkill had a device built that is capable of radiating EM fieldand renders all electronics useless. In an attack by Scarlett and theCreate a program in C with the following directions

Program 2 Scarlet Overkill had a device built that is capable of radiating EM field and renders all electronics useless. In an attack by Scarlett and the army of Minions launched against the Western hemisphere, the device was mounted on a surface vessel "The Gru" moving through the Gulf of Mexico. OOS 009 side toodab The for-mentioned ship has to be destroyed, however, none of our military assets are working due to EM field interference. Therefore, only non-electronic assets would work. dodo woludos dyd be Run Silent, Run Deep 2010 0.01 Students from EEL4834 took possession of a WWII submarine named the Sword-Fish, which is diesel electric with no electronics on board and a small electrical computer, then set out to sink The Gru. The compass on the sub is worn out and only the East, North, West and South markers are distinguishable, and hence can only navigate in those four directions. bancalo slovo mozes, banon baboon taboo osasto Write a program as follows: Asks the user for the magnitude (distance), in meters, and the heading, in degrees of the navigation to way point one. Decompose the vector into x and y components and output the magnitude and direction (North, West, South, or East are the only reliable headings on the sub's compass) of the x component and then the y component. The x component is the magnitude multiplied by the cosine of the angle. The y component is the magnitude multiplied by the sine of the angle. Determine compass direction depending on weather the vector component is positive or negative. This step has to be repeated for another waypoint. Ask the user for the target bearing (0 to 25 degrees) and range (range in meters). Use the range to target for determining the torpedo spread according to the table below. Range 100 to 300 301 to 599 600 to 899 900 to 1200 Torpedo spread in degrees 3 5 8 10 Use the target bearing to determine the torpedo heading according to the table below. Owo non how low on yio toto or thin bn Mub Target bearing Torpedo heading will be the target bearing in degrees increased by the percentage below. O to 5 9990 Our Tel 5% >5 to 10 7% >10 to 20 9% >20 to 25 12% Output the firing solution as follows.moduz ar to ma buoto von vino non holding No input validation is required, assume user will enter values of correct type and range. Note: Create variables to store data as needed. Sample input/output: Please enter heading for waypoint 1 in degrees: 45 Please enter distance to waypoint 1 in meters: 6000 Move on heading due East Eor 4242.74 meters Move on heading due North for 4242.54 meters Please enter heading for waypoint 2 in degrees: 220 Please enter distance to waypoint 2 in meters: 4500 Move on heading due West For 3447.19 meters Move on heading due South for 2892.54 meters Please enter target bearing in degrees: 23 Please enter target range in meters: 500 Fire torpedoes on heading 25.76 degrees with a spread of 5 degrees

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!