FLOWCHARTING
FLOWCHARTING
FLOWCHARTING
Presentation 20XX 1
title
RULES IN NAMING VARIABLES:
Presentation 20XX 3
title
VARIABLE TYPES
STRING
it stores a list of various characters that can be
name, list of numbers, a sentence, a
paragraph, or any character.
Strings are always enclosed in quotes(“”), for
example: “Juan B. Cruz” and “25”
Presentation 20XX 4
title
VARIABLE TYPES
BOOLEAN
Presentation 20XX 5
title
VARIABLES IN EXPRESSIONS
PEMDAS- Parenthesis,
Exponents, Multiplication, Division,
Addition, and Subtraction
When several operations take place within the same equation, some operations are executed before
others.
Operations are executed in the following order:
Presentation 20XX 6
title
a. Parentheses or
b. Exponents and roots
brackets
c. Multiplication and
division
d. Addition and subtraction
Presentation 20XX 7
title
S M A L L BASIC
Small Basic combines a friendly environment
with a very simple language and a rich and
S impl engaging set of libraries to make your
programs and games pop! In a matter of few
e lines of code, you will be well on your way
to
creating your very own game!
Share your programs with your
l on their computer.
Learn programming concepts starting with the
In this program, we’ve introduced another new useful operation, Math.Remainder. And yes, as
you already might have figured out, Math.Remainder will divide the first number by the
second number and then give back the remainder.
Create a code with adAdinsg snuimgbnerms . Wenritet:in a ½
sheet of paper.
Activity 3: Hands-on: Even or Odd
Endless execution: using Goto statement
TextWindow.Write("Enter a number: ")
num = TextWindow.ReadNumber()
remainder = Math.Remainder(num, 2)
If (remainder = 0) Then
TextWindow.WriteLine("The number is Even")
Else
TextWindow.WriteLine("The number is Odd")
EndIf
Goto begin
Body Fat
In thisPercentage
Lesson, you should be able to:
For Men:
TextWindow.
3. Continue the program by typing the following:
TextWindow.WriteLine(“Type if you are male or female:”)
gender= TextWindow.Read()
4.Use the If Statement to determine if the gender is male or
female. Remember, each has a different formula in getting the
body fat percentage.
Conditions help you build programming logic.
The most commonly used condition is the If
End
Start
SELECTION
Conditions
Branching Forwards
End
Start
Pretes
REPETITION t
Loop
T End
Start
Pretes
REPETITION t
Loop
F
End
Examples of
Flowchartin
g
EXAMPLE OF
FLOWCHARTING
EXAMPLE OF
FLOWCHARTING
EXAMPLE OF
FLOWCHARTIN
G
EXAMPLE OF
FLOWCHARTING
Examples of
Flowchartin
g
ACTIVITY
S1+S2+S3+S4
If Ave >
60
Fai Pas
l s
End