1-Write a Linux Bash shell script to compute the bonus for salespersons who are working at Mercedes Benz dealership who sell the following  models: A class - £24,095 - £38,095 (average £31,095) B Class - £28,045 - £38,280 (average £33,162) C Class - £34,670 - £50,405 (average £42,537) E Class - £39,680 - £69,015 (average £54,437) AMG C65 - £78,103 - £81,217 (average £31,095) Each salesperson earns a basic salary of £2,000 per month. However: If he or she achieves £200,000 worth of sales they will earn a bonus of £1,000 per month. If he or she sells more than £300,000 worth of sales they will earn a bonus of £1,500 per month. If he or she sells more than £400,000 worth of sales they will earn a bonus of £2,000 per month. If he or she sells more than £500,000 worth of sales they will earn a bonus of £2,500 per month. If he or she sells more than £650,000 worth of sales they will earn a bonus of £3,000 per month. Design a program which calculates, each salespersons salary per month.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

1-Write a Linux Bash shell script to compute the bonus for salespersons who are working at Mercedes Benz dealership who sell the following  models:

A class - £24,095 - £38,095 (average £31,095)

B Class - £28,045 - £38,280 (average £33,162)

C Class - £34,670 - £50,405 (average £42,537)

E Class - £39,680 - £69,015 (average £54,437)

AMG C65 - £78,103 - £81,217 (average £31,095)

Each salesperson earns a basic salary of £2,000 per month. However:

  • If he or she achieves £200,000 worth of sales they will earn a bonus of £1,000 per month.
  • If he or she sells more than £300,000 worth of sales they will earn a bonus of £1,500 per month.
  • If he or she sells more than £400,000 worth of sales they will earn a bonus of £2,000 per month.
  • If he or she sells more than £500,000 worth of sales they will earn a bonus of £2,500 per month.
  • If he or she sells more than £650,000 worth of sales they will earn a bonus of £3,000 per month.

Design a program which calculates, each salespersons salary per month.

Calculate the tax each salesperson pays and hence calculate their total salary after tax.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY