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
Get step-by-step solutions from verified subject matter experts
