PayrollCalc.java - Rajan Chand id 2018001537 public class...

This preview shows page 1 - 2 out of 2 pages.

// Rajan Chand // id: 2018001537 public class PayrollCalc { private String name; private double hoursWorked; private double hourlyPayRate; private static final double fnpf = 0.08; public PayrollCalc() { } public PayrollCalc(String n, double hw, double hpr) { this.name = n; this.hoursWorked = hw; this.hourlyPayRate = hpr; } public double grossPay(double hourlyRate, double hrsWorked) { double grossPay = (hourlyRate * hrsWorked); return grossPay; } public double fnpf(double gross) { return fnpf * gross;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture