联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Python编程Python编程

日期:2022-04-07 11:02

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.


版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp