Question
public class Salary { private static int hour; private static int day; private static int Offdays; public int getHour() { return hour; } public void
public class Salary { private static int hour; private static int day; private static int Offdays;
public int getHour() { return hour; }
public void setHour(int hour) { this.hour = hour; }
public int getDay() { return day; }
public void setDay(int day) { this.day = day; }
public int getOffdays() { return Offdays; }
public void setOffdays(int Offdays) { this.Offdays = Offdays; } public int Calculatehourly() { int hourlyAmount=32; int totalAmount=this.hour*hourlyAmount; return totalAmount; } public int CalculateDaily() { int dailyAmount=180; int totalAmount=this.day*dailyAmount; return totalAmount; } public int CalculatePermanent() { int perminentAmount=4200; return perminentAmount; } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started