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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started