Question: I NEED HELP WITH MATLAB CODES (PLS ALSO ADD %COMMENTS) The monthly salary of a sales agent is computed based on his status and his

I NEED HELP WITH MATLAB CODES (PLS ALSO ADD %COMMENTS)

The monthly salary of a sales agent is computed based on his status and his monthly sales. A Regular Status has 80 sales quota, while Probationary and Trainee has 60 and 40 respectively. Commission is 250 pesos per sales and bonus is 400 per sales exceeding quota. Accomplishment percentage is the actual sales versus the quota, and there is a 50 pesos penalty deduction for every missed %. The company deducts a flat 500 pesos tax.

Status

Quota

A Regular

80 Sales

B Probationary

60 Sales

C Trainee

40 Sales

Commission is 250 per sales.

Bonus is 400 per sales exceeding quota

Formula: Commission + Bonus Penalty Tax

1st Sample Program Run

Enter Agent Status (A Regular, B Prob, C Trainee): A

Enter your Actual Sales: 83

Your Salary is 20,700.00

Breakdown:

Commission

80 x 250 = 20,000.00

Bonus

3 x 400 = 1,200.00

Penalty = 0

Tax = 500

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!