Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

IN JAVA Ask the user for three employees. Store the data into three employee objects (use the Employee class from the previous question). Display those

IN JAVA

Ask the user for three employees. Store the data into three employee objects (use the Employee class from the previous question). Display those employees in a table. On this question, you'll submit two files: Employee.java and some other file that has a main.

Standard Input
Bill Gates 1234 Engineering Engineer Elon Musk 4443 Business CEO Steve Jobs 9999 Creative Designer 

Required Output

-- Employee Entry Form -- Enter name Enter ID Enter department Enter position -- Employee Entry Form -- Enter name Enter ID Enter department Enter position -- Employee Entry Form -- Enter name Enter ID Enter department Enter position Name ID Department Position Bill Gates 1234 Engineering Engineer Elon Musk 4443 Business CEO Steve Jobs 9999 Creative Designer 

Here's what I have for Employee.java so far

public class Employee { private String name; private int idNumber; private String department; private String position; public Employee(String name, int idNumber, String department, String position) { this.name = name; this.idNumber = idNumber; this.department = department; this.position = position; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getIdNumber() { return idNumber; } public void setIdNumber(int idNumber) { this.idNumber = idNumber; } public String getDepartment() { return department; } public void setDepartment(String department) { this.department = department; } public String getPosition() { return position; } public void setPosition(String position) { this.position = position; } }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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