Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Write a complete bash script to calculate weekly pay for employees. (40%) (YOU MUST INCLUDE THE SCRIPT FILE (.sh file) IN THE ZIP) Here

image text in transcribed

3. Write a complete bash script to calculate weekly pay for employees. (40\%) (YOU MUST INCLUDE THE SCRIPT FILE (.sh file) IN THE ZIP) Here are the criteria...... a. The script MUST CONTINUE in a loop until user decides to stop. User stops the pay calculations by entering 0 . b. Pay is calculated based on a 'category' of the employee. There are three categories and each category has a pay rate, and they are Casual[C]:rate=$8.25/hrPermanent[P]:rate=$12.50/hrStaff[S]:rate=$20.00/hr c. User enters the category of the employee (C, P or S) and then the Hours/week (do not worry about overtime hours etc. Consider all hours [Regular and Overtime] get the same pay rate). PS: If the user enters an unknown option, show an error message (Look at the screen dump below) d. Script must run a menu as follows ABC Enterprises - Weekly Pay Calculation Process Enter Employee Category (C, P or S. 0 to quit): Enter hours worked: Script must produce the calculated result as: Calculated Weekly Pay @rate/hr = \$99999.99 Here is a dump of an actual run

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

Identify the cause of a performance problem. page 380

Answered: 1 week ago

Question

LO1 Explain how the workforce is changing in unpredicted ways.

Answered: 1 week ago