Professional Documents
Culture Documents
_6__
Group Members
1. ___________Hatud, Erika____________
2. _________Hermoso, Danica__________
5. _________Lumaban, Genesis_________
1 10
2 10
3 10
4 10
5 10
6 10
7 10
8 10
9 10
10 10
11 10
12 10
13 10
Total 130
1. Objective:
The activity aims to create matlab program that will ask the user to choose between the two types of figures
in solid mensuration and output the area, perimeter/circumference, volume or surface area of a certain figure.
3. Discussion :
Solid Mensuration is a branch of mathematics that deals with the area and perimeter/circumference of plane
figures and volume and surface area of solid figures.
4. Resources:
Matlab
5. Procedure:
1. Using the matlab editor , choose File/New/ Blank m-file , type the following:
clc;
disp('Area of the Rectangle');
length=input('Enter the length of the rectangle: ');
width=input('Enter the width of the rectangle :');
area=length*width;
fprintf('The area of the rectangle is %0.2f. ',area );
2. Save the file as areaRectangle. Run the program and record the results.
3. Create m-file for the area of the square, right triangle, oblique triangle, circle and ellipse.
4. Create m-file for the perimeter of square, rectangle, right triangle, oblique triangle, circle and ellipse.
For circle, use circumference instead of perimeter.
5. Create m-file for the volume of cone, sphere, rectangular parallelepiped, right circular cylinder and
cube.
6. Create m-file for the surface area of cone, sphere, rectangular parallelepiped, right circular cylinder
and cube.
7. Using the matlab editor, choose File/New/Blank m-file, type the following:
clc;
disp('Area and Perimeter of the Rectangle');
choose=input('\n 1. Area of the Rectangle \n 2. Perimeter of the Rectangle \n Choose 1 or 2: ');
switch(choose)
case 1;
length=input('Enter the length of the rectangle: ');
width=input('Enter the width of the rectangle :');
area=length*width;
fprintf('The area of the rectangle is %0.2f. ',area );
break;
case 2;
length=input('Enter the length of the rectangle: ');
width=input('Enter the width of the rectangle :');
perimeter= 2*length + 2*width;
fprintf('The perimeter of the rectangle is %0.2f. ',perimeter );
break;
end
8. Create a matlab program that will ask the user to choose between plane figures and solid figures.
If the user will choose plane figures, he will then be ask to choose among the five (5) plane figures as
mentioned in Procedure No. 4. After choosing any of the five (5) plane figures, he will then be ask to choose
between area and perimeter. If the user will choose solid figures, he will then be ask to choose among the
five (5) solid figures as mentioned in Procedure No. 5. After choosing any of the five (5) solid figures, he will
then be ask to choose between volume and surface area. Necessary inputs are needed and the output will
be any of the area or perimeter of any of the five (5) plane figures and any of the volume and surface area of
any of the five (5) solid figures.
Course: CHE 508 Laboratory Exercise No.: 03
Group No.: 6 Section: CHE-51S1
Group Members: Date Performed: October 13, 2020
HATUD, Erika Date Submitted: October 15, 2020
HERMOSO, Danica Instructor: Engr. Crispulo G. Maranan
LISING, Angela Nicole
LOVERES, Shania Faith
LUMABAN, Genesis
6. Data and Results:
Procedure Results
2
3.1
3.2
3.3
3.4
3.5
4.1
4.2
4.3
4.4
4.5
4.6
5.1
5.2
5.3
5.4
5.5
sa=3.14*r*(r+(h^2+r^2)^(1/2));
sa=4*3.14*r^2;
6.3
Surface Area of the Rectangular Parallelepiped
sa=2*(w*l+h*l+h*w);
sa=(2*(3.14*r*h))+2*3.14*r^2;
6.5
Surface Area of the Cube
sa=6*a^2;
switch (choose)
case 1
switch (choose)
case 1
switch(choose)
case 1
area=pi*r*(r+sqrt(h^2+r^2));
case 2
vol=pi*r^2*(h/3);
end
case 2
switch(choose)
case 1
area=4*pi*r^2;
case 2
vol=(4/3)*pi*r^3;
end
case 3
switch(choose)
case 1
a=2*((w*l)+(h*l)+(h*w));
a=l*w*h;
end
case 4
switch(choose)
case 1
area=(2*pi*r*h)+(2*pi*r^2);
case 2
area=(h*pi*r^2);
end
case 5
switch(choose)
case 1
area=6*s^2;
case 2
area=s^3;
end
end
case 2
case 1
switch(choose)
case 1
a=s^2;
case 2
p=4*s;
end
case 2
switch(choose)
case 1
case 2
p=2*(l*w);
end
case 3
switch(choose)
case 1
a=(b*h)/2;
case 2
p=h+b+sqrt(h^2+b^2);
fprint('The Perimeter of the Right Triangle is %0.2f. ', a);
end
case 4
switch(choose)
case 1
a=pi*r^2;
case 2
c=2*pi*r;
end
case 5
switch(choose)
case 1
a=pi*a*b;
case 2
p=2*pi*sqrt((a^2+b^2)/2);
end
end
end
7. Conclusion:
We therefore conclude that using matlab, we can create programs that will determine the area and perimeter
of a plane figure and a program that will determine the volume and surface area of a solid figure. All you need
to do is to input the needed values and matlab will provide you the output.
Also, using matlab, we were able to create a program that will ask its users to select different types of figures
in the field of solid mensuration; it also helps to determine the perimeter or circumference of an area.
8. Assessment (Rubric for Laboratory Performance):
TECHNOLOGICAL INSTITUTE OF THE PHILIPPINES
RUBRIC FOR MODERN TOOL USAGE
(Engineering Programs)
Student Outcome (e): Use the techniques, skills, and modern engineering tools necessary for engineering
practice in complex engineering activities.
Program: Chemical Engineering Course: CHE508 Section: CHE51S1 1stSem SY 2020-2021
Performance Unsatisfactory Developing Satisfactory Very Satisfactory Score
Indicators 1 2 3 4
1. Apply Fails to identify Identifies Identifies modern Recognizes the
appropriate any modern modern techniques and is benefits and
techniques, techniques to techniques but able to apply constraints of
skills, and perform fails to apply these in modern
modern tools to discipline- these in performing engineering tools
perform a specific performing discipline-specific and shows
discipline- engineering discipline- engineering task. intention to apply
specific task. specific them for
engineering engineering engineering
task. task. practice.
2. Demons Fails to apply Attempts to Shows ability to Shows ability to
trate skills in any modern apply modern apply fundamental apply the most
applying tools to solve tools but has procedures in appropriate and
different engineering difficulties to using modern effective modern
techniques and problems. solve tools when solving tools to solve
modern tools to engineering engineering engineering
solve problems. problems. problems.
engineering
problems.
3. Recogni Does not Recognizes Recognizes the Recognizes the
ze the benefits recognize the some benefits benefits and need for benefits
and constraints benefits and and constraints of and constraints of
of modern constraints of constraints of modern modern
engineering modern modern engineering tools engineering tools
tools. engineering engineering and shows and makes good
tools. tools. intention to apply use of them for
them for engineering
engineering practice.
practice.
Total Score
Mean Score = (Total Score / 3)
Percentage Rating = (Total Score / 12) x 100%
Evaluated by: Engr. Crispulo G. Maranan October 15, 2020
Printed Name and Signature of Faculty Member Date