Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ignore the red line Problem Create a class Employee bu bs atibutes first nae, la

ID: 3700975 • Letter: I

Question

ignore the red line

Problem Create a class Employee bu bs atibutes first nae, last ue, Job tile, alary. phooe mbcr. address, and Enmrployce ID. First namc, last nane, and address are all of type string. salary is of type double, and pboae umbe is of type integ.ID must be defned as a three parts. The first digit left to righr) renresent the cenry af employment if it was before 2000 then it is clac it is 2 then the socond two digits repreacat the ycar of employment The last 5 digita represent a serial nmber JabTite is of type enam, cach type las job itle code (Sting) and hou wage (double tbat is elaled to uat code. Te types are lised in the following table class culled It has an S-digit antbe: thst consists of ob Tile Job Title Code Hour Wage Pro PM Worker Driver Cooedinaror CORD You should create an application class Employeclnfo that asks the user to enter the umber ofemployees he she wishes to input vew. create a reference array oftype Employee, enter employees information and then view the infinmatian of all the employee entered The job title is entered as a code For the salary, the program shld ask the user to enter the number of projects the employec has worked on this month, and then the number of hours ue wked va each of tbe pojts. The progra ten calculates tsalary using te following fotula. Salary wagehaurs, The hourly age is taken fote JebTitle Eaumaatica type. Samplo Rnn: Employec 1 Firat Name: Ali Employe 1 Laat Name: Mohamed Enployee 1 Teb Title Code: 2Ca Enployee 1 Fhone »umoeri 9997010 Employe 1 Number of projecta: 3 Employee 1 Frojeot 1 houra: 20 Enployee 1 Frojeot 2 hours: 50 Enployee 1 Froject 3 hoursi 20 Employee 3 rirst 2cam5:? Enployee 2 Fhone umoer 991111 Employee 2 Address : A?hest -lock 1 Employee 2 Year of mploment: 2000 Employee3 Nuber of projects: 2 tmplaye3 Frojest 1 hour: 30 ploys 3 Job Tisle CodD Employee Phone Kunbez: E622961 nployee 2 rear of Enploymenti 2010 nplcyee3 umber of Froject 4 Zmployee 3 Projec? 1 hours: 20 ploys 3 Proje 3 hour 100 Jt tit1: Technician Ruur wag: 15 alory 1250 Name 2:Jawad D: 20000002 l: i1: Engineer our wage: 17.5 Jalery: 2100 Nams 3: Mohammed Rafig Tob title: Drivet 8alory 1100

Explanation / Answer

Please find the Java code below along with the execution output. Proper description is provided in each class/method.

JAVA CLASSES :

==============

==============

============

=====================

OUTPUT

========

Enter number of employees: 3
Employee 1 First Name: Ali
Employee 1 Last Name: Mohammed
Employee 1 Job Title Code: TECH
Employee 1 Phone Number: 9997010
Employee 1 Address: Kuwait - Block 12
Employee 1 Year of Employment: 1998
Employee 1 Number of Projects: 3
Employee 1 Project 1 hour: 20
Employee 1 Project 2 hour: 50
Employee 1 Project 3 hour: 20

Employee 2 First Name: Raef
Employee 2 Last Name: Jawad
Employee 2 Job Title Code: ENG
Employee 2 Phone Number: 9997111
Employee 2 Address: Mesraf - Block 1
Employee 2 Year of Employment: 2000
Employee 2 Number of Projects: 2
Employee 2 Project 1 hour: 20
Employee 2 Project 2 hour: 100

Employee 3 First Name: Mohammed
Employee 3 Last Name: Rafiq
Employee 3 Job Title Code: D
Employee 3 Phone Number: 66554643
Employee 3 Address: Mesraf - Block 1
Employee 3 Year of Employment: 2010
Employee 3 Number of Projects: 4
Employee 3 Project 1 hour: 20
Employee 3 Project 2 hour: 100
Employee 3 Project 3 hour: 10
Employee 3 Project 4 hour: 10

Employees Are:
Name 1: Ali Mohammed
ID: 19800001
Phone Number: 9997010
Address: Kuwait - Block 12
Job Title: Technician
Hour wage: 15.0
Salary: 1350.0

Name 2: Raef Jawad
ID: 20000002
Phone Number: 9997111
Address: Mesraf - Block 1
Job Title: Engineer
Hour wage: 17.5
Salary: 2100.0

Name 3: Mohammed Rafiq
ID: 21000003
Phone Number: 66554643
Address: Mesraf - Block 1
Job Title: Driver
Hour wage: 10.0
Salary: 1400.0