INSTRUCTIONS User inputs Create a MATLAB program that will analyze projectile motion. The user inputs are the following: The system of unit of measurement that will be used in the inputs and by the program; If the user input is 'MKS', then the units will be in meters and seconds. If the user input is 'FPS', then the units will be in feet and seconds. The magnitude of the initial velocity v at which the object is thrown; The angle of firing in degrees 0; The height h above the ground from which the object is thrown; The x-component a, of the acceleration including the direction; The y-component will no longer be a user input as it is already the acceleration due to gravity i.e., g = 9.81 m/s² or g = 32.174 ft/s².

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 27PE
icon
Related questions
Question
INSTRUCTIONS
User inputs
Create a MATLAB program that will analyze projectile motion. The user inputs are the following:
The system of unit of measurement that will be used in the inputs and by the program;
If the user input is 'MKS', then the units will be in meters and seconds.
If the user input is ‘FPS', then the units will be in feet and seconds.
●
●
O
O
The magnitude of the initial velocity v at which the object is thrown;
The angle of firing in degrees 0;
The height h above the ground from which the object is thrown;
The x-component a of the acceleration including the direction;
O The y-component will no longer be a user input as it is already the acceleration
due to gravity i.e., g = 9.81 m/s² or g = 32.174 ft/s².
Outputs
From the given user inputs, the following should be displayed by the program;
The actual trajectory or the path traveled by the object;
Put title and axis labels for this display.
Use line width 3.
Animation of the motion of the object
O
Use red broken lines with line width 3 to show the development of the path of the
projectile.
Take at least 10 random instants or frames that will show the development of the
path. You may increase the number of frames depending on their liking.
Note that the final frame should be similar with the plot of the first bullet (the
actual trajectory of the path)
O
Transcribed Image Text:INSTRUCTIONS User inputs Create a MATLAB program that will analyze projectile motion. The user inputs are the following: The system of unit of measurement that will be used in the inputs and by the program; If the user input is 'MKS', then the units will be in meters and seconds. If the user input is ‘FPS', then the units will be in feet and seconds. ● ● O O The magnitude of the initial velocity v at which the object is thrown; The angle of firing in degrees 0; The height h above the ground from which the object is thrown; The x-component a of the acceleration including the direction; O The y-component will no longer be a user input as it is already the acceleration due to gravity i.e., g = 9.81 m/s² or g = 32.174 ft/s². Outputs From the given user inputs, the following should be displayed by the program; The actual trajectory or the path traveled by the object; Put title and axis labels for this display. Use line width 3. Animation of the motion of the object O Use red broken lines with line width 3 to show the development of the path of the projectile. Take at least 10 random instants or frames that will show the development of the path. You may increase the number of frames depending on their liking. Note that the final frame should be similar with the plot of the first bullet (the actual trajectory of the path) O
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr