Purchase Solution

Linux shell script to compute the bonus for a salesperson

Not what you're looking for?

Ask Custom Question

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.

Purchase this Solution

Solution Summary

Solution gives a well commented Bash script that computes the bonus for one salesperson in one execution of the script. Implementation uses if-then-else and here-document features of Bash scripting.

Solution Preview

Please "chmod +x" the attached script (156620.sh) to turn on the executable bit, ...

Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Basic Networking Questions

This quiz consists of some basic networking questions.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Javscript Basics

Quiz on basics of javascript programming language.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.