Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Old MathJax webview Java Programming Object oriented programming Consider the following scenario for GJU employment system: . Suppose, there are two categories for the employee

Old MathJax webview

Java Programming

image text in transcribed

image text in transcribed

Object oriented programming

Consider the following scenario for GJU employment system: . Suppose, there are two categories for the employee (administrative or academic), each has constant filed called rate. The rate for the administrator is 50 JOD, while the rate for the academic is 100 JOD. Suppose, the department head has load from both categories (administrative and academic). Suppose the max load for the academic is 15 hours. While the department head has reduced load (vary depending on the duties). The salary of the department head is as following: Teaching load = max load - reduced load. The net salary = ( Teaching load * academic rate) + (reduced load * administrator rate) Your task is to implement a java program to properly do the described scenario above, consider the following chart: Luce Read interface Administrator MENU Alatest Rate Int Salary: PM u vald Frinta void F ass Dapatmenlead Name String Denementaresting Reducedant Class Department Head: Implement a class DepartmentHead that implements academic and administrator interfaces with the following characteristics: Attributes: name String DepName String Reducedload int Constructor: The constructor to initialize all fields. Methods: Override the method Salary in interface ( Academic) to compute the net salary as described above. Override the method Print in Interface (Administrator) to print the information of the department head. A method called Check to check whether the department head has no reduced load

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions