Professional Documents
Culture Documents
New Text Document
New Text Document
println("Enter number of hours worked per month"); Scanner scan= new Scanner(System.in); hrs = scan.nextInt(); grossPay = 12 * hrs; } double calculateTax() { taxAmount= 0.15 * grossPay; return taxAmount; } double calculateNetPay() { netPay = grossPay - taxAmount; return netPay; } }