File: /home/student/saiesh/ADS/Assignment No 13/ads13_2A.java package pack; interface ip { public public public public } void void void void add(int sub(int mul(int div(int a, a, a, a, int int int int b); b); b); b); public class A implements ip { public void add(int a, int b) { System.out.println("Addition is\t\t: "+(a+b)); } public void sub(int a,int b) { System.out.println("Substraction is\t\t: "+(a-b)); } public void mul(int a, int b) { System.out.println("Multiplication is\t: "+(a*b)); } public void div(int a, int b) { System.out.println("Division is\t\t: "+(a/b)); } } Page 1 of 1 ....................... File: /home/student/saiesh/ADS/Assignment No 13/ads13_2B.java package mypack; import pack.*; import java.util.Scanner; public class B { public static void main(String arg[]) { A obj= new A(); Scanner sc=new Scanner(System.in); System.out.println("\nEnter first number\t: "); int a=sc.nextInt(); System.out.println("\nEnter
File: /home/saiesh/ADS/Assignment No 12/ads12_1.java //Instance Variable import java.io.*; public class ads12_1 { public String name; private double salary; public ads12_1 (String empName) { name=empName; } public void setSalary(double empSal) { salary=empSal; } public void printEmp() { System.out.println("Name\t: "+name); System.out.println("Salary\t: "+salary); } public static void main(String[] args) { ads12_1 empOne=new ads12_1("Saiesh"); empOne.setSalary(10000); empOne.printEmp(); } } /* saiesh@saiesh :~$ javac ads12_1.java saiesh@saiesh :~$ java ads12_1 Name : Saiesh Salary : 10000.0 saiesh@saiesh :~$ */ OUTPUT Page 1 of 1 .................... File: /home/saiesh/ADS/Assignment No 12/ads12_2.java Page 1 of 1 //Static Variable import java.io.*; public class ads12_2 { private static double salary; public static final String DEPARTMENT = "Development"; public static void main(String args[]) { salary=1000; System.out.println(DEPARTMENT+"