You are on page 1of 2

Munro College Department of Computing and Information Technology

Computer Science
Assignment #2
__________________________________________________________________
INSTRUCTIONS: Write algorithms to represent the problems below. This
assignment should be on folder leaves and presented individually. Any two
students with identical assignments will obtain a zero (0) for this assessment!
Answer all questions. Each question values 10 marks

1. Write an algorithm to read 10 employees name and number, their income


generated and the bonus earned by each employee. Once the income
generated is greater than or equal to $10,000, a bonus of 20% is given. If
income generated is greater than or equal to $8000 but less than $10,000, a
15% bonus is given. If income generated is greater than or equal to $5000
but less than $8,000, a 10% bonus is given. If income generated is less than
$5000, a 3% bonus is given. The program must output the employee’s name
and bonus

2. Mr. John Prosser teaches Information Technology and stores the grades for
his 20 students. For the school’s annual awards ceremony all students with
grades of 75 or higher are given a scholarship and any grade below 75
receive an award. Mr. Prosser’s would like a printed list of all the names and
grades for the students who qualifies for scholarship and awards. Write a
structured pseudocode algorithm that will satisfy all of Mr. Prosser’s
programming needs. ….[10 marks]

3. Write pseudocode algorithm to read in a set of numbers. Count the number


of odd and even numbers entered. Also, find the sum of all the positive
numbers and print the results. The algorithm should terminate when a 1 is
entered.

4. Design an algorithm that will prompt for and receive your age in years and
calculate and display your age in months. If the calculated month’s figure is
Munro College Department of Computing and Information Technology

more than 250, ten asterisks should also appear beside the month figure.
Your program is to continue processing until a sentinel of 999 is entered.
....[10 points]

***Good Luck***

You might also like