Math16-1L / B4
Submitted by:
Ibarra, Neyo
Roxaz, Benedic
Yoda, Joji
Perea, Aaron John
Submitted to:
September 16 2015
a) Title:
Cube Calculator
b) Significance:
This project can help calculate the parts and properties of the cube (e.g LSA/TSA,
volume, diagonal etc.) given the required data.
It can also be used as a calculator for students who need to compute the properties/parts
of the cube and can also use it as a reference to compute other solid objects.
c) Definition:
a symmetrical three-dimensional shape, either solid or hollow, contained by six equal
squares.
d) Parts of the Cube
Face- A cube has six faces which are all squares, so each face has four equal sides and all
four interior angles are right angles.
Edge- A line segment formed where two edges meet. A cube has 12 edges, because all
faces are squares and congruent to each other, all 12 edges are the same length.
Vertex- A point formed where three edges meet. A cube has 8 vertices.
Face Diagonals- are line segments linking the opposite corners of a face. Each face has
two, for a total of 12 in the cube. The length of the face diagonals is given by the formula
where s is the length of one side (edge). Since the faces are squares, this is the same as
the diagonal of a square.
Space Diagonals- Space diagonals are line segments linking the opposite corners of a
cube, cutting through its interior. A cube has 4 space diagonals. The length of the space
diagonal is given by the formula where s is the length of one side (edge).
e) Properties of a Cube:
Volume- The volume is s3 where s is the length of one edge. See Volume of a cube.
Surface Area- The surface area of a cube is 6s2 , where s is the length of one edge.
See Surface area of a cube.
f) Source Code:
// This is a program that obtains the following data for a cube when given the dat
//a of the cubes side(S)
AREA(3D
area2d = side^2;
latarea= 4*(side)^2
totalarea= 6*(side)^2;
diagoface = side*sqrt(2);
diagospace= side*sqrt(3);
disp();
printf(Volume of the Cube is: %d cubic units',volume);
disp();
printf('2D Area of the Cube is: %d squared units',area2d);
disp();
printf(Lateral Surface Area of the Cube is: %d squared units',latlarea);
disp('');
printf(Total Surface Area of the Cube is: %d squared units',totalarea);
disp('');
printf(Face Diagonal of the Cube is: %d',diagoface);
disp('');
printf(Space Diagonal of the Cube is: %d',diagospace);
disp('');
cubo=[-side side side; side side side; side -side side; -side -side side;.. -side side -side;
side side -side; side -side -side; -side -side -side]';
//coord vertici
facce=zeros(3,4,6);
facce(:,:,1)=cubo(:,[1 2 3 4]);
facce(:,:,2)=cubo(:,[5 8 7 6]);
facce(:,:,3)=cubo(:,[3 7 8 4]);
facce(:,:,4)=cubo(:,[2 6 7 3]);
facce(:,:,5)=cubo(:,[1 5 6 2]);
facce(:,:,6)=cubo(:,[1 4 8 5]);
xx=matrix(facce(1,:,:),4,6);
yy=matrix(facce(2,:,:),4,6);
zz=matrix(facce(3,:,:),4,6);
plot3d(xx,yy,zz)
i) Manual Solutions:
Given: Angle = 45
(Initial velocity is unknown)
Height of the launcher = 0.1 meters
Length of the drop of projectile = 0.1 meters
t=
0.1 m
9.8 meters per secon d 2
t=0.1010152545
v=
0.1 m
0.1010152545 s
v =0.9899494937 m/ s
Time of flight
t=
2 v
9.8 meters per second
t=
2 0.98995
9.8 meters per second
t=0.1428572159
Max Range
x=0.1 m
Max Height Reached
1 t
y=v t sin angle g
2 2
()
1
0.143
y=0.99 0.143 sin 45 ( 9.8 )
2
2
y=0.075 m