11/13/2022 0 Comments Program to find gross salary in java![]() ![]() Public void set(String firstName, String lastName, String id, double hoursWorked, double payRate, double grossPay, double netPay) This.firstName=firstName this.lastName=lastName this.id=id this.hoursWorked=hoursWorked this.payRate=payRate Public EmployeePayroll(String firstName, String lasName, String id, double hoursWorked, double payRate) Private double hoursWorked, payRate, grossPay, netPay, tax įirstName="" lastName="" id="" hoursWorked=0 payRate=0 please help :)īelow is the first part (EmployeePayroll.java) i can post the other part if you want me to(TestEmployeePayroll.java) public class EmployeePayroll Iv made the program and it runs fine but it always calculates grosspay and netpay as 0.0 everything else (firstname etc shows up fine) shows up fine i cant figure out what isnt working properly. ![]() Hey all iv have an assignment(wrtie an employee payroll program) which iv seen alot of other people have posted about so sorry for bringing it up again but im stuck. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |