## Transcribed Text

Exercise 1 (2 pts.): Complete the below logic table for the following logic circuit:
A
B
O
OUTPUT
C
A
B
C
OUTPUT
Exercise 2 (2 pts.): Complete the below logic table for the following logic circuit:
OUTPUT
A
C
O
B
A
B
C
OUTPUT
Exercise 3 (1 pt.): Predict the output that results when the following Matlab program
executes:
clear
clc
a = 16;
b = mod (a/4,2) + 3;
C = mod (b,7) - mod (a,5)
d = a - b + C
Exercise 4 (1 pt.): Predict the output that results when the following Matlab program
executes:
clear
clc
X = mod (13, log10 (100) )
y
= mod (x, 2)
Z
= (x + y) ^ (x + y) * mod(3,5)
Exercise 5 (1 pt.): Predict the output that results when the following Matlab program
executes:
clear
clc
X = 3;
d = mod (0,x) ;
f = xd + mod (x, x^d)
;
g = 7*f-3^x; -
h = -2*g/mod - (88,10)
Exercise 6 (1 pt):
Predict the output from running the following Matlab program:
clear
clc
A = [1, 3, 5, 7, 9, 11];
B = [-3, - - .6, 9, 12, - -15, 0];
C = 2*A + B/3
D = C - 6 + (B - A)
EE = A + B - C + D
Exercise 7 (1 pt): Predict the output from running the following Matlab program:
clear
clc
A = [2, 10, 3, -4, 6, -1];
A = A - A;
B = A - 2*A;
C = A + 5;
A + B + C
Exercise 8 (1 pt):
Predict the output from running the following Matlab program:
clear
clc
A = [5, 1, 2, 3, 7, 6];
B = A.^2
C = [16, 64, 81, 49, 4, 9];
D = B - sqrt (C) + A;
E = D
Exercise 9 (1 pt): Predict the output from running the following Matlab program:
clear
clc
A = [-1, - -1, - -2, 0, 0, -2); -
B (6) = O ;
B (2) = - -2;
B (1) = 2;
C = A. . A 2 + 2*B;
C = C - A. . ^3
Exercise 10 (1 pt): The following Matlab program may or may not produce an error when run.
If running the program produces an error, circle the location in the program where the error
occurs and state why the error occurs. If running the program does not produce an error, then
predict the output from running the program.
clear
clc
A = [2, 4, , 6, / 8, 10]
i
B = 2*A + 1i
C (0) = B (1) - A (3)
C ( 1) = 2.0*B . (3) - A (2)
C (3) = A ( B (1) )
INTRODUCTION:
The impact velocity of an object falling freely under the influence of gravity, and also
experiencing air resistance (drag), is calculated as:
-2gh
Vimpact = Vterm
1.0 - exp
V2
term
where:
2mg
Vterm =
CpA
and:
Vterm = terminal velocity (m/s)
Vimpact = impact velocity (m/s)
m = mass of object (kg)
g = acceleration due to gravity (9.8 m/s²)
h = height above the surface of the Earth from which the object is dropped (m)
C = coefficient of drag (typically equal to 0.50 for a sphere) (unitless)
A = cross sectional area of falling body = rr2 for a sphere (m)
p = density of air at height h (kg/m³)
PROBLEM:
Write a Matlab program to calculate the impact velocities of a 25 kg. steel sphere with a diameter
of 10 centimeters that is dropped from heights of 500, 750, 1000 and 1500 meters. Assume a
constant air density of 1.0 kg/m³ for all heights. Report the calculated impact velocities to two
decimal places (truncate, do not round).
MATLAB PROGRAMMING EXERCISE
Exercise 12 (4 pts): THIS IS A MATLAB PROGRAMMING EXERCISE:
INTRODUCTION:
The speed (meters/sec) of sound in sea water, C (meters/sec), is a fundamental quantity
interest for underwater systems such as sonar. The UNESCO standard reference model by Chen
and Millero 1,2 is frequently used to model the speed of sound in sea water.
The first term of that equation is the contribution of pure water to the speed of sound in sea
water (the other terms model various other contributions due to salinity, etc.). If we consider
only the pure water contribution (i.e., the zero salinity limit) and neglect higher order pressure
contributions, then the speed of sound in sea water, C (meters/sec), can be written as follows:
c=Cw
where,
Cw=Coot Co1T + C02T² + C03T³ + Co4T'4 + C05T5 +
(C10 + C11T + C12T2 + C13T3 + C14T4)P
and,
PARAMETER
VALUE
Coo
1402.388
C01
5.03830
Co2
-5.81090E-2
C03
3.3432E-4
C04
-1.47797E- 6
C05
3.1419E-9
C10
0.153563
C11
6.8999E-4
C12
-8.1829E-
C13
1.3632E-7
C14
-6.1260E-10
with temperature T in degrees Celsius, and pressure P in bars.
PROBLEM:
Using the above equation for the speed of sound in sea water, C (meters/sec), calculate C for the
following conditions:
TEMPERATURE (T)
PRESSURE (P)
C (meters/sec)
15°C
1 bar
27°C
1 bar

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction
of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice.
Unethical use is strictly forbidden.