Question: Please refer to the directions and code in python please. Hal owns a business named Make Your Own Music, which sells guitars, drums, banjos, synthesizers,

Please refer to the directions and code in python please. Hal ownsa business named Make Your Own Music, which sells guitars, drums, banjos,Please refer to the directions and code in python please.

Hal owns a business named Make Your Own Music, which sells guitars, drums, banjos, synthesizers, and many other musical instruments. Hal's sales staff works strictly on commission. At the end of the month, each salesperson's commission is calculated according to Table 5-1. Because the staff gets paid once per month, Hal allows each employee to take up to $2,000 per month in advance. When sales commissions are calculated, the amount of each employee's advanced pay is subtracted from the commission. If any salesperson's commissions are less than the amount of their advance, they must reimburse Hal for the difference. To calculate a salesperson's monthly pay, Hal uses the following formula: pay=salescommissionrateadvancedpay Hal has asked you to write a program that makes this calculation for him. general algorithm outlines the steps the program must take. Create a PyCharm project named as "HalBusiness". In this project: First, create a class called "Payroll" including attributes (employee's id, employee's first name, employee's las name, sales amount, advanced pay etc.) and methods: construtor _init__, calPay(), display(). The __init_._ needs to initilize the attributes. The calPay() receives the sales amount and advanced pay and then calculate the commission rate and the pay, return the pay. The display() will display the payroll information for each employee. Second create a test module named "PayTester" to test the functions. Requirments for your submission: 1) UML design of Payroll class 2) Follow the program template: documentation and attach testing runs data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!