#Python Program-related question. So need the answer in python expressions. #Do not use the 'round' function. keep it simple #use sep='' function when needed to close space between $ sign and amount #Answer image of the program is attached which was answered by Bartleby but can't use it as we have not studied 'round' function yet. COSC 1336 –Programming Fundamentals I Program 4 – Decision Structures The owners of the Annan Supermarket would like to have a program that computes the weekly gross pay of their employees. The user will enter an employee’s ID number, the hourly rate of pay, and the number of hours worked for the week. In addition, Annan Supermarkets would like the program to compute the employee’s net pay and overtime pay. Overtime hours, any hours over 40, are paid at 1.5 the regular hourly rate. Net pay is Gross minus deductions. Assume that deductions are made up of income tax (at 10.5% of gross if the gross exceeds $600.00) and a $25 parking charge. The output should look like this: Program 4 ID Number: -- Pay Rate: -- Regular Hours: -- Overtime Hours: -- Total Hours: -- Regular Pay: -- Overtime Pay: -- Gross Pay: -- Deductions: -- Net Pay: -- Run your program three times with the data below and copy and paste the outputs to a file. Create a folder named, fullname_program4. Copy your source code and the output file to the folder. Zip the folder and upload it to Blackboard. Run 1 Run 2 Run 3 ID Number: 1001 ID Number: 2002 ID Number: 3003 Hourly rate: 10.00 Hourly rate: 35.50 Hourly rate: 10.50 Hours worked: 35 Hours worked: 40 Hours worked: 50
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
#Python Program-related question. So need the answer in python expressions.
#Do not use the 'round' function. keep it simple
#use sep='' function when needed to close space between $ sign and amount
#Answer image of the program is attached which was answered by Bartleby but can't use it as we have not studied 'round' function yet.
COSC 1336 –
Program 4 – Decision Structures
The owners of the Annan Supermarket would like to have a program that computes the
weekly gross pay of their employees. The user will enter an employee’s ID number, the
hourly rate of pay, and the number of hours worked for the week. In addition, Annan
Supermarkets would like the program to compute the employee’s net pay and overtime
pay. Overtime hours, any hours over 40, are paid at 1.5 the regular hourly rate.
Net pay is Gross minus deductions. Assume that deductions are made up of income tax
(at 10.5% of gross if the gross exceeds $600.00) and a $25 parking charge.
The output should look like this:
Program 4
ID Number: --
Pay Rate: --
Regular Hours: --
Overtime Hours: --
Total Hours: --
Regular Pay: --
Overtime Pay: --
Gross Pay: --
Deductions: --
Net Pay: --
Run your program three times with the data below and copy and paste the outputs to a
file. Create a folder named, fullname_program4. Copy your source code and the
output file to the folder. Zip the folder and upload it to Blackboard.
Run 1 Run 2 Run 3
ID Number: 1001 ID Number: 2002 ID Number: 3003
Hourly rate: 10.00 Hourly rate: 35.50 Hourly rate: 10.50
Hours worked: 35 Hours worked: 40 Hours worked: 50
Trending now
This is a popular solution!
Step by step
Solved in 7 steps with 4 images