Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions