java实验2.3(计算工资)
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.rar
(预估有个9文件)
实验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
暂无评论