1. 首页
  2. 编程语言
  3. Java
  4. java实验2.3(计算工资)

java实验2.3(计算工资)

上传者: 2021-04-22 00:46:43上传 RAR文件 3.85KB 热度 10次
Write a Java payroll program called Payroll.java that determines pay and taxes. Set the following variables: pay = $25 per hour hoursWorked = 40 Calculate grossPay by multiplying pay * hoursWorked. Calculate taxesWithheld by multiplying grossPay * .15. Calculate netPay by subtracting taxesWithheld from grossPay. Display all variables. Output: Gross pay: $1000.0 Withholding tax: $150.0 Net pay: $850.0
下载地址
用户评论