You are on page 1of 4

.Name: Lumantas, Ariel N.

Subject: Computer Programming


Teacher: Mrs. Meliza Chatto

PERFORMANCE – BASED ASSESSMENT

A. Desk – checking the algorithm. (Output: computations)


1.) Desk – check the first algorithm twice using the following data:
1 st check 2 nd check
Current salary 32,600 54,700
Raise percentage: O.05 (5%) 0.02 (2%)

Algorithm
1. Enter the current salary and raise percentage
2. Calculate the raise by multiplying the current salary by the raise percentage
3. Calculate the new salary by adding the raise to the current salary
4. Display the raise and the new salary
1 st check 2 nd check
Current salary = 32,600 = 54,700
Raise percentage = 0.05 = 0.02
= 32,600 × 0.05 = 54, 700 × 0.02
= 1630 = 1,094
= 32,600 + 1630 = 54, 700 + 1094
New Salary : = 34,230 New Salary : = 55, 794

2.) Desk – check the first algorithm twice using the following data:
1 st check 2 nd check
Midterm score : 75 Midterm : 98
Final score : 83 final score : 93
Algorithm
1. Enter the midterm and final score
2. Calculate the sum by adding together the midterm and final score
3. Calculate the average score by dividing the sum by 2
4. Display the average score
1 st check 2 nd check
= 75 = 98
= 83 = 93
= 75 + 83 = 98 + 93
= 158 = 191
= 158/2 = 191/2
Answer = 79 Answer = 95.5
B. Plan and create. (Outputs: IPO chart, algorithm, flowchart)
C. Writing and debugging source code. ( Outputs: Source code, program result)

1.) Write a c++ program that outputs the following text on screen:
Oh What
A happy day !
Oh yes,
What a happy day !

Use the manipulator endl where appropriate.

2.) The following program contains several errors, resolve the errors and rewrite the
corrected source code and determine the result or output.

You might also like