0% found this document useful (0 votes)
91 views

Pseudocode #1

1. The pseudocode solution reads in employee data including name, hours worked, pay rate, and deductions. It then calculates net pay using the formula Net Pay = Gross Pay - Deductions and prints each employee's cheque with their name and net pay amount. There are 150 employees. 2. The pseudocode solution reads in student records with each student's name and mark. It calculates the average mark for the 35 students in the computer studies class. 3. The pseudocode solution calculates and prints the net pay for an office secretary who worked 40 hours at $16.50 per hour with 27% deductions from gross pay.

Uploaded by

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

Pseudocode #1

1. The pseudocode solution reads in employee data including name, hours worked, pay rate, and deductions. It then calculates net pay using the formula Net Pay = Gross Pay - Deductions and prints each employee's cheque with their name and net pay amount. There are 150 employees. 2. The pseudocode solution reads in student records with each student's name and mark. It calculates the average mark for the 35 students in the computer studies class. 3. The pseudocode solution calculates and prints the net pay for an office secretary who worked 40 hours at $16.50 per hour with 27% deductions from gross pay.

Uploaded by

Mike Scott
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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