Task Requirements
• Create a new class called MITnnnnnLogicFoo were MITnnnnn is your MIT student ID.
• Include documentation before the start of the class to include your name, ID and a description of the program
• Include a main method
• Inside the main method declare and initialise the variables; base pay and hours worked.
• Other variables should include gross pay, overtime, net pay and pay you as gain.
• Include if statements that check for base pay and the limit of 60 hours in a week and prints to the console the respective error messages.
• Include statements to calculate overtime, gross pay, pay as you go and net pay
• Include statements that print to the console a payslip for an employee using the example shown below.