0% found this document useful (0 votes)
6 views2 pages

Programming Worksheet

The document contains a series of programming tasks, including writing pseudocode for user input handling, grading systems, loop conversions, and calculations for sums, bonuses, and simple interest. It outlines specific requirements for each task, such as determining pass/fail based on exam scores and calculating bonuses based on years of service. Additionally, it emphasizes the use of pseudocode to express the logic of these programming challenges.

Uploaded by

piyushee24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Programming Worksheet

The document contains a series of programming tasks, including writing pseudocode for user input handling, grading systems, loop conversions, and calculations for sums, bonuses, and simple interest. It outlines specific requirements for each task, such as determining pass/fail based on exam scores and calculating bonuses based on years of service. Additionally, it emphasizes the use of pseudocode to express the logic of these programming challenges.

Uploaded by

piyushee24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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.

You might also like