Linux shell script to compute the bonus for a salesperson


Question:

Linux shell script to compute the bonus for a salesperson

Convert the following pseudocode into a Bash script:

- Read SalesPerson and QuarterlySales from the keyboard.
- Display an appropriate message regarding the bonus when the QuarterlySales for the SalesPerson falls within these ranges:

$1,000,000 and above : Bonus = $1,500
$100,000 to $999,999 : Bonus = $750
$99,999 and below : No Bonus

Test the script with the following data:
Mike 67000
Bob 99000
Peter 100000
Lisa 250000
Joan 999999
Mary 1000000.

Solution Preview :

Prepared by a verified Expert
Software Engineering: Linux shell script to compute the bonus for a salesperson
Reference No:- TGS01936421

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)