0% found this document useful (0 votes)
35 views

Logic Formulation

The document provides instructions and examples for computer programming activity #9 on logic formulation, which asks students to create algorithms and flowcharts to solve problems involving finding maximum/minimum/average of input numbers, determining if a number is odd or even, and calculating the area of a triangle given base and height inputs. The problems are presented with their corresponding algorithms and flowcharts as examples for students to follow. General instructions are given to read questions carefully, submit the activity in the assigned folder in PDF format with a specific filename.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Logic Formulation

The document provides instructions and examples for computer programming activity #9 on logic formulation, which asks students to create algorithms and flowcharts to solve problems involving finding maximum/minimum/average of input numbers, determining if a number is odd or even, and calculating the area of a triangle given base and height inputs. The problems are presented with their corresponding algorithms and flowcharts as examples for students to follow. General instructions are given to read questions carefully, submit the activity in the assigned folder in PDF format with a specific filename.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

ES 113-18 – Computer Programming

Activity # 9 – Logic Formulation

Student Name: (LN, FN, MI) Villanueva, Tremaine Patrick B.


Subject Code: ES113-18 Class Schedule: Monday & Wednesday
1pm

General Instructions:
 Read and understand the questions properly, and carefully perform the instructions for each part
 Submit this activity in the designated TASK FOLDER in NEUVLE
 Final file must be submitted in PDF Format using the filename, ACT9_LastName

Problem # 1 - Display the maximum, minimum, and average of 3 input numbers


Algorithm Flowchart

Step 1: Start Start


Step 2: Display “Enter a number 1, number 2, and
number 3”
Step 3: Operate the calculation of the maximum, Display “Enter a
minimum and average number 1, number 2
Step 4: Show the answer
and number 3”
Step 5: End

Operate the
calculation

Show the answer

End
Problem # 2 - Determine if the input number is ODD or EVEN
Algorithm Flowchart

Step 1: Start Start


Step 2: Read number
Step 3: If number is divisible by 2 g to step 4. Else
step 5 Read number
Step 4: Display “Even” and stop
Step 5: Display “odd” and stop

False
number÷ True
2==0

Display “odd” Display “even”

Stop Stop
Problem # 3 - Display the computed area of a triangle, wherein the base and height are inputs from the user
Algorithm Flowchart
Step 1: Start
Step 2: Display “Enter base and Enter height” Start
Step 3: If the base height are <0, set the area to
0.5*base*height
Step 4: Print area Display “Enter base,
Step 5: End Enter height”

Area = 0.5 *base*


height

Print area

Stop

You might also like