Question: [COMPUTER SCIENCE HELP (1/3)] Task 1: Create an employee Class that encapsulates the concept of an employee. The attributes of an employee are: id a

[COMPUTER SCIENCE HELP (1/3)]

Task 1:

Create an employee Class that encapsulates the concept of an employee. The attributes of an employee are:

id

a random integer in the range 0 to 99999999 (i.e. like a social security number)

we will ignore the fact that we may get duplicate id numbers

name

a String of a random length between 5 and 10 characters (inclusive) made up of a random set of lower case characters

dept

a random integer in the range 1 to 5 (inclusive)

hired

a random integer in the range 2008 to 2018 (inclusive)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!