Asked • 11/08/20

Algorithm Design and Python Implementation

For this homework assignment, you are asked to design an algorithm to compute the employee's bonus using the rules shown below:

Bonus Schedule
Overtime - (2/3) * Absent  Bonus Paid
 greater than 40 hours   $50
 greater than 30 but less than 40 hours    $40
 greater than 20 but less than 30 hours   $30
 greater than 10 but less than 20 hours   $20
 less than 10 hours   $10



First, design the algorithm for computing the employee's bonus (30%).

Second, draw the flow chart diagram (30%).

Third, implement the algorithm using the Python program on Jupyter Notebook. Download the codes as homework.py (40%).

Fourth, submit, algorithm, flow chart, and homework.py for credit.


1 Expert Answer

By:

Patrick B. answered • 11/08/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Kristina S.

I'm not sure tbh. I was going to add input("") to my coding then just type the numbers from the bonus paid, but I wasn't sure. I also saw an algorithm example in which they took the average of it, but I don't think this one requires it
Report

11/08/20

Kristina S.

I was going to put input("") then just type in the numbers from the bonus paid, but i wasn't sure. Thanks for your help
Report

11/08/20

Patrick B.

more questions ,making it WORSE instead of clarification.. average of what? input("") does nothing..... take the code I have given and find out exactly what this program is supposed to do, or else no more progress can be made (1) WHAT EXACTLY is the data that is to be input (2) What calculations are to be done with the input to arrive at the correct result and how does that relate to the table shown? what formulas or averages are needed to arrive at the solution? (3) how are the results to be displayed
Report

11/08/20

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.