AEC9 - Business Logic Activity 2-1-1: Algorithm Name: - Time/Days: - Block/Year: - Instructor
AEC9 - Business Logic Activity 2-1-1: Algorithm Name: - Time/Days: - Block/Year: - Instructor
AEC9 - Business Logic Activity 2-1-1: Algorithm Name: - Time/Days: - Block/Year: - Instructor
Chapter 2
Activity 2-1-1: Algorithm
1. Write a sequence of steps that will solve for the payable amount of Samsung 6 Edge; the
price is: P38,390.00; plus 3% interest rate. The customer is given a two mode of
payments, in six [6] or twelve [12] month terms.
AEC9 – Business Logic
Chapter 2
Activity 2-1-1: Pseudocode
Ans:
3. Write a sequence of steps that will compute and display the sum and product of two numbers.
format;
AEC9 – Business Logic
Chapter 2
Enrichment Exercise 2-1-1: Basic Control Structures
I. Identification. Select the best answer from the choices below. Write your answer for each item on
the space provided before the number.
__________1. A finite set of instructions that specify a sequence of operations to be carried out
in order to solve a specific problem.
__________2. It signifies the beginning and end of flowchart.
__________3. A graphical representation of algorithm.
__________4. It is used to connect blocks by exiting from one and entering another.
__________5. Every program involves a step of input, __________ and output as in the
program.
__________6. Process is executed from one to another in a straightforward manner.
__________7. A choice is provided between two alternatives.
__________8. It has one entrance and only two exits from the block.
__________9. It uses page number where the next part of the previous part of the flowchart is
located.
__________10. A type of variable that can hold a number.
__________11. It can hold letters of the alphabet and other special characters such as state =
“washington”.
__________12. It provides for the repetitive execution of an operation or routine while the
condition is true.
__________13. Also known as looping.
__________14. It refers to the locations in memory.
__________15. It reads data into the computer memory from an input device or data which is to
be passed from the memory to an output device.
1. 4.
__________________ __________________
2. 5.
__________________ __________________
3. 6.
__________________
__________________
7.
__________________
I. Problem Analysis. Identify the input, process and output of the following problem statements.
1. Read two (2) records in a computer. The first record will contain unit price and the second
number will contain quantity. Draw a flowchart that will compute and display the amount by
multiplying unit price and quantity.
Flowchart:
2. Draw a flowchart that will compute and display the area of a rectangle using the formula: Area
= Length * Width
Input Processing Output
Flowchart:
AEC9 – Business Logic
Chapter 2
POST TEST
Post-Test
I. Direction: Select the term from the table that best describes the statement below. Write the
corresponding Alphanumeric only in UPPERCASE. STRICTLY NO ERASURES IN ANY FORM!
(20 points)
_____1. A set of step-by-step instructions that tells or directs the computer what to do.
_____2. A step-by-step method of solving a problem.
_____3. An artificial and informal language that helps programmers develop algorithms.
_____4. Characteristic of algorithm which is expected to produce at least one result.
_____5. Characteristic of algorithm which should terminate after fixed number of steps.
_____6. A graphical representation and one of the processes in designing or planning the solution to
a problem.
_____7. It signifies the start and end of flowchart.
_____8. Characteristic of algorithm which must be clear and unambiguous.
_____9. It signifies the preparation of data.
_____10. Data are to be read into the computer memory from an input device or data are to be
passed from the memory to an output device.
_____11. This symbol performs any calculations.
_____12. It shows the entry or exit of the flowchart on the same page.
_____13. It signifies any decisions to be done.
_____14. It signifies the process that is to be executed next.
_____15. It designates entry or exit from one page when a flowchart requires more than one page.
_____16. The person who designs and writes the sequence of instructions.
_____17. This will implement the program with the use of programming language.
_____18. It will produce an ordered sequence of steps that describe solution of problem.
_____19. Give two advantages
_____20. of using a flowchart.
II. Direction: Draw inside the box the symbols of the following: (8 points)
7. off-page 8. Flowlines
connector
III. Direction: Write an algorithm and draw a flowchart for a program that calculates the sum of two
numbers entered by the user and display the result. (12 points – Algorithm 6 pts.,
Flowchart 6 pts.)
Assignment
For each of the following problem statements, write the algorithm, draw the flowchart
and write the pseudocode:
A. Problems (Sequence)
1. Draw a flowchart that will accept the length of the base and height of a triangle and print the
area. Use the formula: Area = (base * height) / 2
2. Draw a flowchart that accepts dollar value and print the equivalent peso value. The flowchart
will convert dollar to peso having an exchange rate of 1 is to 53.25.
3. Draw a flowchart that will convert Fahrenheit to Celsius using the formula:
Celsius = (5/9) * (Fahrenheit – 32) where Fahrenheit is 20.
4. Draw a flowchart that reads in three numbers num1, num2, num3 and determine which is
the largest.
5. Draw a flowchart that read unit price and quantity. Compute and display the amount by
multiplying unit price and quantity.