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

Unit 5 Lesson 8

Planning the logic of a program is important as it guides the programmer on the steps, inputs, processes, outputs, and flow needed to solve a problem. The document discusses program design tools like flowcharts and pseudocode. It provides examples and activities on creating a flowchart to determine if a number is odd or even and writing pseudocode to compute the sum of squares from 1 to 50. The post-test evaluates the understanding of key concepts like program design, flowchart symbols, and writing pseudocode.

Uploaded by

markvillaplaza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views9 pages

Unit 5 Lesson 8

Planning the logic of a program is important as it guides the programmer on the steps, inputs, processes, outputs, and flow needed to solve a problem. The document discusses program design tools like flowcharts and pseudocode. It provides examples and activities on creating a flowchart to determine if a number is odd or even and writing pseudocode to compute the sum of squares from 1 to 50. The post-test evaluates the understanding of key concepts like program design, flowchart symbols, and writing pseudocode.

Uploaded by

markvillaplaza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

MARK P.

VILLAPLAZA
BSME-2B AOL

Unit 5
PROGRAM DESIGN TOOLS: FLOWCHART AND PSEUDOCODE

LESSON 1:INTRODUCTION TO PROGRAM DESIGN

Answer the question below using 2-3 sentence


1. What is the importance of planning the logic of the program?
- Planning the logic of the program is important because it will guide the programmer
about how the step-by-step of making a program, what input must be in, what could be
the best process to take with, pointers to capitulate what is needed, the flow and
sequential equivalence, and the output of as well.

ACTIVITY 5.1.1
Scenario; you’re trying to log in your Facebook account to your computer, it says that your
password is incorrect and your account was locked. What do you do to solve this problem
and login to your account successfully? List down all steps
1. Type the email and the password.
2. If it is found that the password is incorrect, by clicking the forgot password button,
and select options
3. Wait for a minimal second, the Fb maybe retrieved through the domain email by
sending the notice.
4. Fb will send the reset setting to the anchored Gmail account for possible retrieval of
the account.
5. Right then, change for password by inputting the new one that will ensure to log
successfully.

Analysis
In the previous activity, I encountered difficulty on?
- I have encountered difficulties in pseudo code because it is my first time to study it.

It made me aware of?


- It made me aware of IPO, input, Process and Output and that I need to understand what
the problem is all about in order to solve it. With that, I need to make a plan on how to
learn it properly.

Now I want to learn more on?


- Now I want to learn more on flow chart and pseudo code.

APPLICATION
PROGRAM DESIGN: it is on how or what approach are you going to do in programming or
solving the problem, phrase where the programmer determine the logic of the program to
solve a certain problem.
FLOWCHART; graphical representation of steps on how to solve a problem
PSEUDO CODE; artificial and informal language that helps programmer develop algorithms.
REFLECTION/ LEARNING INSIGHTS
1. Before taking up this lesson what is your idea on planning of the program?
- I don’t have any idea on planning of program before.
2. What do you think the important of understanding the activities in program design?
- I think, to be more familiar in the deep concept of making flowchart, algorithm, pseudo
code.
3. Assure from programming, in what area in your life will you apply this method to give a
solution to a problem?
- In the daily life that people have, it is really important to use tools and equipment for
every actions specifically the hard one. These innovative tools where programming is
involved, simple or complex will lead to a good result. Strongly beneficial to the people
who used to it.
LESSON 2:FLOWCHART

Activity 5.2.1
Let’s begin the lesson by answering the activity below for you to fully understand the concept
of a flowchart. This section will introduce you to the lesson proper and a review as well. Pick
the symbols from the box and draw the correct symbols for each function. Good luck!

Analysis

Congratulations on performing the first task. For you to move forward you must understand
and reflect first on your previous activity. Complete each statement based on your experience.

The activity above made me remember of?


- It made me remember of concept map and pictograph
It made me aware of?
- It made me aware that there are different symbols for specific usage

Now I’m excited to


- Now I am excited to learn more on this subject

Application

This section is created to apply your knowledge and show what you’ve got.
Prepare yourself as you are going to create your flowchart. Good luck!

Goal: To demonstrate the knowledge acquired about flowchart


Role: You are an engineering student.
Audience: Teacher and classmates
Situation: You need to create a flowchart for each problem below:
1. Determine if the inputted number is ODD or EVEN.
2. Compute the sum of squares of integers from 1 to 50.
3. Compute the sum of the digits of any given number.
4. Make a flowchart that will accept three numbers and will display the numbers in
order from smallest to largest.
5. Find the average, high number, low number, sum of five (5) numbers given by the
user.

Product: A flowchart for each problem. Write your answer on a clean sheet of
bond paper.

Standard: Your output must have the following:


- Correct Symbols of Flowchart
- Make sure to follow the guidelines in creating a flowchart

REFLECTION/ LEARNNG INSIGHTS


1. What do you think is the importance of creating a flow chart of a programmer before reading
it?
- To know and to have a step-by-step virtual guides to know what approach or strategy
must take.
2. Why do we need to use a different symbol in creating a flow chart?
- For east identification, if you saw that shape or symbol, it will help you to just look at it
or a while and you will know the meaning of the shape/symbol
3. What are the important insights you’ve got from this topic?
- I learned that there are different symbols that can be used in future purposes.
LESSON 3:PSEUDOCODE

Activity 5.3.1
Let’s have an ice breaker. Show your entry-level knowledge on writing a pseudocode. Take a
look at a flowchart below. This is the step in logging in to a Facebook account. Your task is to
convert this flowchart into a worded procedure.

This will test also if you remember the function of each flowchart symbol. Write your
answer on the space provided. Good luck!

PSEUDO CODE
BEGIN
ENTER WWW.FACEBOOK.COM
ENTER EMAIL AND PASSWORD
ELSE EMAIL AND PASSWORD IS INCORRECT
IF EMAIL AND PASSWORD IS COFREECT
ENTER DISPLAY ACCOUNT
END.

Analysis
Isn’t challenging? Don’t worry, it was just a pre-assessment of what you know about the topic.
Can you share your reflections on previous the activity? Complete each statement below.

ANALYSIS
1. How did the activity hell you gain more knowledge in preparation.
- It helps me to know and create steps and ways to logically solve the problem.
2. Do you think you were able to convert the flowchart into pseudo code, correctly? If now what
Hindered you to do so?
- Yes, but still there are still hindrance because I need to identify of what would I put in
words.
3. Write your expectations in this topic below
- To learn more and to know more about programming, I expect that pseudo code and
flowchart must be important and relevant in programming.

Reflection/ learning insights


1. What do you think is the advantage of psuedocode from flowchart?
- Is to easily, readily ready for any layman to read and understood.
2. If you are to choose, what program design tool will you use?
- I will use flowchart because in the first glance you can identify easily the shakes and its
meaning therefore you can identify it sooner if what you will do to solve the problem.
3. How do you apply pseudocode in real life scenario?
- I can apply it in study in academics because teachers make step by step pattern for their
students, they make teaching patterns so that any of their student can learn it to a way
to be understandable to them.
POST-TEST
Great experience! You’re almost done with this chapter. Keep in mind all the concepts you
learned in the previous activities to help you answer this post-test.

Part 1: Introduction to Program Design


Identification. Write the correct answer for each item before the number.

1. Flowchart
2. Test data
3. Input Process and Output
4. Pseudo code
5. Algorithm
6. Program, algorithm, flowchart and pseudocode
7. Terminal

Part 2: Flowchart
Fill in the blank. Complete each sentence by supplying the correct word.

1. A program flowchart indicates the problem to be performed and the symbol in which they
occur.
2. A program flow chart is generally read from top to bottom.
3. Flowcharting symbols are connected together by means of flow line.
4. A decision symbol used in determining the true or false of the two data items
5. Arrows are used to join remote position of a flow chart.
6. Off page connector connectors are used when a flowchart ends on one page and begin again
on the other page.
7. Terminal symbol used at the beginning and end of a flow chart.
8. Flow chart is one of the best way of solving a program.
9. To construct a flow chart, one must adhere to prescribe symbols provided by the component.
10. The programmer uses a symbols to aid in drawing flowchart symbols.

Part 3: Pseudocode

1. Determine the inputted problem is odd or even


Begin
Enter odd or even
Set odd if a number leaves a remainder 1 if divided by 2
Else even if a number is divisible by 2
End
2. Compute the sum of squares of integers from 1 to 50
Begin
Input 1 to 50
Calculate the sum of squares from 1 to 50
If 1<0 it is positive
Else 1>0 it is negative
End
3. Compute the sun of the digits of any given numbers
Begin
Input given numbers
Compute sum of x any given number
End

4. Make a flowchart and pseudocode that will accept the three numbers and will display the
numbers in order from the smallest to longest.
Begin
Input 1.2.3
Do increasing from smallest to highest(longest)
Arrange 1,2,3
End
5. Find the average high number, low number, sum of 5 numbers given by the user.
Begin
Input
N = number given by the user
X = average high number and low number
5 = constant
Compute
N+5=X
If X is high number
Else -X is a lower number
End

Final requirements
Writing a flowchart and pseudocode. Use flowchart and pseudocode to specify the algorithm
for an ATM bank machine, the ATM has four options.
1. Balance inquiry
2. Cash deposit
3. Cash withdrawal
4. Quit

After an option has been selected, the ATM will continue displaying the four options to the
person until he selects the option to quit the ATM.

You might also like