0

Plz do

I made a program for a chair factory, you don't know how many employees there are but you have the following information: - Number of hours worked - Employee category (1 - 2-3) - Name of the employee As it appears in the data, there are different categories for our employees depending on their seniority within the company. Every hour they charge $90 with a cap of 180 hours per month, this will conform to their base salary. From then on, each hour worked is considered as overtime. Overtime is paid according to the following regime: Category 1: $140 each extra hour Category 2: $100 each extra hour Category 3: The price of the common hour is maintained. In addition to this, all employees have a retirement discount of 12% and 3% for social work that is applied to the base salary. Calculate and display the following results on the screen: a. The total of the sum of all total salaries regardless of category b. The total of the sum of all base salaries by category.

10th Nov 2022, 11:28 PM
Delfina Cisterna
Delfina Cisterna - avatar
4 Respostas
+ 5
But your description starts with "I made a program". What happened to it? I would start by creating an employee class to accomodate this structured data. First, with attibutes to hold the user provided info. Then, i'd write the code to get user input and create employee objects with it. Finally, add the methods to calculate the values - splitting them into base salary, overtime and discounts - and additional needed attibutes.
11th Nov 2022, 12:34 AM
Emerson Prado
Emerson Prado - avatar
+ 5
Delfina Cisterna , > i am sure someone can help you, but first of all we would like to see your attempt, please link your code here. > please also give a brief description where you get stuck
11th Nov 2022, 2:35 PM
Lothar
Lothar - avatar
+ 3
Pls include in the question description: 1. A link to your code in Code Playground 2. An explanation of your difficulties
11th Nov 2022, 12:07 AM
Emerson Prado
Emerson Prado - avatar
0
python I don't know how to do the exercise, I would appreciate the help
11th Nov 2022, 12:13 AM
Delfina Cisterna
Delfina Cisterna - avatar