CE0002L
(Computer Fundamentals and Programming)
SUMMATIVE
3
ALGORITHM, PSEUDOCODE AND
FLOWCHARTING
David, Lance Edward C. Prof. Rhonnel Paculanan
October 6, 2023 October 6, 2023
I. OBJECTIVES
At the end of this exercise, students must be able to:
a) Define what is an algorithm
b) Know how to express algorithms using pseudo code, flowcharts, and programming
languages
II. BACKGROUND INFORMATION
Algorithm is the step-by-step sequence of instructions that describe how the data is to be
processed to produce the desired output
Algorithm can be expressed using the following:
• Natural Languages
• Pseudocode
• Flowcharts
• Programming Languages
Pseudocode is a program design technique that uses English words. Pseudocode cannot
be compiled nor executed, and there are no real formatting or syntax rules.
Flowchart is a graphical representation of an algorithm.
III. PROCEDURES
Write the algorithm and provide the pseudo code here, then draw the flowchart in Visual
Logic of the following program specifications
ACTIVITY 1.1: Converting Length in Feet to Centimeter
Write an algorithm, pseudocode and draw a flowchart to convert the length in feet to centimeter.
The input should come from the user.
Algorithm:
1. Enter the desired length in feet (ft.)
2. Compute the length into centimeter (cm)
3. Display the length in centimeter (cm)
Pseudo code:
ENTER length
CALCULATE length: = length * 30.48
DISPLAY length
Draw the flowchart in Visual Logic and paste the screen shot of your work here
ACTIVITY 1.2: Equivalent grade of the student
Write an algorithm and draw a flowchart that will read grades of two students. The program should
find out if the grade is passing or not. The passing grade is 75. If the grade is 75 or more it should
output that the grade is passed, otherwise output that the grade is failed.
Algorithm
1. Enter the grades of the two students.
2. Should the first student's score be 75 or higher, indicate that the first student has achieved a
passing grade; otherwise, show that the first student's grade is a failure.
Should the second student's score be 75 or higher, indicate that the second student has
achieved a passing grade; otherwise, show that the second student's grade is a failure.
Pseudo code:
ENTER S1, S2
IF S1 >= 75
THEN
DISPLAY “First student has passed”
ELSE
DISPLAY “First student has failed”
ENDIF
IF S2 >= 75
THEN
DISPLAY “Second student has passed”
ELSE Draw the flowchart in Visual Logic and paste the screen shot of your work here
DISPLAY “Second student has failed”
ENDIF
Draw the flowchart in Visual Logic and paste the screen shot of your work here
ACTIVITY 1.3: Age Equivalent
Write an algorithm and draw a flowchart that reads the age of a persons. Check if the age is in this
category
If age is
Less than 0, output error, age is not allowed
0 to 12, output “Child”
13 to 19, output “Teenager”
20 to 30, output “Young adult”
31- 59, output “Adult”
60 and above, output “Senior”
Algorithm
1. Please input the individual's age.
2. If the age is below 0, show "Error" message; else proceed to the next step.
3. If the age is 60 or older, show "Senior"; else proceed to the next step.
4. If the age is 31 or older, show "Adult"; else proceed to the next step.
5. If the age is 20 or older, show "Young adult"; else proceed to the next step.
6. If the age is 13 or older, show "Teenager"; else proceed on to the next step.
7. Display "Child."
Pseudo code:
ENTER age
IF age < 0
THEN
DISPLAY “Error”
ELSE IF age >= 60
THEN
DISPLAY “Senior”
ELSE IF age >= 31
THEN
Draw the flowchart in Visual Logic and paste the screen shot of your work here
DISPLAY “Adult”
ELSE IF age >= 20
THEN
DISPLAY “Young Adult”
ELSE IF age >= 13
THEN
DISPLAY “Teenager”
ELSE
DISPLAY “Child”
ENDIF
Draw the flowchart in Visual Logic and paste the screen shot of your work here
IV. ASSESSMENT
Department Computer Science Department
Subject Code CE0002L
Description Computer Fundamentals and Programming
Term/Academic Year 1 / 2020-2021
Topic Introduction to Programming
and Algorithm
Lab Summative 3
No.
Lab Summative Algorithm, Pseudocode and
Flowcharting
CLO 1
Note: The following rubrics/metrics will be used to grade students’ output in the Lab
Summative 3.
Criteria Descriptions Points
Correctness of the pseudocode The algorithm and the pseudocode are 30
and algorithm done correctly and has really listed all
the steps in solving the problem
Correct use of flowchart The flowchart created uses correct 30
symbols symbols to represent a line or lines of
pseudocode
Correct flow of data and The flowchart should have the correct 40
process flow of data and process from
beginning to end
Total 100%