首页 > > 详细

data编程辅导、Java,Python程序辅导

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 that would read in each student record (containing the student's name and
mark) and would calculate the class average.
3. 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. Use end of file to stop looping. You do not know the number of cards.
4. 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, 2010. Use end of file to stop looping.
Each question is worth 10 marks. You must prompt the user for each input. Do not make any
assumptions. Please follow proper pseudo code. When looping, please show clearly the body of
code that you are looping and when you are exiting.

联系我们 - QQ: 99515681 微信:codinghelp
© 2021 www.7daixie.com
程序辅导网!