Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

What is electric dipole explain with example

Answered: 1 week ago

Question

Understand how customers respond to effective service recovery.

Answered: 1 week ago