Answered step by step
Verified Expert Solution
Link Copied!

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 2: 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 inputs(knowns), 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.
(1)x=x0+v0t+12at2
(2)v=v0+at
(3)v2=v02+2a(x-x0)
where Given 0(m/s),0(m/s) and a (m/s^2) as input from users, you are required to calculate the following:
a) The distance travelled at time of interest, t =3 seconds in (ft)?
b) The velocity after time of interest, t=3 seconds, in (ft/s)?
c) The distance to reach a velocity of interest v=10 m/s?
d) The time to reach a velocity of interest v=10 m/s?
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 3-5 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 (t,x) and (t,v) for t =0:0.1:10. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

What are the major types and subtypes of life insurance?

Answered: 1 week ago

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago