Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab 2 : Algorithms Overview: As we have learned in class, for each problem, we can come up with a solution algorithm. In any algorithm,
Lab : Algorithms
Overview:
As we have learned in class, for each problem, we can come up with a solution algorithm. In any algorithm, we
should determine the problem statement, the inputsknowns the outputs unknowns and the algorithm
assumptions. Developing correct and efficient algorithms is very important in engineering problems. This lab
will allow students to practice algorithm development and writing MATLAB live scripts.
Learning Objectives:
Practice algorithm development.
Demonstrate proficiency coding algorithms in MATLAB.
Problem Description
The problem under investigation is motion in a straight line under constant acceleration kinematics problem.
The motion equations are given as follows.
where Given msms and a ms as input from users, you are required to calculate the following:
a The distance travelled at time of interest, t seconds in ft
b The velocity after time of interest, t seconds, in fts
c The distance to reach a velocity of interest v ms
d The time to reach a velocity of interest v ms
Hint: your formulas need to be adjusted for c and d
Lab Report
You will submit a report of your work via Blackboard in a single usable live script MATLAB file. Make sure to
include and label the following information.
I. Abstract In sentences summarize what your code is doing, and how someone unfamiliar with
MATLAB could use it
II Algorithm Write out the steps performed by your code. You may use a list of steps in the algorithm
or import a graphical algorithm.
III. Code Separate your code into sections defined by each step in the Laboratory Procedure
a Gathering user inputs
b Performing calculation
c Making necessary conversions
d Outputting the results
Questions answer the following questions after the end of your code.
a What is the formula needed to calculate the distance from velocity?
b What is the formula needed to calculate the time from velocity?
c What are the unit conversions used in the lab.
V Bonus Optional Modify your code to plot the relation between tx and tv for t :: A
sample figure is shown below
VI Student Questions Optional This is a space for you to list any lingering questions you may have about the lab
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started