Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Need help with an assignment

  1. #1
    Junior Member
    Join Date
    Nov 2019
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help with an assignment

    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

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help with an assignment

    What have you tried?
    Do you have any specific java programming questions?

    Be sure to wrap all posted code in code tags.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Behaviour of shortcut assignment and normal assignment for float
    By rakeshkr2 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 20th, 2014, 02:54 AM
  2. help me with the Assignment :(
    By alhanof in forum Object Oriented Programming
    Replies: 3
    Last Post: March 5th, 2014, 03:40 PM
  3. Looking for help with assignment
    By n00bprogrammer in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 18th, 2011, 05:38 PM
  4. assignment troubles polymorphism (guide for assignment included)
    By tdawg422 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 8th, 2011, 10:01 AM
  5. Replies: 1
    Last Post: February 22nd, 2010, 08:20 AM