Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The horizontal distance D and vertical height H of a projectile (e.g.. a mortar

ID: 3623141 • Letter: T

Question

The horizontal distance D and vertical height H of a projectile (e.g.. a mortar round) fired with initial velocity V0 at an inclination angle Ware given by: H(t) = V0 sin (theta)t - 1/2 gt2 D(t) = V0cos(theta)t where g is the gravitational acceleration. 9.8 m/s2 Suppose a target is located 120 m away from a tank, but behind a 20 m tall wall that is at a distance of 110 m from the tank. Using nested for-loops and logical statements, determine the minimum theta for a hit (when the mortar round lands within 0.5 m of the target and clears the wall). Allow time to vary from 0 to 100 sec by increments of 0.01. Allow both theta and V0 to vary from l5 to 75 by increments of 0.5 in units of degrees and m/s. respectively. Iterate through the values of theta and V0 using nested for-loops. Increment theta using the inner loop and V0 using the outer loop. Keep track of all of the trajectories that clear the wall and hit the target, along with their corresponding theta and V0, by saving them to separate matrices within your inner for-loop statement. After the nested for-loops. include code that determines the trajectory with the minimum theta from your matrix of saved trajectories. Plot this trajectory and overlay a vertical line that represents the 20 m tall wall. Annotate the graph with the minimum theta and its corresponding V0, using the text command. Label the graph appropriately.

Explanation / Answer

..........................................................................................,-~~'''''''~~--,,_ ....................................................................................,-~''-,:::::::::::::::::::''-, ...............................................................................,~''::::::::',::::::::::::::::::::|', ...............................................................................|::::::,-~'''___''''~~--~''':} ...............................................................................'|:::::|: : : : : : : : : : : : : : ...............................................................................|:::::|: : :-~~---: : : -----: | ..............................................................................(_''~-': : : :::o: : : :o: : : ...............................................................................'''~-,|: : : : : : ~---': : : :,'--NEVER GONNA GIVE YOU UP ...................................................................................|,: : : : : :-~~--: : ::/ --NEVER GONNA LET YOU DOWN! ..............................................................................,-''':: :'~,,_: : : : : _,-' ........................................................................__,-';;;;;:''-,: : : :'~---~''/| ...............................................................__,-~'';;;;;;/;;;;;;;: :: : :____/: :',__ ...................................................,-~~~''''_;;;;;;;;;;;;;;;;;;;;;;;;;',. .''-,:|:::::::|. . |;;;;''-,__ ................................................../;;;;;;;;;;;;;;;;;;;;;;;;;;;;,;;;;;;;;;. . .''|::::::::|. .,';;;;;;;;;;''-, ................................................,';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;|;;;;;;;;;;;. . .:::::,'. ./|;;;;;;;;;;;;;| .............................................,-'';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;',: : |__|. . .|;;;;;;;;;,';;| ...........................................,-";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;',;;;;;;;;;;;. . |:::|. . .'',;;;;;;;;|;;/ ........................................../;;;;;;;;;;;;;;;;;;;;;;;;;;|;;;;;;;;;;;;;;;;;;;;;;;;;. . |::|. . . |;;;;;;;;|/ ......................................../;;,-';;;;;;;;;;;;;;;;;;;;;;,';;;;;;;;;;;;;;;;;,;;;;;;;;;; |..|. . . .|;;;;;;;;| ......................................./;;;;;;;;;;;;;;;;;;;;;;;;;;,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;'', |.;|. . . . ;;;;;;;| ....................................,~'';;;;;;;;;;;;;;;;;;;;;,-'';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;|. |.;|. . . . .|;;;;;;;| ................................,~'';;;;;;;;;;;;;;;;;;;;;;,-';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;',;;;;;;| |:|. . . . |;;;;;;;| ...............................,';;;;;;;;;;;;;;;;;;;;;;;;/;;;,-';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,;;;;;| |:|. . . .'|;;',;;;;;| ..............................|;,-';;;;;;;;;;;;;;;;;;;,-';;;,-';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,;;;;| |:|. . .,';;;;;',;;;;|_ ............................../;;;;;;;;;;;;;;;;;,-'_;;;;;;,';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;|.|:|. . .|;;;;;;;|;;;;|''''~-, ............................/;;;;;;;;;;;;;;;;;;/_'',;;;,';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,;;| |:|. . ./;;;;;;;;|;;;|;;;;;;|-,,__ ........................../;;;;;;;;;;;;;;;;;,-'...|;;,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;| |:|._,-';;;;;;;;;|;;;;|;;;;;;;;;;;'''-,_ ......................../;;;;;;;;;;;;;;;;,-'....,';;,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;|.|:|::::'''~--~'''||;;;;;|;;;;;;;;;;,-~''''~--, ......................,';;;;;;;;;;;;;;;;,'....../;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;|.|:|::::::::::::::|;;;;;',;;;;;;;;;''-,: : : : : :'''~-,:'''~~--, ...................../;;;;;;;;;;;;;;;,-'......,';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;|:|:|::::::::::::::',;;;;;;|_''''~--,,-~---,,___,-~~'''__''~- ..................,-';;;;;;;;;;;;;;;,'......../;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;|:|:|:::::::::::::::|;;;;;;|.....................''-,_''-,''-,''~ ................../;;;;;;;;;;;;;;;;/.......,-';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;|:|:|:::::::::::::::|;;;;;|.............................._''