0% found this document useful (0 votes)
152 views9 pages

Chapter 2

This document provides instructions for an assignment on designing algorithms, pseudocode, and flowcharts. It includes examples of algorithms and pseudocode with flowcharts to check if two numbers are greater than each other, check if a number is positive, negative or zero, check if a number is even or odd, and calculate the area and circumference of a circle with a radius of 4. Students are asked to write out the algorithm and pseudocode, take a photo, and draw and print or draw the flowchart and take a photo of themselves with it.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
152 views9 pages

Chapter 2

This document provides instructions for an assignment on designing algorithms, pseudocode, and flowcharts. It includes examples of algorithms and pseudocode with flowcharts to check if two numbers are greater than each other, check if a number is positive, negative or zero, check if a number is even or odd, and calculate the area and circumference of a circle with a radius of 4. Students are asked to write out the algorithm and pseudocode, take a photo, and draw and print or draw the flowchart and take a photo of themselves with it.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

CHAPTER 2 - ASSIGNMENT

Designing Algorithm, Pseudocode and Flowcharting

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.

Name: Villalobos, El Jean G.


SR Code: 22-72905

1. Design an algorithm that will show the process of enrolment in BatState U Regular
College Students
Answer:
Step 1: Start

Step 2: Go to portal account then click log in (process)

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 5: Download and print the registration form (input/output)

Step 6: Stop

[Your answer/captured photos here]


2. Design an algorithm that will show the process of enrolment in BatStateU Irregular
College Students
Answer:

Step 1: Start

Step 2: Obtain an EPS from your appropriate department (process)

Step 3: Create an EPS file (input/output)

Step 4: Select the assessment tab and print a copy of assessment form (process)

Step 5: Fee payment (process)

Step 6: COR printing (input/output)

Step 7: Stop

[Your answer/captured photos here]


3. Create a pseudocode with flowchart for the following:
a. Check greatest between two numbers

Variables: x, y Start

1) Start Enter two


2) Enter two Variable variables: X,
X, Y
Y
3) Is X is > Y
4) If yes, display the first
number greater; if no, display yes
the second number greater Display first
5) Stop Is X>Y
num is >

Display
second num
is >
no

End

b. Check negative or positive numbers


Variable: A, B

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

c. Check even or odd numbers


Answer :
Variable: D

start
Input number

yes
If number % D Display “Even
== 0
number”

no

Display “Odd
number”

End

d. Calculate the area and circumference of a circle with 4 as its radius


Answer:

start

Input
Display =
Area
area

Radius = 4 radius * 4
radius * area
End

[Your answer/captured photos here]

You might also like