Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

RNZ Company hires two categories of programmer which are full-time and part-time programmers. This company requests a computer system to store the data and calculate

RNZ Company hires two categories of programmer which are full-time and part-time programmers. This company requests a computer system to store the data and calculate the payment for these programmers. Given the UML diagram for the system.

Given the detail for the Programmer class which is an abstract class.

Attribute:

name: String ICNumber:String

age:int

Behavior:

/ormal constructor

//retriever method

//tostring method calcPayment (): double //abstract method Given the detail for the Fulltime class:

Attribute:

year Experience:int

overTimeHour: int

Behavior:

/ormal constructor //retriever method

//toString method

//calcPayment ()

/*this method will calculate and return the payment for the

FullTime class. The calculation is based on the given detail.

image text in transcribed

Full time programmer will receive an extra of RM 500.00 for every

one hour of overtime, but it is limited up to 5 hours*/ Given the detail for the Part Time class:

Attribute:

numOfModule: int /umber of modules

Behavior:

/ormal constructor //retriever method

//toString method

//calcPayment ()

/*This method will calculate and return the programmer. They will pay RM 1500 for each module. */

payment for part time

Your program should have the following item: a) Class definition for Programmer, PartTime and FullTime.

b) Definition of method calcPayment ()

c) Define a main method that can do the following tasks: i. Create an array to store 10 objects of Programmer. ii. Insert and store data into the array.

iii. Display all programmer information.

iv. Display the payment should be paid for each full time programmer and total payment for all full

time programmers. v. Count and display the number of full time programmer who has experience more than 3 years.

vi. Display all information and the highest number of modules by the part time programmer.

solve in java

\begin{tabular}{|l|l|} \hline Year Experience & Payment (RM) \\ \hline Less than 3 years & 3000.00 \\ \hline More than 3 years and less than or equal to 6 years & 6000.00 \\ \hline More than 6 years and less than or equal to 10 years & 8000.00 \\ \hline More than 10 years & 10000.00 \\ \hline \end{tabular}

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

Advances In Databases And Information Systems Second East European Symposium Adbis 98 Poznan Poland September 1998 Proceedings Lncs 1475

Authors: Witold Litwin ,Tadeusz Morzy ,Gottfried Vossen

1st Edition

3540649247, 978-3540649243

More Books

Students also viewed these Databases questions