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

  Q1write a program called linearstringsearchjava that looks

q1.write a program called linearstringsearch.java that looks for a target string value in an array of string values.

  Write the two methods main and display.

Implement your solution using one class. In your class, provide two methods - main and display.

  Uses a loop to populate a one-dimensional array

Write the following program that creates and uses a loop to populate a one-dimensional array that holds the even numbers between 1 and 12; creates and uses a loop to populate a second one-dimensional array that holds the odd numbers between 1 and 12;..

  Difference between a java compiler and a java interpreter

Write a user-defined class called Person. This class should have private instance variables defined as:

  The desired functionality is for your programs to input

the desired functionality is for your programs to input pairs of natural numbers as theyre entered by the user until

  Write a program to track hourly employee departure

A company hires you to write a program to track hourly employee arrival and departure times from work. In essence, you are tasked to make an online time clock.

  Review communication between classes

Review Communication between Classes in preparation for the assignment - make sure you protect your class variables and provide access to them though methods

  Disadvantages to using data structures

How are data structures managed and organized in this language. How does the management or syntax of data structures in this language differ from how data structures are handled in other language.

  Write java program to print strings given at command line

Write a program Average.java which just prints strings that it is given at command line, one per line. If nothing is given at command line, print "No arguments".

  Implementation of the vector data type

Described in general terms the implementation of the vector data type. Complete the implementation of the vector by providing definitions for the subsequent operations

  Find the greatest common divisor between two inputed integer

I have to write an interactive program that will find the Greatest common divisor between two inputted integers.

  Latin squares - puzzle

Solve button causes the program to display a single solution by using only the symbols from the top row of six text fields in such a way that the non-empty grid symbols are not altered.

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