You are on page 1of 6

Laboratory Exercise No.

4
SIMPLE SOLID MENSURATION MATLAB PROGRAM
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.
2. Intended Learning Outcomes (ILOs):
The students shall be able to:
2.1 create matlab programs that will determine the area and perimeter of five(5) plane figures
2.2 create matlab programs that will determine the volume and surface area of five(5) solid figures
2.3 use switchcase break in creating matlab program for a simple solid mensuration problem-solving
situation.
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: Computer Application for ChE


Group No.:
Group Members:

6. Data and Results:

7. Conclusion:

Laboratory Exercise No.:3


Section:CH51FC1
Date Performed:
Date Submitted:
Instructor: Engr. Crispulo Maranan

8. Assessment (Rubric for Laboratory Performance):

T I P V P A A 0 5 4 D

TECHNOLOGICAL INSTITUTE OF THE PHILIPPINES

Revision Status/Date: 0/2009 September 09

RUBRIC FOR LABORATORY PERFORMANCE

CRITERIA

BEGINNER

ACCEPTABLE

PROFICIENT

Members
do
not
demonstrate needed skills.

Members
occasionally
demonstrate needed skills.

Members
always
demonstrate needed skills.

Experimental Set-up

Members are unable to setup the materials.

Members are able to set-up


the
materials
with
supervision.

Members are able to set-up


the material with minimum
supervision.

Process Skills

Member do not demonstrate


targeted process skills.

Members
occasionally
demonstrate
targeted
process skills.

Members
demonstrate
process skills.

Safety Precautions

Members do not follow


safety precautions.

Members follow safety


precautions most of the
time.

Members follow safety


precautions at all times.

Time Management /
Conduct
of
Experiment

Members do not finish on


time with incomplete data.

Members finish on time with


incomplete data.

Members finish ahead of


time with complete data and
time to revise data.

Cooperative
Teamwork

and

Members do not know their


tasks and have no defined
responsibilities.
Group
conflicts have to be settled
by the teacher.

Members have defined


responsibilities most of the
time. Group conflicts are
cooperatively managed most
of the time.

Members are on tasks and


have defined responsibilities
at all times. Group conflicts
are cooperatively managed
at all times.

Neatness
Orderliness

and

Messy workplace during and


after the experiment.

Clean and orderly workplace


with occasional mess during
and after the experiment.

Clean and orderly workplace


at all times during and after
the experiment.

Ability
to
do
independent work

Members
require
supervision by the teacher.

Members require occasional


supervision by the teacher.

Members do not need to be


supervised by the teacher.

I. Laboratory Skills
Manipulative
Skills

always
targeted

II. Work Habits

TOTAL SCORE
Other Comments / Observations:

TotalScore
24
RATING = (
)x
100%

SCORE

Evaluated by:

_______________________________________
Printed Name and Signature of Faculty Member

Date: ___________________________

You might also like