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

Algorithm and Flowchart Design Guide

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)
58 views9 pages

Algorithm and Flowchart Design Guide

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

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]

Common questions

Powered by AI

Decision-making steps such as verifying correct login credentials impact the flow by introducing conditional checks that determine subsequent process paths. If conditions are met (such as correct login details), the process continues; otherwise, it loops back to retry, ensuring procedural accuracy and security .

Decision structures form the basis of bifurcation points in flowcharts, dictating different paths based on conditional evaluations. Multiple decision points add complexity and require clear, precise delineation of branches to ensure logical processes are captured and accurately guide operational flows .

Validation checks, such as verifying correct usernames and passwords, play a crucial role in enhancing security by preventing unauthorized access. Accuracy is improved through checks that ensure correct data inputs and processing paths, reducing errors in enrollment systems and safeguarding sensitive information .

The algorithm for irregular students involves obtaining an EPS from the department, creating an EPS file, selecting the assessment tab and printing the assessment form, paying fees, and printing the COR. This process has additional administrative steps compared to the regular enrollment, which focuses more directly on logging in, confirming enrollment, and printing the registration form .

Flowcharts visually represent decision points and logical flow, such as the comparison of two numbers. They enhance understanding of the step-by-step logic behind the pseudocode, making it easier to follow and debug issues in determining the greatest number .

The pseudocode uses conditional checks to determine if a number is divisible by a specific divider (typically 2) to classify it as even or odd. It illustrates the application of modulus operations to guide logical decision-making paths based on arithmetic properties .

Both algorithms involve logging into a portal, but regular student enrollment continues directly with enrollment confirmation, whereas irregular student enrollment involves extra steps like obtaining and processing EPS files. Both processes ensure correct identity verification during login, highlighting similarities in their security and access procedures .

Challenges include potential errors in transcription, difficulty in capturing the exact format, and loss of detail. These challenges can be mitigated by using precise diagramming tools, double-checking data entry, and ensuring high-quality image capture of the original documents to preserve detail and clarity .

Incorporating input/output in pseudocode ensures that the necessary operations for capturing inputs (e.g., the radius) and displaying results (e.g., area, circumference) are explicitly outlined. This clarity helps prevent errors and omissions in execution, ensuring accurate calculations .

The key steps include starting the process, logging into the portal with correct credentials, confirming enrollment and selecting courses, downloading the registration form, and then stopping the process .

You might also like