Write a program to compute an employee’s weekly pay and produce a pay slip showing name, gross pay (i.e. pay before deductions), deductions, and net pay (i.e., pay after deductions).
class Employee{
public static void main(String[]args)
{
float hours;
String lastName, firstName;
char letter;
float rate;
boolean Y;
boolean N;
System.out.println("What is your first name?");
firstName = In.getString();
System.out.println("What is your family's last name?");
lastName = In.getString();
System.out.println("How many hours did you work?");
hours = In.getFloat();
System.out.println("How much do you get paid per hour?");
newRate = rate * 2;
System.out.println("Type in one of the listed letters A which is no tax deduction, B is tax is 10% of gross pay, C is 20% tax of gross pay, D is 29% tax of gross pay, and E is 35% tax of gross pay.");
;
letter = In.getChar();
switch (letter){
case 'A': System.out.println("There is no tax deduction.");
break;
case 'B': System.out.println("Tax is 10% of gross pay.");
break;
case 'C': System.out.println("Tax is 20% of gross pay.");
break;
case 'D': System.out.println("Tax is 29% of gross pay.");
break;
case 'E': System.out.println("Tax is 35% of gross pay.");
break;
}
if(hour > 40){System.out.prinln(newRate + "Is your new hourly rate.");};
System.out.println{("Do want $20 from your payment?";)
}
}