Identify all the attributes for the employee class

Assignment Help Computer Engineering
Reference no: EM131971577

Assignment: Programming for Networking

Purpose

This assignment assesses the basic concepts of programming; students should be able to demonstrate their achievements in the following unit learning outcomes:

a. Describe the fundamental principles of object-oriented programming;

b. Interpret a user's needs while dealing with simple program specifications;

c. Design a simple class using UML notation;

d. Create a simple application based on UML design and the incremental development process of coding, debugging, and testing;

e. Apply basic control structures - sequence, repetition, and selection - to program development;

f. Produce simple interactive applications.

Description

This assignment focuses on programming basics; expressions, variables, constants, static methods and loops.

John runs a cafe in the inner suburbs of Sydney. Due to the growing number of patrons, cafe has decided to take on extra casual employees. In order to manage payroll for his employees, John has decided to develop an employee payroll management system. Details of each employee to be maintained in the system will include; employee id, name, sex (M or F), date of birth, phone number, number of hours worked, hourly rate, gross pay, net pay, and income tax payable.

The gross pay is calculated as the number of hours worked multiplied by pay per hour while net pay is calculated as the difference between gross pay and income tax payable of which income tax payable is calculated by multiplying gross pay by an income tax rate of 20%.

For example, an employee who has worked a total of 30 hours with an hourly rate of $18 will have; gross pay=30*18=540
income tax payable=20%*540=108 net pay=540-108=432

Task Requirements

Imagine you have been invited to develop this system, familiarise yourself with the problem description and complete the following tasks.

1. Develop a UML class diagram based on the problem description. The name of the class should be of the form MITnnnnnEmployee where MITnnnnn is your MIT ID.

a. Identify a constructor for the class
b. Identify all the attributes for the Employee class
c. Identify all the set and get methods for each of the attributes identified in 1.b

2. Write a Java implementation of the UML diagram defined in 1. In your class, include comments describing the function of the class, the name of the programmer and the date of implementation.

3. Write a Java program (driver class) named PayrollCalculator with a main method. Within the main method, you will create(instantiate) an object of your implementation class in 2, and other create methods for calculating wages for the employees. Include comments describing the function of the program, the name of the programmer and the date of implementation.

a. Declare all variables required for calculations as class variables.

b. Include static methods to calculate the gross pay, income tax payable and the net pay.

c. Once you have calculated the gross pay, income tax payable and net pay. Invoke the methods in correct order so that when your program executes, it should be able to produce an output as an employee's pay slip like the example below.

1765_Pay-Slip.jpg

Reference no: EM131971577

Questions Cloud

How excel software can improve overall institute performance : How Excel software can improve overall institute performance? How would you justify, your current Excel file is better approach of information exchange?
Consrtuct a budget report based on flexible budget data : Prepare a budget report based on flexible budget data to help Lance. Should Lance have been reprimanded? Explain.
Prepare report on apple : You need to do paraphrasing of the given report. You need to prepare report on Apple
Purpose processor and single purpose processor : What is a difference between general purpose processor and single purpose processor?
Identify all the attributes for the employee class : Identify all the attributes for the Employee class. Identify all the set and get methods for each of the attributes identified in 1.b.
The ten-step special education process by idea : Describing the student progressing through the 10-step special education process required by IDEA 2004, using "The Basic Special Education Process.
Describe how you would make this repository : As an administrator, you must make a large data repository using servers running Windows Server 2012 R2 and the repository must be highly available.
Worldwide success and reputation : What positive aspects about the company do you think help contribute to its worldwide success and reputation?
Management decisions to improve services : What role do you think management decisions to improve services since its inception have impacted customer service from UPS?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Are digital circuits immune to noise discuss your answer

Analog circuits are subject to noise that can distort their output. Are digital circuits immune to noise? Discuss your answer.

  Explain the difference between itsm and itil

Explain the difference between ITSM and ITIL. (Hint: http://www.bmc.com/blogs/itsm-or-itil-that-isnt-the-question/) List at least 2 other "ITSM" frameworks and briefly describe each one.

  Why search engines use spiders to help rank internet sites

The article "Browser Wars" provides information on the most commonly used browsers. What is a browser, and what purpose does it serve for Internet users.why Search engines use spiders to help rank Internet sites

  Problem 1consider two different machines the first has a

problem 1consider two different machines. the first has a single cycle datapath i.e. a single stage non-pipelined

  Write a function which takes a c string as an input

Write a function which takes a C string as an input and converts it to all uppercase characters. For each lowercase character in the C string, simply subtract 32 from it to form the uppercase character.

  Determining the total price of an order by program

You have been asked to develop a program in order to determine the total price of an order from an Office Supply store. Program shall prompt user for name of the product, price of the product, and quantity of the order.

  Write down a program that, given the amount of a purchase

note down a program that, given the amount of a purchase and the amount received in payment, computes the change in dollars, half-dollars, quarters, dimes, nickles, and pennies.

  Examine the technical merits and demerits of using a

a hypervisor is computer hardware platform virtualization software that allows multiple different operating systems os

  Write algorithm pseudocode to solve second birthday problem

Write an algorithm in pseudocode to solve the first birthday problem. Write an algorithm in pseudocode to solve the second birthday problem (in general form).

  Design class called dog which keeps track of the dog''s name

design class called Dog which keeps track of the dog's name, breed, age, and license fee. The license fee will be a set amount: $12.25, since you only need one copy of this in memory, make it static. Include a method which prompts a user to set th..

  Dns within a windows server 2008 environment

Write three pages about DNS and how we use DNS within a Windows Server 2008 environment. In your paper , please focus on the two items. First, focus on DNS and how it functions.

  What is the network

explain the main types of networks.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd