// 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
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
Physics,
15 days ago
Math,
15 days ago
English,
15 days ago
Science,
1 month ago
English,
1 month ago
Social Sciences,
9 months ago
English,
9 months ago
Social Sciences,
9 months ago