0% found this document useful (0 votes)
42 views14 pages

Using Variables in Small Basic

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)
42 views14 pages

Using Variables in Small Basic

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/ 14

Search . . .

USING
VARIABLES IN
SMALL BASIC
LESSON 2
CODING School Search . . .

OBJECTIVES

IDENTIFY THE BASIC FOLLOW THE RULES


CREATE AN
FLOWCAHRT IN DECLAIRING
ALGORITHM AND
SYMBOLS. VARIABLES
FLOWCHART.
1. Cooking a Search . . .

pancake:_______________________________
a. Add milk, butter, and egg. Whisk together.
b. In a bowl, mix together the flour, sugar,
baking powder, and salt.
c. Heat a pan and then spread butter or oil on
it.
d. Let it cook on each side for two minutes.
e. Pour two to three tablespoons of batter
onto the pan.
Search . . .

1. Creating a reaction paper using a word


processing tool:_______________________________
a. Print it
b. Launch the word processing software
c. Plug in computer and turn on.
d. In a blank document, type the content of
your reaction paper.
e. Save it for future reference.
Wake up

Flowchart

Go to the bathroom

Yes
Take a shower? Put Shampoo Shampoo hair and wash
body

No

Brush Teeth

Dress up

Have breakfast? Yes


Eat breakfast

No Arrive at school
Ride the car
Search . . .

Algorithms and Flowchart

Algorithm - is a step-by-step set of


operations designed to solve a
given problem.

Flowchart - are graphical or visual


representations of an algorithm.
Basic Symbols Used in Flowchart Search . . .
Flowchart

1. Making a coffee in a mug


Step 1: Start.
Put Shampoo

Step 2: Add two teaspoons of coffee


in a mug.
Step 3: Pour the hot water in a mug.
Step 4: Stir your coffee.
Step 5: Stop
Have breakfast?
Flowchart

1. Making a coffee in a mug


Step 1: Start.
Put Shampoo

Step 2: Add two teaspoons of coffee


in a mug.
Step 3: Pour the hot water in a mug.
Step 4: Stir your coffee.
Step 5: Stop
Have breakfast?
Flowchart

2. Determining if you will be allowed


to watch
Put Shampoo PG - 13 Movie.

Step 1: Start.
Yes
Step 2: Read age.
Step 3: If age is greater than or
No
equal 13, the person is allowed to
watch Jurassic Park, or else the
Have breakfast? person is not allowed.
Step 4: Stop.
Start
Flowchart

Input X

Put Shampoo
Input Y Determine if the sum of two
numbers is greater than or equal to
100 or not.
Z=X+Y

If Z >=100 Yes
Print Z is greater
than 100

No Have breakfast?

End
Print Z is less than 100
Search . . .

ACTIVITY

Create a flowchart that will


enter a student’s grade and
will show if it is “Passed” or
Failed.” Any grade lower
than 74.5 is considered
failed.
Search . . .

QUESTION
Search . . .

THANK YOU
END SLIDE

You might also like