Design, code and test a program that will read in the PPS number of an employee. A PPS number consists of 7 digits, followed by a letter, and must be validated. If an invalid PPS number is read in, the program should ask for it again. Once a valid PPS number is entered, the user will be asked if they are calculating the pay details for a principal or a teacher. The program should then read in the required details, and output the employee’s PPS number, their gross pay, their tax, their PRSI and their take-home pay.
The program should loop until the user does not want to calculate any further wages.
You are required to use inheritance as effectively as possible.
Please fix the following input errors: