CES 513 Lab 4 Problem - For Merge
CES 513 Lab 4 Problem - For Merge
CES 513 Lab 4 Problem - For Merge
LAB 4
PROBLEM 1
As a concrete production quality engineer, you are required to analyse the of compression strength,
fck, of 50 concrete samples that was innovated by your R&D company department. From the briefing
of your company R &D department officer, the company will not allow the compression strength, fck,
of each samples to be more or equal to 50 MPa, due to the company budget limitation.
You and your team have casted 50 samples of concrete cubes and the results of the compression
strength at 28 days are listed in Table 1 below;
Use IF…ELSE…END statement to exclude the value of compression strength results that is not allowed
by your R&D department officer in the average and standard deviation calculation.
PROBLEM 2
The rectangular reinforced concrete beams section as shown in Table 2 are required to design to carry
the factored bending moment.
Using the Eurocode 2, learn on how to design the bending reinforcement of a rectangular beam.
a) To design the tensile reinforcement area for the single reinforced type
b) To design the tensile and compression reinforcement area for the doubly reinforcement type
Table 2: The specification of beam dimension, fck, rebar diameter and the loads
Section Factored Bending Moment (kNm) fck (MPa) Tensile and compression rebar Cover
diameter (mm)
(mm)
PROBLEM 3
Write a MATLAB script that calculates the cost of shipping a package according to the following price
schedule;
Type of
service Weight (kg)
0 - 0.5 > 0.5 -5 > 5 kg
a) Ground 4.9 kg
b) Express 5.2 kg
c) Overnight 0.4 kg + Ground 10 kg + Express 2 kg
PROBLEM 4
Write a script to determine the area of triangle given its vertices coordinates. Create a function to
store each of the coordinate and another function to compute the area of the triangle.
Then using IF….ELSE….END statement, categories the angle between vector AB and AC according to
given formula and Table 4;
𝐴𝐵. 𝐴𝐶
𝜃 = cos−1 ( )
|𝐴𝐵|. |𝐴𝐶|
A two-dimensional state of stress at a point in a loaded material in the direction by x-y coordinate
system is defined by three components of stress; 𝜎𝑥𝑥 , 𝜎𝑦𝑦 and 𝜏𝑥𝑦 as shown in Figure 5a.
The stresses at a point in the direction of x’-y’ coordinate system (Figure 5b) are calculated based on
the following equations;
a) 𝜎𝑥𝑥 = 160 MPa, 𝜎𝑦𝑦 = −40 MPa, 𝜏𝑥𝑦 = 60 MPa and 𝜃 = 200
b) 𝜎𝑥𝑥 = −18 MPa, 𝜎𝑦𝑦 = 10 MPa, 𝜏𝑥𝑦 = −8 MPa and 𝜃 = 650
For the computation of the transformed stresses, create separate MATLAB user-defined functions to
compute each stresses. Using IF…ELSE…ENDIF statement to categories the state of each the
transformed stresses (i.e. compression if the magnitude is negative and vice versa)
PROBLEM 6
The general ultimate bearing capacity of a soil under strip footing , qu can be computed by the
Terzaghi’s equation as follows;
Based on the types of the foundation, all Terzhagi’s constant can be described by following equations;
𝑁𝑐 = (N𝑞 − 1)cot(𝜑)
𝜗
𝑁𝑞 = 𝑒 𝜋 tan(𝜗) 𝑡𝑎𝑛2 (45 + )
2
𝑁𝛾 = (N𝑞 − 1)tan(1.4𝜗)
Compute the Terzaghi constants using separate MATLAB function, and then compute the ultimate
bearing capacity of the soil. Use IF…ELSE…END statement to compute the ultimate bearing capacity if
the footing types is as follows;
The data of the soil and the foundation specification are given as follows;
a) 𝜗 = 300 , B = 2 m, 𝛾 = 18.5 kNm-3, c = 2, H = 2m, Square footing
b) 𝜗 = 300 , B = 2 m, 𝛾 = 18.5 kNm-3, c = 2, H = 2m, Circular Footing
PROBLEM 7
A simply supported beam AB of span 8 meter is under a uniformly distributed load of 20 kN/m as
shown in Figure 7 below.
Figure 7
Using the Macaulay Method, (considering taking x from the left support A), the bending moment
equation and the displacement of the beam AB can be found by using the following equations
20 20
[𝑥 − 2]2 + [𝑥 − 6]2
𝑀(𝑥) = 40𝑥 −
2 2
1 40 3 20 20
𝑦= ( 𝑥 − [𝑥 − 2]4 + [𝑥 − 6]4 − 293.33𝑥)
𝐸𝐼 6 24 24
where the notation [𝑥 − 𝑎]2 is only exist and not equals to zero if x-a > 0, however if x-a <0, this terms
will be vanished.
By using MATLAB function to compute bending moment and deflection on the beam, and combine
with the IF…ELSE…END statement, compute the bending moment and the deflection, y, of the beam
at location A, C, mid-point of CD and B of the beam. The beam cross section are in millimetres unit.
Consider the Young Modulus as 200 GPa.
PROBLEM 8
A GROUND SURFACE
By creating separate MATLAB function on computing the total vertical stress of the soils and the pore
water pressure stresses, compute the effective vertical stresses AT point A, B,C and D using the
following formula at ,
Effective vertical stresses = Total vertical stress of soil – pore water pressure stresses
Use IF…ELSE..END to compute the pore water pressure at each layer of soil.
PROBLEM 9
Suppose that Lembaga Hasil Dalam Negeri offers a tiered rate of tax to the amount of yearly income
of an engineering company as follows;
Compute the amount of income tax for of RM 25,000 yearly income. Create function to compute the
percentage of tax and use IF..ELSE..END to help your computation.
PROBLEM 10
A set of data of Force and displacement has been collected in an experiment. You are required to input
both data in MATLAB memory and create two MATLAB functions to compute the constant ‘a’ and ‘b’
as follows;
𝑏 = 𝐹̅ − 𝑎∆̅
where
The data for the each of the Force, Fi, and the displacement, ∆𝑖 are listed in Table 10 as follows;
Table 10 : Data for force and the displacement
Force Displacement
(kN) (mm)
0 0
2 4
6 8.2
8.2 12.5
10.2 15.8
12 -2.5
14.2 23.7
16.5 -4.8
18 32
20 36
22 40
22 44
24 48
24 52
26 -5
26 -1
26 3
28 7
28 11
30 15
30 19
31 23
33 27
Use IF…ELSE..END to discard the NEGATIVE values of displacement when the user input the data
before compute the constant a and b.
PROBLEM 11
The area under the graph of f(x) = 0.2 +25x -200x2 +675x3 -900x4 +400x5 from x =a until x =b can be
computed based on the following formula
𝑏
∫ 0.2 + 25x − 200x 2 + 675x 3 − 900x 4 + 400x 5 𝑑𝑥
𝑎
Use function to compute the approximate integral values and IF…ELSE…END to control the number of
segment for computation for ;
a) a = 0, b =0.8, n = 6
b) a = 1 , b = 3, n = 9
PROBLEM 12
By using the stiffness matrix method that you have learnt before, create a function that able to
compute and store the stiffness matrix for each member of the following problem. Create another
function that compute the global stiffness matrix and the global force vector.
Using the IF….ELSE…..END, delete the corresponding rows and columns of the degrees zero of freedom
of the global stiffness matrix of the problem, and solve for the beam’s displacement when
a) T = 12 kN , L = 5m and K = 1 m
b) T= -15 kN. L = 2.5m and K = 3 m
T kN
EI = 120000 kNm2
Lm Km
PROBLEM 13
A section of solid in 2-dimensional is shown in Figure 13 with certain dimensions in millimetre units.
b
FLANGE a
NEUTRAL AXIS
x
c x
d e g f
g
Figure 13: Section
Using MATLAB function, create two function that compute the centroid of the section and moment of
inertia about x-x axis. Use IF..ELSE..END to inform the users that the neutral axis depth is below or
inside the flange of the section.
Given:
Case 1: a = 350, b = 752 , c = 800, d = 200, e= 400, f = 52, g = 50
Case 2: a = 50, b = 450, c= 300, d = 150, e= 100, f= 160, g = 20