0% found this document useful (0 votes)
9 views

Discussion Prelim Computer Programming

com prog
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Discussion Prelim Computer Programming

com prog
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Flowcharting & Pseudocode

Prepared by: Kurt Bryan S. Alegre


BSIT Computer Programming Instructor
Objectives:
 This presentation aims to encourage BSIT students to
participate actively.
 After each activity is presented, students can
elaborate on the possible flow or the Pseudocode
depending on what is being asked.
 Students are required to create a flowchart by the
group after the revelation of the correct answer.
Common symbols in Flowcharting, especially in system flowchart:

Arrow
Flowlines

Database

Input/Output or Data
Decision

Terminal/ Terminator
Preparation

On-page connector/reference
Process

Off-page connector/reference
Activity 1: Input Two Numbers and Display the Sum
Problem: Create a flowchart to input two numbers and
display their sum.

1.Start
2.Input number1, number2
3.sum = number1 + number2
4.Output sum
5.End
Activity 2: Check if a Number is Positive, Negative, or Zero
Problem: Create a flowchart to check whether a given number is positive,
negative, or zero.

1. Start
2. Input number
3. If number > 0, output "Positive"
4. Else if number < 0, output "Negative"
5. Else, output "Zero"
6. End
Activity 3: Display the First 10 Natural Numbers
Problem: Create a flowchart to display the first 10
natural numbers.

1. Start
2. Initialize counter = 1
3. While counter <= 10
● Output counter
● counter = counter + 1
4. End
Activity 4: Calculate the Average of Three Numbers
Problem: Create a flowchart to input three numbers and
calculate their average.

1. Start
2. Input number1, number2, number3
3. average = (number1 + number2 +
number3) / 3
4. Output average
5. End
Activity 5: Find the Largest of Three Numbers
Problem: Create a flowchart to find the largest of three
given numbers.

1. Start
2. Input number1, number2, number3
3. If number1 > number2 and number3, output number1
4. Else if number2 > number1 and number3, output
number2
5. Else, output number3
6. End
Activity 6: Simple Greeting Program
Problem: Create a flowchart to ask the user for their
name and display a greeting message.

1.Start
2.Input name
3.Output "Hello, [name]!"
4.End
Activity 7: Multiplication Table for a Given Number
Problem: Create a flowchart to display the
multiplication table for a given number up to 10.

1. Start
2. Input number
3. Initialize counter = 1
4. While counter <= 10
○ result = number * counter
○ Output number + " x " + counter + " = " + result
○ counter = counter + 1
5. End
Activity 8: Calculate the Square of a Number
Problem: Create a flowchart to calculate the square of a
given number.

1.Start
2.Input number
3.square = number * number
4.Output square
5.End
Activity 9: Convert Hours to Minutes
Problem: Create a flowchart to convert hours
to minutes.
1.Start
2.Input hours
3.minutes = hours * 60
4.Output minutes
5.End
Activity 10: What type of exam inyu gusto
next meeting for our Prelim Examination?

a. Multiple Choice
b. Identification
c. Flowcharting
d. Essay (Pure English)
e. All of the above
Still the coverage are the 6
topics presented by the
groups.
Study well….

Questions?
End of
Presentation,
Goodluck sa
Prelim…

You might also like