input the name and salary of an employee calculate the total salary of an employee by adding 10% and 10% to the basic salary
Answers
Answered by
0
Answer:
class salary
{
String name;
int bonus;
float basic,total;
salary() //constructer for class salary
{
name="kim dokja";
bonus=10;
basic=10000f;
total=t;
}
public void main(String args[])
{
System.out.println("Name: "+ name);
System.out.println("Basic pay: "+ basic);
total=basic*10;
System.out.println("Total pay for employee: "+total);
}
}
Explanation:
If you have any problems in understanding the syntax or their is to be made a change in the program, please let me know
Similar questions