Question: Linux bash shell scripting question: Write a script to compute payroll information for the people in the employees.txt file that you downloaded. Each row of

Linux bash shell scripting question:

Write a script to compute payroll information for the people in the employees.txt file that you downloaded. Each row of this file consists of a persons last name, hours and wages. To compute pay, use an if-then-else statement using this formula: Hours <= 40: pay = hours * wages Hours > 40: pay = 40 * wages + 2 * (hours 40) * wages We cant use time and a half (1.5) for overtime, so we use 2. Output for each employee their pay and also output the total number of employees processed and the average pay computed.

employees.txt file: https://www.nku.edu/~foxr/CIT371/employees.txt

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!