Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need help with this progam since I'm a beginner programmer. This program is on java using the eclipse IDLE please and the latest version

i need help with this progam since I'm a beginner programmer. This program is on java using the eclipse IDLE please and the latest version too.

image text in transcribedimage text in transcribed

1. Employee Class Write a class named Employee that has the following fields: name. The name field is a string object that holds the employee's name. idNumber. The idNumber is an int variable that holds the employee's ID number. department. The department field is a string object that holds the name of the department where the employee works. position. The position field is a string object that holds the employee's job title. 1 . Write appropriate mutator methods that store values in these fields, and accessor methods that return the values in these fields. Once you have written the class, write a separate program that creates three Employee objects to hold the following data: Name ID Number Department Position Susan Meyers 47899 Accounting Vice President Mark Jones 39119 IT Programmer Joy Rogers 81774 Manufacturing Engineer The program should store this data in the three objects, then display the data for each employee on the screen. Package Ex... @ Javadoc e Declaration B Console Employee.java package employeassigment; employeassigment public class Employee { =\JRE System Library (Ja private String name; src private int idNumber; employeassigment 6 private String department ; 7 Employee.java private String position; 8@ public static void main(String name, int idNumber, String department, String position) { 9 10 this.name = name; 11 this.idNumber = idNumber; 12 this.department = department; 13 this position = position; 14 } 150 public String getName() { 16 return name; 17 } 180 public void setName(String name) { 19 this.name = name; 20 } 210 public int getIdNumber() { 22 return idNumber; 23 } 240 public void setIdNumber(int idNumber) { 25 this.idNumber = idNumber; 26 } 27e public String getDepartment() { 28 return department; 29 } 300 public void setDepartment(String department) { 31 this.department = department; 32 } 330 public String getPosition() { 34 return position; 35 } 360 public void setPosition(String position) { 37 this.position = position; 38 } 39 A400 public String toString() { 41 return "Employee [name=" + name + ", idNumber=" + idNumber + ", department=" + department + ", position=" 42 + position + "]"; 43 } 44 45 46 } 47 48

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

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions