aussie best car abcdeclares that based on its


Aussie Best Car (ABC)declares that based on its yearly sales it will award a bonus as follows. The bonus will be equally distributed among all employees.

Yearly Sales

Bonus

$0 - $500,000

0.1% of the total yearly sales.

$500,001 - $1,000,000

$500 PLUS 0.2% of the total yearly sales volume above $500,000

$1,000,001 - $5,000,000

$1500 PLUS 0. 3% of the total yearly sales volume above $1,000,000

$5,000,001 - $10,000,000

$13,500 PLUS 0.4% of the total yearly sales volume above $5,000,000

Above $10,000,000

$33,500 PLUS 0. 5% of the total yearly sales volume above $10,000,000

The Managing Director ofAussie Best Car (ABC)has now requested you to extend your program of Assignment 1 so that it also calculates the bonus amount (in dollars), which will be awarded to the employees, based on the above table.

The program needs to calculate the total bonus based on the total sales amount of all three types of cars.

The program also needs to calculate the bonus amount (in dollars) contributed by the sales of each car type. The bonus amounts contributed by the sales of Toyota Kluger, Nissan Patrol and Ford Territory are calculated separately using the proportion of the sales of an individual car type to the total sales. For example, if the sales amount of Toyota Kluger is 60% of the total sales amount then the bonus contributed by Toyota Kluger is 60% of the total bonus.

Note that the total bonus is determined based on the total sales of all cars (not based on the sales of an individual car type) using the above table.

The program should display (in addition to what it displayed for A1) the total bonus and the bonus contributed by the sales of each car type separately.

 

Select 3 sets of test data that will demonstrate the correct 'normal' operation of your program. Select another 2 sets of test data that will demonstrate the "abnormal" operation of your program. Set these out in the same format as in Assignment 1.

Implement your algorithm in Python.

Avoid duplicate code. For example, do notcalculate the bonus in multiple places in your code.

Comment your code as necessary to explain it clearly.

Run your program using the test data you have selected and save the output it produces in a text file.

Submit:

1. Your algorithm.

2. The table recording your chosen test data.

3. Source code for your Python implementation.

4. Output listings demonstrating the results of using the test data.

It is important that the output listings are not edited in any way.

Rationale

Reinforce topic material on simple functions.

Reinforce topic material on decision structures and Boolean logic.

Request for Solution File

Ask an Expert for Answer!!
Python Programming: aussie best car abcdeclares that based on its
Reference No:- TGS0501233

Expected delivery within 24 Hours