Programming – Worksheet
1. Write pseudocode for a program that:
• asks the user to enter their exam score.
• Outputs "Pass" if the score is 50 or above, otherwise outputs "Fail".
2. Modify the above pseudocode to include a grade system:
• 90 and above: "A"
• 80 to 89: "B"
• 70 to 79: "C"
• Below 70: "Fail"
3. Convert the following WHILE loop into a FOR loop:
4. Write a pseudocode program that calculates the sum of all even numbers from 1 to 100.
5. A company gives bonuses based on the number of years an employee has worked:
• More than 10 years: 10% bonus
• 5 to 10 years: 5% bonus
• Less than 5 years: 2% bonus Write pseudocode that calculates and displays the
bonus amount for an employee based on their salary and years worked.
6. A bank requires a program to calculate simple interest using the formula:
Interest = (Principal × Rate × Time) / 100
Write pseudocode that:
• Takes inputs for Principal, Rate, and Time.
• Calculates and outputs the Interest.