Write a Python code for the payroll system of Employees in a company as follows: The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a Python code for the payroll system of Employees in a company as follows: The program should have 4 classes: 1- Employee class: 5 points Use init () for initializing the attributes of the class: name, id Define a method gross_pay(): it does nothing in this class Overload the method str both name and id must be printed (), format the information of the employee as you like.. 2- SalariedEmployee class: for employees who are paid a monthly salary only It inherits the Employee class Use init () for initializing the attributes of the class: name, id, salary O Note: The initialization of name and id should be used from the super class Define a method gross_pay(): it returns the salary of an employee Overload the method str (), format the information of the employee as you like.. name, id and salary must be printed 3- Commission Employee class: for employees who are paid based on a commission rate of their sales It inherits the Employee class Use init () for initializing the attributes of the class: name, id, com_rate, sales O Note: The initialization of name and id should be used from the super class Define a method gross_pay(): it returns the amount that the employee is paid: rate*sales Overload the method str (), format the information of the employee as you like.. name, id, com_rate, sales must be printed 4- Salaried Commission Employee class: for employees who are paid a monthly salary and also a rate of their sales It inherits the Commission Employee class Use init () for initializing the attributes of the class: name, id, com_rate, sales, salary o Note: The initialization of name,id, com_rate and sales should be used from the super class Define a method gross_pay(): it returns the amount that the employee is paid, which is salary+ the gross_pay of the super class Overload the method str (), format the information of the employee as you like.. name, id, com_rate,sales, and salary must be printed Write a Python code for the payroll system of Employees in a company as follows: The program should have 4 classes: 1- Employee class: 5 points Use init () for initializing the attributes of the class: name, id Define a method gross_pay(): it does nothing in this class Overload the method str both name and id must be printed (), format the information of the employee as you like.. 2- SalariedEmployee class: for employees who are paid a monthly salary only It inherits the Employee class Use init () for initializing the attributes of the class: name, id, salary O Note: The initialization of name and id should be used from the super class Define a method gross_pay(): it returns the salary of an employee Overload the method str (), format the information of the employee as you like.. name, id and salary must be printed 3- Commission Employee class: for employees who are paid based on a commission rate of their sales It inherits the Employee class Use init () for initializing the attributes of the class: name, id, com_rate, sales O Note: The initialization of name and id should be used from the super class Define a method gross_pay(): it returns the amount that the employee is paid: rate*sales Overload the method str (), format the information of the employee as you like.. name, id, com_rate, sales must be printed 4- Salaried Commission Employee class: for employees who are paid a monthly salary and also a rate of their sales It inherits the Commission Employee class Use init () for initializing the attributes of the class: name, id, com_rate, sales, salary o Note: The initialization of name,id, com_rate and sales should be used from the super class Define a method gross_pay(): it returns the amount that the employee is paid, which is salary+ the gross_pay of the super class Overload the method str (), format the information of the employee as you like.. name, id, com_rate,sales, and salary must be printed
Expert Answer:
Answer rating: 100% (QA)
Sure Heres a Python code that implements the payroll system for employees in a company using the fou... View the full answer
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Posted Date:
Students also viewed these programming questions
-
the Q question 1)Building a MultiThreaded Web Server In this lab we will develop a Web server in two steps. In the end, you will have built a multithreaded Web server that is capable of processing...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Rainbow manufactures wooden backyard playground equipment. Rainbow estimated $1,785,000 of manufacturing overhead and $2,100,000 of direct labour cost for the year. After the year was over, the...
-
Explain the meaning of efficient markets. Why might we expect markets to be efficient most of the time? In recent years, several securities firms have been guilty of using inside information when...
-
Exercise 9.3 considers a model that predicts a newborn's weight using several predictors (gestation length, parity, age of mother, height of mother, weight of mother, smoking status of mother). The...
-
Is it possible for an entrepreneur to experience a reduction in wealth when a business is sold even though the value of the business is much greater than the amount invested? Under what conditions...
-
Practice calculating the sample size and the number of expected errors in attributes sampling by using the tables in Exhibit and the following combinations ofinputs: Tolerable Rate of x Sample Size...
-
Problem 2 (17 points) Fitzhugh Investors sells, manages, and operates three mutual funds: Money Market, Blue Chip, and Fixed Income. Each fund's prospectus specifies a schedule of fees payable to...
-
Bravo Bags is a luggage retailer that operates out of a shopping mall. As required by the landlord, Bravo Bags has hired Brad Pope, CPA, to provide a report to the landlord as to whether Bravo Bags...
-
Bundy Service Station Ltd (Bundy) was founded in 2002 and operates a successful fuel service station, motor repair workshop and second-hand car dealership from premises off the Bruce Highway route on...
-
Following are the draft balance sheets (summarized) of Delta Limited (DL), a listed company, and its subsidiaries Gamma Limited (GL) and Sigma Limited (SL) as at 31 December 2013: Non-current assets...
-
Find a . b. a = 4i + j, bi- 3j+k
-
2. Hoang Long joint stock company issued fixed rate bonds bearing interest at 12% pa. The bonds have a par value of VND 1,000,000 and will mature after 7 years. Interest are payable annually. If the...
-
Walmart often uses drop shipping to remove itself completely from the distribution process so that orders from various stores are received by the manufacturer and shipped directly to the store. In...
-
Multiply. -11 -11
-
Prudent Products Corporation manufactures and sells 1,000 motorcycle engines each month. A primary component in each motor is an oil pump used to keep the motor lubricated. Prudent Products has the...
-
The Ferris wheel in the figure has a radius of 68 feet. The clearance between the wheel and the ground is 14 feet. The rectangular coordinate system shown has its origin on the ground directly below...
-
Write a program that takes a whole number input from a user and determines whether its prime. If the number is not prime, display its unique prime factors. Remember that a prime numbers factors are...
-
Combine the statements that you wrote in Exercise 3.5 into a Java application that calculates and prints the sum of the integers from 1 to 10. Use a while statement to loop through the calculation...
-
Write an application that simulates coin tossing. Let the program toss a coin each time the user chooses the Toss Coin menu option. Count the number of times each side of the coin appears. Display...
-
The steel rod has a radius of 1.25 in. If it is subjected to a shear of \(V=5\) kip, determine the maximum shear stress. 1.25 in. V-5 kip
-
A member has a cross section in the form of an equilateral triangle. If it is subjected to a shear force \(\mathbf{V}\), determine the maximum average shear stress in the member using the shear...
-
The beam is constructed from two boards fastened together at the top and bottom with three rows of nails spaced every \(8 \mathrm{in}\). If an internal shear force of \(V=800 \mathrm{lb}\) is applied...
Study smarter with the SolutionInn App