You are on page 1of 1

PSEUDOCODE PROBLEMS #1

1. The owner of a large business wishes to use a computer to print the paycheques for all of his
employees. He uses the formula: Net Pay = Gross Pay - Deductions to calculate the amount of
each cheque. Write a pseudocode solution that reads in the employee's name, hours worked, rate
of pay, and deductions, and prints a cheque containing the employee's name and net pay. There
are 150 employees.

2. There are 35 students at Albright High School in the computer studies class. Write a
pseudocode solution which would read in each student record (containing the student's name and
mark) and would calculate the class average.

3. An office secretary worked 40 hours last week at a rate of $16.50 per hour. Deductions are 27%
of gross pay. Write a pseudocode solution which would print her net pay.

4. You have a deck of cards with three variables (A,B,C) on each one. Each of these variables has a
numeric value. Write a pseudocode solution which will calculate (A+B)/C, and print only the
positive answers.

5. The Toronto Police wants a list of criminals in the computer records who have been convicted
of theft. The file contains the name, offence, and conviction date. The offences are listed in the
records as T (theft), A (arson), and H (homicide). Write a pseudocode solution which will produce
a list which contains the name and conviction date of those who were arrested for theft since
January 1, 2000.

You might also like