ENTD 380 American Military University Week 8 Employee Java Program Code Please provide a detailes note how to compile and run the program Instructions: *
ENTD 380 American Military University Week 8 Employee Java Program Code Please provide a detailes note how to compile and run the program
Instructions:
* Make sure you go to review previous chapter lessons for more guidance.
Class, create an array of object displaying the data of 3 employee. Statement 1 is creating an array of Employee Emp to store the records of 3 employees.
Save the code in jGRASP, then save it in c:myjava and run it.
/*******************
Name:
Date:
Notes:
*******************/
//Employee.java
import java.util.Scanner;
class Employee
{
datatype var1;
datatype var2;
– – – – – – – – – –
datatype varN;
void GetData() // Defining GetData()
{
Scanner sc = new Scanner(System.in);
Add content
}
void PutData() // Defining PutData()
{
System.out.print(…
}
public static void main(String args[])
{
Employee[] Emp = new Employee[3];
int i;
for(i=0;i<3;i++) // Allocating memory to each object for(i=0;i<3;i++) { System.out.print("… getdata } System.out.print(... For statement putdata } } The output should contain the following: Output: Enter details of 1 Employee Enter Employee Id : 1001 Enter Employee Name : Davis Enter Employee Age : 40 Enter Employee Salary : 65000 Enter details of 2 Employee Enter Employee Id : 1002 Enter Employee Name : McKnight Enter Employee Age : 35 Enter Employee Salary : 41000 Enter details of 3 Employee Enter Employee Id : 1003 Enter Employee Name : Daniels Enter Employee Age : 28 Enter Employee Salary : 27000 Details of Employees 1001 Davis 40 65000 1002 McKnight 35 41000 1003 Daniels 28 27000 Make sure that you include all source codes and the compiled codes into Final_firstname_lastname.zip. You must leave me a note in the Submitted Text area on how to compile and run your code.
We've got everything to become your favourite writing service
Money back guarantee
Your money is safe. Even if we fail to satisfy your expectations, you can always request a refund and get your money back.
Confidentiality
We don’t share your private information with anyone. What happens on our website stays on our website.
Our service is legit
We provide you with a sample paper on the topic you need, and this kind of academic assistance is perfectly legitimate.
Get a plagiarism-free paper
We check every paper with our plagiarism-detection software, so you get a unique paper written for your particular purposes.
We can help with urgent tasks
Need a paper tomorrow? We can write it even while you’re sleeping. Place an order now and get your paper in 8 hours.
Pay a fair price
Our prices depend on urgency. If you want a cheap essay, place your order in advance. Our prices start from $11 per page.