Lecture Activities 4.1 To 4.7
Lecture Activities 4.1 To 4.7
Lecture Activities 4.1 To 4.7
Assessment
Instructions: Create a program plan, an algorithm, and draw a flowchart that uses
sequence structure, that would accept a radius of a circle and compute its area,
circumference and diameter. Use constant declaration.
Area = pi * radius2
Circumference = 2 * pi * radius
Diameter = 2 * radius
Program Plan
Required Output
Available Input
Processing Requirements
Algorithm
Flowchart
Lecture Activity 4.2: Flowcharting (Sequence Structure)
Instructions: Create a program plan, an algorithm, and draw a flowchart that uses
sequence structure, that would accept two (2) numbers represented by X and Y. Print
the two numbers after interchanging their values.
Program Plan
Required Output
Available Input
Processing Requirements
Algorithm
Flowchart
Good Luck!
Assessment
Given is GROSS_PAY. Draw a flowchart that will compute for DEDUCTIONS and
NET_PAY for employee’s weekly payroll. Consider the following conditions:
Program Plan
Required Output
Available Input
Processing Requirements
Algorithm
Flowchart
Program Plan
Required Output
Available Input
Processing Requirements
Algorithm
Flowchart
Good Luck!
Assessment
Name: ____________________________________ Year Level: _____________
Write an algorithm and draw a flowchart that will convert a given decimal number (N10)
to its equivalent binary number (N2).
Program Plan
Required Output
Available Input
Processing Requirements
Algorithm
Flowchart
Lecture Activity 4.6: Flowcharting (Iteration Structure)
An electric company bases its charges on two rates, customers are charged
P25.00 per kilowatt-hour for the first 300 kilowatt-hours used in a month and P30.00 each
for all kilowatt-hours used thereafter. Compute for the amount due from a customer
after reading the kilowatt-hours used. Assume that there are 100 records of customers.
Program Plan
Required Output
Available Input
Processing Requirements
Algorithm
Flowchart
Good Luck!
Assessment
Instruction: Create a program plan, algorithm, flowchart and pseudocode for the
following cases:
A department store classifies its credit card holders as to local, national and
international. A local card holder resides in Metro Manila, a national, anywhere in the
Philippines and an international, anywhere in the world. The programmer must store a
code 01, 02 and 03 for local, national and international card holders respectively. The
program is to read the cards and store the proper code in each card.
Program Plan
Required Output
Available Input
Processing Requirements
Algorithm
PSEUDOCODE