Answered step by step
Verified Expert Solution
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
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
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