Computer Science, asked by rabi20051812, 1 month ago

// A program to calculate gross salary and net salary import java.util."; public class Esalary 1 public static void main(String args[]) Scanner in = new Scanner(System.in); int basic; double da,hra,pf,gp=0,np=0); String name; System.out.println("Enter the name of the employee"); name=in.nextLine(); System.out.println("Enter basic salary"); basic=in.nextInt(); da=basic*30.0/100.0; hra=basic*12.5/100.0; pf=basic*10.0/100.0; gp=basic+da+hra; np=gp-pf; System.out.println("Employee's Name:" +name); System.out.println("Gross pay :Rs." +gp); System.out.println("Net pay:Rs.”+np); }

variable listing of above program​

Answers

Answered by haasinis5d2122
0

Answer:

no

Explanation:

// A program to calculate gross salary and net salary import java.util."; public class Esalary 1 public static void main(String args[]) Scanner in = new Scanner(System.in); int basic; double da,hra,pf,gp=0,np=0); String name; System.out.println("Enter the name of the employee"); name=in.nextLine(); System.out.println("Enter basic salary"); basic=in.nextInt(); da=basic*30.0/100.0; hra=basic*12.5/100.0; pf=basic*10.0/100.0; gp=basic+da+hra; np=gp-pf; System.out.println("Employee's Name:" +name); System.out.println("Gross pay :Rs." +gp); System.out.println("Net pay:Rs.”+np); }

variable listing of above program​

Similar questions