Fill in the answer sheet that is in
red
Problem 1
You are working on part of the thrust-control software for
commercial aircraft’s autopilot mode. You will write a code for a user- defined
function that accepts two inputs and returns one output. Your project manager
has provided a flow chart
Two shaded rectangles( R1 and R2) in the flow chart do not have instruction.Run
exam3booklet(0031030505,1) to get the instructions that go in R1 and R2.
1-1: Enter your function call
exam3booklet(0031030505,1)
Answer:
1-2: Copy and paste all instruction
text from the matlab command window to this box:
Answer:
1-3: Enter the
function code
Answer:
Problem 2 there is a flow chart. There are missing
information. Run exam3booklet(0031030505,2) to get the instructions that go
into each shape. Use the info as you code the flowchart and then run the code
to your final x,y,z. Fill the answer.
Q2-1 Enter your function call
exam3booklet(0031030505,2)
Answer:
2-2: Copy and paste all instruction
text from the matlab command window to this box:
Answer:
2-3 Copy and paste your matlab code
for this flowchart
Answer:
2-4 final value of x,y,z:
Answer:
Problem 3
Write a
nested looping structure that will create matrix named mat1 that contains
copied elements from a larger matrix. The larger matrix is 20x20 matrix that is
contained within the provided p-code exam3_matrixElems.p.
Get Free Quote!
304 Experts Online