Professional Documents
Culture Documents
Lab work # 4
Grading Rubrics
Exemplary Proficient Developing Beginning Novice
Statement Score
(5) (4) (3) (2) (1)
1 Output/ Results Able to produce Able to Able to get Hardly able to Not able to
(40%) a high quality produce a some results produce the get any
code with code with from the code without results
desired output desired program with instructor’s from the
results. output major help program
having mistakes(s). without
minor instructors
mistake(s) help in
every step
2 Coding Style/ Able to write Able to write Used some of Used marginal None of
formatting (20%): program in program in the mentioned formatting the
Ability to use excellent good coding formatting techniques in formatting
coding style style missing techniques in the program. techniques
necessary commands
fulfilling all the 1-2 the program. were used
at the start of the
mentioned mentioned in the
program, provide criterion. criterion. program.
appropriate
description of
function, write
comments and use
proper indentation.
3 Coding Able to write Able to write Able to write Struggling to The student
Performance efficient code fairly good correct code in identify and is not able
with code with hardcoding correct the to identify
(20%): appropriate some logical without any errors in the and correct
Ability to write error handlers. errors or error handler. codes without the errors
appropriate error missing error help. in his code.
handlers and efficient handlers.
code without
hardcoding and
errors.
4 Lab Management Able to finish Able to Able to finish Struggling to Unable to
(20%): coding finish most most of the finish the code finish the
Time management complete in all of the coding coding within without code
aspects within within given given time instructors without
content organization
given time time missing missing 3-4 help instructors
1-2 criteria criteria help in
every step
Attained Score
Page 1 of 6
…………………….Start of MATLAB Code……………………….
clc
clear
%tutorial no : 4
%calculating flexural stresses
l= input (' enter length of beam l (ft) =\n') ; %length of beam
w= input (' uniformly distributed load w (kips/ft) =\n') ; %udl applied on beam
btf= input (' width of top flange btf (in) =\n') ; %width of top flange
ttf= input (' enter thickness of top flange ttf (in) =\n') ; %thickness of top flange
h= input (' enter total depth of section h (in) =\n') ; %total depth of section
hw= input (' enter height of web hw (in) =\n') ; %height of web
tw= input (' enter thickness of web tw (in)=\n') ; %thickness of web
td=ttf+hw; %total depth of section
Page 2 of 6
fc=(M*y2)/I ; %compresion stresses
maxft=max(ft); %maximum tension stress
maxfc=max(fc);
minft=min(ft);
minfc=min(fc);%maximum compresion stress
txt1=['max tension : ' num2str(maxft) 'ksi'];
txt2=['max compression : ' num2str(minfc) 'ksi'];
%displaying results
disp ([' The Maximum Bending moment M = ' num2str(M) 'kipsft'])
disp ([' Centroid from top x1 = ' num2str(x1) 'inch'])
disp ([' Centroid from bottom x2 = ' num2str(x2) 'inch'])
disp ([' Moment of Inertia I = ' num2str(I) 'lb.sqin'])
disp ([' Section modulus from top St = ' num2str(St) 'in^3'])
disp ([' Section of modulus from bottom Sb = ' num2str(Sb) 'in^3'])
disp ([' different points y on the section = ' num2str(y) 'inch'])
disp ([' flexural stresses f = ' num2str(f) 'ksi'])
disp ([' tension stresses ft = ' num2str(ft) 'ksi'])
disp ([' compressive stresses fc = ' num2str(fc) 'ksi'])
%ploting graph
plot(ft,y1,'--rp')
title('FLEXURAL STRESS GRAPH ','Color','red')
xlabel('FLEXURAL STRESSES (ksi)','color','black'),
ylabel('Length (in)','color','black' )
grid on
hold on
plot(fc,y2,'--bh')
hold on
plot([0,0],[0,x1],'-k','linewidth',4)
hold on
plot([0,0],[0,-x2],'-k','linewidth',4)
hold on
plot([0 , maxft],[x1,x1] ,'-k')
hold on
plot([0 , minfc],[-x2 ,-x2],'-k')
hold on
text(maxft,x1,txt1)
hold on
text(minfc,-x2,txt2)
Page 3 of 6
…………………….Start of Results……………………….
Page 4 of 6
……………………….End of Results……………………….
Page 5 of 6
Page 6 of 6