Worksheet 1.1 Java
Worksheet 1.1 Java
package project1;
import java.util.Scanner;
public class Array
{
public static void main(String args[])
{
Scanner arr = new Scanner(System.in);
int capacity = 7;
int x = 0;
for(int i = 0;i<capacity;i++)
{
if(eno[i] == eid)
{
check = true;
x = i;
break;
}
}
if(check == false)
{
System.out.print("NO ID found!"+eid+"\tPlease enter correct one ");
}
else
{
System.out.print("Employee No \tEmp Name\tDepartment\tDesignation\tSalary");
System.out.print(eno[x]+ "\t");
System.out.print(ename[x]+ "\t\t");
System.out.print(dpt[x]+ "\t\t");
System.out.print(dcode(dcode[x])+ "\t\t");
System.out.print(Salary);
}
}
return "Invalid";
}
switch(ch)
{
}
return 0;
}
4. Result/Output/Writing Summary:
Learning outcomes (What I have learnt):
1.
2.
3.
4.
5.
Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):