Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Employee{
- private String name;
- private double hoursWorked;
- private double hourlyRate;
- private double fedTaxRate;
- private double stateTaxRate;
- private String address;
- private String phone;
- private String SSN;
- double y = 1;
- Employee(String n, double w, double p, double ft, double st, String ad, String ph, String sn) {
- this.name = n;
- this.hoursWorked = w;
- this.hourlyRate = p;
- this.fedTaxRate = ft;
- this.stateTaxRate = st;
- this.address = ad;
- this.phone = ph;
- this.SSN = sn;
- }
- public double grossPay(double hr, double hw) {
- double grossPay = (hourlyRate * hoursWorked);
- return grossPay;
- }
- public void setFedTax(double fedTaxRate) {
- this.fedTaxRate = fedTaxRate;
- }
- public double getFedTax() {
- return fedTaxRate;
- }
- public void setStateTax(double stateTaxRate) {
- this.stateTaxRate = stateTaxRate;
- }
- public double getStateTax() {
- return stateTaxRate;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public double getHoursWorked() {
- return hoursWorked;
- }
- public void setHoursWorked(double hoursWorked) {
- this.hoursWorked = hoursWorked;
- }
- public double getHourlyPayRate() {
- return hourlyRate;
- }
- public void setHourlyPayRate(double hourlyRate) {
- this.hourlyRate = hourlyRate;
- }
- public String getAddress(){
- return address;
- }
- public void setAddress(String address) {
- this.address = address;
- }
- public String getPhone(){
- return phone;
- }
- public void setPhone(String phone) {
- this.phone = phone;
- }
- public String getSSN() {
- return SSN;
- }
- public void setSSN(String SSN) {
- this.SSN = SSN;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement