java实验2.3(计算工资)

时间:2014-01-31 13:47:23
【文件属性】:

文件名称:java实验2.3(计算工资)

文件大小:4KB

文件格式:RAR

更新时间:2014-01-31 13:47:23

Payroll.java

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


【文件预览】:
实验2.3
----.project(385B)
----bin()
--------NetPay.class(715B)
--------GrossPay_and_Taxes.class(963B)
--------Payroll.class(564B)
----.settings()
--------org.eclipse.jdt.core.prefs(629B)
----src()
--------Payroll.java(280B)
--------NetPay.java(204B)
--------GrossPay_and_Taxes.java(398B)
----.classpath(301B)

网友评论