Professional Documents
Culture Documents
Palmos CC102 Seatwork2
Palmos CC102 Seatwork2
INSTRUCTIONS: Read the given question below then write your answer after the question. Named your file
as LASTNAME_CC102_SEATWORK1.
Seatwork No. 2:
PSEUDOCODE
1. BEGIN
2. NUMBER EG
3. INPUT "Enter Grade"
4. OUTPUT EG
5. If EG is less than equal to 100 and EG is greater than equal to 90 THEN
6. E=1
7. OUTPUT E
8. If E is less than equal to 3 THEN
9. Print "Passed"
10. ELSE
11. If EG is less than equal to 89 and EG is greater than equal to 80 THEN
12. E=2
13. OUTPUT E
14. If E is less than equal to 3 THEN
15. Print "Passed"
16. ELSE
17. If EG is less than equal to 79 and EG is greater than equal to 75 THEN
18. E=3
19. OUTPUT E
20. If E is less than equal to 3 THEN
21. Print "Passed"
22. ELSE
23. If EG is less than equal to 74 and EG is greater than equal to 50 THEN
24. E=5
25. OUTPUT E
26. If E is less than equal to 3 THEN
27. Print "Passed"
28. ELSE
29. Print "Failed"
30. END
QUEZON CITY UNIVERSITY
COLLEGE OF COMPUTER STUDIES
INFORMATION TECHNOLOGY DEPARTMENT
ALGORITHM
Step 1:Start
Step 2:Declare variable EG
Step 3:Read variable EG
Step 4:Enter Grade to EG and assign the equivalent of it to E
Step 5:
If EG <= 100 and EG >= 90 THEN
print E “1”
If E is <= 3
Display Remarks as "Passed"
Else
If EG <= 89 and EG >= 80 THEN
print E “2”
If E is <= 3
Display Remarks as "Passed"
Else
If EG <= 79 and EG >= 75 THEN
print E “3”
If E is <= 3
Display Remarks as "Passed"
Else
If EG <= 73 and EG >= 50 THEN
print E “5”
If E is <= 3
Display Remarks as "Passed"
Else
Display Remarks as "Failed"
Step 6: Stop
Grading System
Enter Grade
Equivalent
Remarks