Question: Need help with: Phython programming language: Create a simple payroll calculator. Having difficult time with the coding and need some help with this. Notes: -Use

Need help with: Phython programming language: Create a simple payroll calculator.

Having difficult time with the coding and need some help with this.

Notes:

-Use a meaningful name for your program. -Use at least one comment to identify the purpose of your program. -Place your code inside main() function and call main() at the end of your program. -Display your results with clear descriptions.

The hours worked this week (M through F) are already stored in a list. Please copy this line into your program at the top: hours = [6.5, 8.75, 10.25, 0.0, 8.25]

Program:

Display an initial message to tell the user the purpose of the program. Ask the user to enter: -the employee's first name -the employee's last name. -the hours worked on Saturday. You must append this amount to the list 'hours'. Hours are entered as values indicating quarter hours. See the hours list above for examples. Do not enter '0' - everyone works on Saturday! -the employee's hourly wage Then, Determine the amount earned by summing the hours worked and multiplying by the hourly wage. Determine the number of days worked. (Remove any day that has the value of 0 and then count the number of items in the list!) Use conversion specifiers to display the employee's first and last name, total earnings, and number of days worked. Total earnings must be displayed using TWO decimal places

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!