Question: your consultancy firm virtuoso software consultancy is tasked to develop a prototype for a supermarket payroll system. As part of the assignment you have to
your consultancy firm virtuoso software consultancy is tasked to develop a prototype for a supermarket payroll system. As part of the assignment you have to develop a functionality for calculating salary for the staff based on the hourly rate. To address the business requirement, you willed to create program in python in python using classes.
Class:
Class Name : staff
Member variables: staffID, staffName, level, no of hours worked
Members function:
Constructors- as per your choice
Add staff information
Calculate salary of staff based on the level entered and the number of hours worked.
Rules for calculating salary:
Level 1- hourly rate= 18
Level 2- hourly rate= 25
Level3- Hourly Rate = 50
Level 4= hourly rate= 100
Display staff info. along with salary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
