Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a class Employee that has the attributes first name, last name, Job title, salary, phone number, address, and Employee ID. First name, last name,

image text in transcribed
image text in transcribed
Create a class Employee that has the attributes first name, last name, Job title, salary, phone number, address, and Employee ID. First name, last name, and address are all of type string, salary is of type double, and phone number is of type integer. ID must be defined as a separate class called EmployeelD. It has an 8-digit number that consists of three parts. The first digit (left to right) represent the century of employment if it was before 2000 then it is 1 else it is 2 then the second two digits represent the year of employment. The last 5 digits represents a serial number. JobTitle is of type enum, each type has job title code (String) and hour wage (double) that is related to that code. The types are listed in the following table Job Title Consultant C ProjectManager PM Engineer ENG Technician TECH Worker Driver Coordinator CORD Job Title Code Hour Wage 30 20 17.5 15 10 10 12.5 You should create an application class Employeelnfo that asks the user to enter the number of employees he/she wishes to input/view, create a reference array of type Employee, enter employees' information and then view the information of all the employee entered. The job title is entered as a code. For the salary, the program should ask the user to enter the number of projects the employee has worked on this month, and then the number of hours he worked on each of the projects. The program then calculates the salary using the following formula: The hourly age is taken from the JobTitle Enumeration type Create a class Employee that has the attributes first name, last name, Job title, salary, phone number, address, and Employee ID. First name, last name, and address are all of type string, salary is of type double, and phone number is of type integer. ID must be defined as a separate class called EmployeelD. It has an 8-digit number that consists of three parts. The first digit (left to right) represent the century of employment if it was before 2000 then it is 1 else it is 2 then the second two digits represent the year of employment. The last 5 digits represents a serial number. JobTitle is of type enum, each type has job title code (String) and hour wage (double) that is related to that code. The types are listed in the following table Job Title Consultant C ProjectManager PM Engineer ENG Technician TECH Worker Driver Coordinator CORD Job Title Code Hour Wage 30 20 17.5 15 10 10 12.5 You should create an application class Employeelnfo that asks the user to enter the number of employees he/she wishes to input/view, create a reference array of type Employee, enter employees' information and then view the information of all the employee entered. The job title is entered as a code. For the salary, the program should ask the user to enter the number of projects the employee has worked on this month, and then the number of hours he worked on each of the projects. The program then calculates the salary using the following formula: The hourly age is taken from the JobTitle Enumeration type

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 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

More Books

Students also viewed these Databases questions

Question

b. To what extent should the hands be used in communicating?

Answered: 1 week ago

Question

Describe a persuasive message.

Answered: 1 week ago

Question

Identify and use the five steps for conducting research.

Answered: 1 week ago

Question

List the goals of a persuasive message.

Answered: 1 week ago