Professional Documents
Culture Documents
(Computer Programming) : Technical-Summative Assessment
(Computer Programming) : Technical-Summative Assessment
(COMPUTER PROGRAMMING)
TECHNICAL-SUMMATIVE ASSESSMENT
1
INTRODUCTION TO PROGRAMMING AND PROGRAM
LOGIC DESIGN FORMULATION
Section: DB01
Professor: Mr. Rene Christopher Tio
I. PROGRAM OUTCOME/S (PO) ADDRESSED BY THE LABORATORY EXERCISE
Design, implement and evaluate computer-based systems or applications to meet desired needs and
requirements.
1. Write a pseudocode and draw a flowchart to compute the corresponding area of the circle and print
out the value of the radius and the area.
Pseudocode:
START
ENTER: R
COMPUTE:
PRINT: R and A
END
START
ENTER:
R
𝐴 𝜋𝑟
PRINT:
R and A
END
2. The ABC Manufacturing Company plans to give a year-end bonus to each of its employee. Write a
pseudocode and draw a flowchart which will compute the bonus of an employees. Consider the
following criteria: If the employee’s monthly salary is less than 10,000 pesos, the bonus is 25% of the
salary; for the employees with salaries greater than 10,000 pesos the bonus is 2,000 pesos. Print out
the name and corresponding bonus of the employee.
Pseudocode:
START
ENTER: MonthlySalary,Bonus
COMPUTE: MonthlySalary and Bonus
IF: Salary < 10,000
THEN: 10,000*.25
ELSEIF: Salary > 10,000
THEN: 10,000 + 2,000
PRINT: Name of each employee and its bonus
ENDIF
START
ENTER:
MonthlySalary,
Bonus
IF: IF:
YES NO
10,000*.25 Salary< Salary>
10,000 10,000
10,000 + 2,000
PRINT:
A Name of each
employees and
its bonus
ENDIF
Pseudocode:
START
ENTER: NA and NB
COMPUTE: NA and NB
IF: NA and NB is negative
THEN: C=A+B
ELSEIF: NA and NB is zero
THEN: C=2A+2B
ELSE: NA and NB is positive
THEN: C=A*B
PRINT: Values of NA, NB and NC
ENDIF
START
ENTER:
NA and NB
YES
C=A*B C=2A+2B
C=A+B
A A
PRINT:
Values of
NA, NB and A
NC
ENDIF
2. Importance of Pseudocode?
Making pseudocode is important because it allows the programmer to work out their thoughts for the
organization or sequence of the program.
3. Importance of Flowchart?
Flowchart is important especially to the programmers because it can help them to develop codes. They can
surely see the data on where it will end. Also, it can help the programmer to distinguish the area of the
problem.
References:
Pseudocode and Flowcharts. (n.d.). Retrieved from Owlnet.rice.edu:
http://www.owlnet.rice.edu/~ceng303/manuals/fortran/FOR3_3.html
Stanley, L. (n.d.). Study.com. Retrieved from Programming Flowcharts: Types, Advantages &
Examples: https://study.com/academy/lesson/programming-flowcharts-types-advantages-
examples.html#:~:text=Flow%20charts%20help%20programmers%20develop,code%20t
hat%20is%20not%20working.
Why need of programming language? (n.d.). Retrieved from Master Software Solutions:
https://www.mastersoftwaresolutions.com/why-need-of-programing-language/