Write a java implementation of the uml diagram

Assignment Help JAVA Programming
Reference no: EM132299165

Programming fundamentals

Purpose of the assessment

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.

Assignment Description

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

Danny runs an ice cream shop in the inner suburbs of Melbourne. Due to the growing number of customers, Danny has decided to take on extra casual employees. In order to manage payroll for his employees, Danny has decided to develop an employee payroll management system. Details of each employee to be maintained in the system will include; employee id, name, gender (M or F), phone number, hours worked, pay per hour, 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 the 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 30%. Any hours over forty (40) is paid as an overtime hour at the rate of (2.5) times the base hourly rate.

For example, an employee who has worked a total of 45 hours with an hourly rate of $20 will have; Regular pay=40*$20=$800
Overtime pay=5 * $20 * 2.5 = $250 Gross pay=$800 + $250 = $1,050 Income tax payable=$1050 * 30%=$315 Net pay=$1050-$315=$735

Task Requirements

Imagine you have been hired 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 named EmployeePayroll 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 for all the implemented methods.

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.

Attachment:- Programming for Networking.rar

Reference no: EM132299165

Questions Cloud

What is type of market banks of australian operate in : What is type of market Banks of Australian operate in? How has the Global Financial Crisis affected competition in this market?
Internal environment and culture of facebook : What is the External and Internal environment and culture of Facebook?
Estimate the price of an ep share : The first dividend will be paid in a year's time. Estimate the price of an EP share.
Household assets on a household asset sheet : Carla is listing her household assets on a household asset sheet. Which of the following should she NOT list?
Write a java implementation of the uml diagram : BN108 - Programming for Networking - Melbourne Institute of technology - Programming fundamentals - Write a Java implementation of the UML diagram defined
What is the price of capital : If the marginal rate of technical substitution for a cost minimizing firm is 10, and the price of labor is $5, what is the price of capital?
How much profit does each firm earn : 1. The inverse market demand curve is P = 260 - Q, where Q is the output of Firm 1 and Firm 2, q1 + q2. The output of the two firms is identical.
What are the benefits of international free trade : Does all parties gain if there is free trade between countries? Use the trade between the US and Mexico to explain your answer
Apply a corrective tax vs a subsidy : When does a government choose to apply a corrective tax vs a subsidy?

Reviews

len2299165

5/4/2019 4:07:45 AM

Description of criteria Marks UML class design Identify all the variables and their appropriate data types 2 Identify the set and get methods for the variables 2 Identify a constructor for the class 1 Java implementation Java implementation (class) of the UML diagram 2 Comments describing the program, methods, author and date 1 Design/implementation of main method as described in task 3 2 Static method to compute the gross pay is correctly implemented 2 Static method to compute the income tax payable is correctly implemented 2 Static method to compute net pay is correctly implemented 2 Program runs and prints the correct output 4 Total 20

len2299165

5/4/2019 4:05:06 AM

• All work must be submitted on Moodle by the due date along with a completed Assignment Cover Page. • The assignment must be in MS Word format, 1.5 spacing, 11-pt Calibri (Body) font and 2 cm margins on all four sides of your page with appropriate section headings. • Reference sources must be cited in the text of the report, and listed appropriately at the end in a reference list using IEEE referencing style.

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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