Ict8 Q2 WK3
Ict8 Q2 WK3
Introduction to Computer
Programming
After going through this module, you are
expected to:
1. Identify the parts of C programming
language.
2. Make a simple program that shows
student’s
personal information.
3. Appreciate the impact of computer
Pre-Test:
Language
• Select a language suitable for
your project. Popular choices
for beginners include Python,
JavaScript, or Java.
4. Set Up the Development Environment
Install the necessary software, such as:
Text Editor/IDE: Tools like Visual Studio
Code, PyCharm, or Jupyter Notebook for
coding.
Compiler/Interpreter: Depending on your
chosen language, ensure you have the
appropriate compiler (for languages like
C/C++) or interpreter (for languages like
Python).
5. Write the Code
Start coding based on your
pseudocode or flowchart. Focus on one
part of the program at a time, and
ensure you:
Declare variables.
Implement functions or methods.
Use control structures (loops,
conditionals) to control the flow.
6. Test the Code
- Run your program with different inputs to
check for correctness. Look for:
• Syntax errors: Mistakes in code
structure.
• Logical errors: Errors where the
program runs but doesn’t give the
expected results.
- Debug any issues that arise, using print
statements or debugging tools to identify
problems.
7. Refine and Optimize
Review your code for efficiency and
clarity. Consider:
• Reducing redundancy.
• Improving variable names for
better readability.
• Adding comments to explain
complex parts of your code.
8. Document the Program
Write documentation that explains
how to use your program, its
functionality, and any special
features. This can include:
• A README file.
• Inline comments within the
code.
9. Gather Feedback
• If possible, share your program
with others to get feedback. They
may identify areas for
improvement or additional
features.
10. Maintain and Update
• After deployment, continue to
maintain and update your
program as necessary. Fix any
bugs that are reported and
consider adding new features
based on user feedback.
Step four:
Add
additional
details to the
railroad
tracks on the
sides of the
rails.
Step five:
Let’s begin drawing
the railroad station
in one point
perspective. Begin
by drawing a
rectangle. Be sure
to keep the corners
square 90 degree
angles.
Step six:
Draw
two DIAGONAL
lines that
connect to the
vanishing point
to form the sides
of the railroad
station.
Step seven:
Draw a
straight, VERTICA
L line to define
where the wall
ends. Be sure this
line meets at the
horizon line at a
perpendicular/ 90
degree angle.
Step eight:
Draw VERTICAL
lines to define the
poles. Note how the
poles get thinner,
closer together, and
smaller as they
move towards the
vanishing point.
Step eleven:
To define the
electrical lines, draw
four DIAGONAL lines
that converge to the
vanishing point.
Then, draw
HORIZONTAL lines
for additional details.
Step twelve:
Take a moment to
clean up your
sketch by erasing
out any lines that
should not remain
visible.
Step sixteen:
Using a tool of
your choice (such
as a pencil for
shading or colored
pencils), begin
finalizing your line
drawing.
Final step:
Add shadows.
The sun is setting
in the middle,
therefore
shadows will be
angled on the
side opposite the
sun.
Concept of Perspective in 2D Drawing
Perspective is a technique used in drawing to
represent three-dimensional objects on a two-
dimensional surface (such as paper) in a way that looks
realistic and mimics how the human eye sees the
world.
It creates the illusion of depth, making objects appear
smaller as they get farther away, and converging
towards a point in the distance, just like in real life.
1. Horizon Line
This represents the viewer's eye level. Everything
in the drawing is positioned relative to this line. Objects
above the horizon line appear to be above eye level,
while those below it appears below eye level
Horizon Line
2. Vanishing Point
A point on the horizon line where parallel lines
(orthogonal lines) appear to converge. This is the focal
point of a perspective drawing and where objects
seem to "disappear" into the distance.
3. Orthogonal Lines
These are lines that lead to the vanishing point. In
perspective drawing, objects are drawn with lines
receding towards the vanishing point to create the
illusion of depth.
Types of Perspective in
2D Drawing
1. 1-Point Perspective
Uses a single vanishing point on the
horizon line. It's often used to depict
objects that are directly facing the viewer,
like looking down a long hallway, street, or
at the front of a building.
Key Elements of
Perspective Drawing