Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Empolyee deatils in java
1. import java.util.Scanner;
public class Employees {
String name;
int bonus;
long salary;
long totalsalary;
void accept()
{
Scanner s= new Scanner(System.in);
System.out.println("Enter Name of Employeesn");
name=s.nextLine();
System.out.println("Enter the Bonus of Employeen");
bonus=s.nextInt();
System.out.println("Enter the Salaryn");
salary=s.nextInt();
}
void calctotal()
{
totalsalary=salary+bonus;
}
void print()
{
System.out.println("Name of Employeen"+name);
System.out.println("Salary of Employeen"+salary);
System.out.println("Bonus of Employeen"+bonus);
System.out.println("Totalsalary of Employeen"+totalsalary);
}
public static void main(String[] args) {
Employees emp = new Employees();
emp.accept();
emp.calctotal();
emp.print();
}
}