Question: 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

 3. Write a complete bash script to calculate weekly pay for

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

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!