Hi, everyone
I just started a course at uni as a mature student( finally at 45 years of age, major Computing technologies.
One of the modules we have is OOP. I have a disability for which I am using a DSA computer, which unfortunately arrived in the middle of the teaching( nearly three weeks after the start of the course). As I couldn't get my personal laptop to run NetBeans smoothly( the computer kept freezing and became extremely slow) I couldn't practice enough and despite trying to read and learn I realize this wasn't good enough as practice is essential
I have however an assignment, which is in two weeks time and I am dreading it as I am halfway trough it and far from completing it without help. The assignment task is to develop a PayRoll system and requirements are:
- to store basic information for different employees, which include:
• Employee ID
• Employee title
• First name
• Last name
• Date of birth
• National Insurance (NI) Number
• Job titles (you can fix the job titles e.g. Office worker, Officer, Supervisor, Team leader, Managers, CEO, Director etc. add more if required)
• Job Department (you can assume departments e.g. Production, Sales, Marketing etc. add more if required)
For salaried employees you need to include additional information related to mode (i.e. Part time or Full time) and their agreed Annual salary. Similarly, for Hourly Employees you will need to store agreed hourly pay rate and finally for Commission Employees their annual gross salary and their Commission rate. Before you could generate payslips, the employee must be registered. For testing purposes the program should auto populate at least three employees (one for each type of employee).
At the end of every month, you will generate and store the monthly payslip for each employee, which will require you to enter employee ID, month followed by relevant parameters, for example for hourly employee you will input number of hours and for commission employees you will input sales amount to calculate their commission. For salaried employees no input is required. You should only record the calculation of their monthly amount for salary based on their annual salary. Finally, your program should be able to display the pay slip for any selected employee for any selected previous month only. I am not sure whether I am allowed to copy and paste the code I have written so far, so any advise will be more than appreciated. Basically I have created 7 different classes( a super class Employees, child classes- Salaried, Hourly, Commissioned employees, Employee Manager( handles the menus), Employee Repository( where I want to save information, which should be then used to generate payslips ans class Employees Test( which I use to validate the program). I am stuck at the point how to save the data from the child classes and then how to generate and print the payslips.
I am not even sure I have managed to explain everything correctly. I want to learn but due to the time lost when I couldn't practice I am running behind and also I struggle to understand the logic
Sorry for the long post and thanks to everyone who would take time to advise