Chapter 2
Chapter 2
Instruction: Answer the following questions and follow the directions given below.
For the Algorithm and Pseudocode: Write it in a neat white bond paper (hand written)
then take a photo of it and attach to this activity
For the Flowchart: (a) You may use any diagramming tool to draw your flowchart and
print it out then take a picture of yourself while holding the activity, (b) for those who
don’t have resources to use and print, please draw your diagram in a neat white bond
paper then capture it and also take a picture of yourself while holding the activity.
1. Design an algorithm that will show the process of enrolment in BatState U Regular
College Students
Answer:
Step 1: Start
Step 3: If the username and password are correct, allow access; if not, go back and log in
(decision)
Step 4: Confirm your enrollment, add subjects, and verify your enrollment (process)
Step 6: Stop
Step 1: Start
Step 4: Select the assessment tab and print a copy of assessment form (process)
Step 7: Stop
Variables: x, y Start
Display
second num
is >
no
End
1) Start
2) Insert num1 as A and num2 as B
3) Is num1 greater than zero, Print
positive. If num1 is <zero, print
negative; otherwise, print zero.
4) Stop
Start
Num1= A
Num2 = B
Is no Is
num1>0? num1<0?
yes yes
Print no
Print
positive negative
Print zero
End
start
Input number
yes
If number % D Display “Even
== 0
number”
no
Display “Odd
number”
End
start
Input
Display =
Area
area
Radius = 4 radius * 4
radius * area
End