Question: Hello, Please write a Linux BASH script based upon the following instructions: Given hours worked and pay rate as command line arguments, write a script

Hello,

Please write a Linux BASH script based upon the following instructions:

Given hours worked and pay rate as command line arguments, write a script called GrossPay to calculate and print the Gross Pay. Overtime (Over 40 hours) is paid double.

For example:

./GrossPay 10 20 You worked 10 hours with pay rate of $20. Your gross pay is $200 ./GrossPay 50 10 You worked 50 hours with pay rate of $10. Your gross pay is $600

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!