Create a driver function in your payroll progam

Assignment Help Python Programming
Reference no: EM132363317

Programming fundamentals

Purpose of the assessment (with ULO Mapping) 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, methods, selection and loops.

Danny runs anice 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 45hours 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 write a python program named payroll.py with the following functions:

1. Create a main () as a driver function in your payroll progam. Within the main (), you will declare all the required variables, and invoke the other methods described in the next step as required for calculations and displaying the program output.

2. Create additional functions in your payroll program for calculations as follows:
a. Function to calculate the overtime hours
b. Function to calculate the gross pay
c. Function to calculate the income tax payable and
d. Function to calculate thenet pay
These functions needs to be invoked in correct order within your driver function main (), so that when your program executes, it should be able to produce an output as an employee's pay slip like the example below.

Danny's IceCream Parlour                                                                                            ABN: 222 333 145

Employee: Andrew                                                                                        

                                                                                                        Payment Date: 24/03/2019

Gross Pay: $1050.00

Net Pay: $735.00

                                                                                                        Pay Period from: 21/02/2019 to 20/03/2019               

Item                          Total Hours                Calculated Rate             Type

Base Hourly @$20.00      45 (5 OT)                 $1050.00                          Wages

PAYG Withholding                                           $-315                 Tax

*OT: Over time

Submission requirements:

1. Your assignment should include the following in the .ZIP archive:
• A Word report with sections containing:
1. An overview of the problem description of the assignment
2. Pseudocode as an algorithm for the program
3. Screen shot/capture of the program output
4. Statement of completion
5. Acknowledgment of any help taken for assignment completion
• Python file (payroll.py) that can be executed by your tutor

2. Instructions for archiving and submitting your files:
• Create a folder and name it with your student ID (MITnnnnnn, where nnnnnn are digits of your student number)
• Copy your Word document and the python (payroll.py) files into that folder.
• Zip the folder.
i. Right-click on the folder
ii. In the pop-up menu select Send-to, Compressed (zipped)Folder

Reference no: EM132363317

Questions Cloud

Unfortunate mistakes in the delivery of health care : The law is invoked as result of unfortunate mistakes in delivery of health care. A foundation for applying abstract theories and principles of ethics is require
Prepare an income statement for paw prints pet sitters : Prepare an income statement for Paw Prints Pet Sitters for month ended November 30. 2019. Prepare a balance sheet for Paw Prints Pet Sitters as of November 30.
Health Insurance and the Affordable Care Act : Analyze implication of Affordable Care Act on your decision to purchase insurance. Debate two advantages and two disadvantages of purchasing health insurance
The course on organized crime-related intelligence : Write paper that expands upon the information provided and discussed in the course on organized crime-related intelligence,
Create a driver function in your payroll progam : BN108 - Programming for Networking - Programming fundamentals - fundamental principles of object-oriented programming - create a simple application based on UML
The federal fair housing act-other state civil rights laws : Do the Walters have a cause of action against McNeely under (A) the federal Fair Housing Act, or (B) other state civil rights laws?
Argued over the value and purpose of corporal punishment : Ancient scholars and philosophers have discussed and argued over the value and purpose of corporal punishment.
What direct influences do you see from pennsylvania system : What direct influences do you see from the Pennsylvania system in the correctional systems used today? Discuss what groups were associated with this reform
What was the amount of techmarts cost of goods sold : For a recent year, TechMart reported sales of $31,044 million. Its gross profit was $7,761 million. What was the amount of TechMart's cost of goods sold?

Reviews

len2363317

8/30/2019 12:35:22 AM

Grade Mark HD 16-20 DI 14-16 CR 12-14 Excellent Very Good Good Design/ Documentation /5 Programdesigned and implemented correctly as per the specifications Minor issues Program designed and implemented correctly as per the specifications but can improve Python implementation Code documentation Program output /15 No issues Minor issues Program output is correct but quality of design /implementation can improve

len2363317

8/30/2019 12:35:13 AM

Description of criteria Marks Assignment report Overview 0.5 Pseudocode 1 Statement of completion and acknowledgement 1 Python implementation Comments describing the program, methods, author and date 1.5 Design of main function is correctly implemented 4 Design of overtimefunction is correctly implemented 2 Design gross payfunction is correctly implemented 2 Design of income tax payable function is correctly implemented 2 Design of net pay function is correctly implemented 2 Program runs and prints the correct output 4 Total 20

len2363317

8/30/2019 12:35:09 AM

Submission Guidelines • 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. Submission requirements: 1. Your assignment should include the following in the .ZIP archive: • A Word report with sections containing: 1. An overview of the problem description of the assignment 2. Pseudocode as an algorithm for the program 3. Screen shot/capture of the program output 4. Statement of completion 5. Acknowledgment of any help taken for assignment completion • Python file (payroll.py) that can be executed by your tutor 2. Instructions for archiving and submitting your files: • Create a folder and name it with your student ID (MITnnnnnn, where nnnnnn are digits of your student number)

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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