Aussie best car abcdeclares that based on its yearly sales

Assignment Help Python Programming
Reference no: EM13379955

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.

Reference no: EM13379955

Questions Cloud

1 how big is the mac address space the ipv4 address space : 1 how big is the mac address space? the ipv4 address space? the ipv6 address space?nbspnote the size of an address
Examine possible risks that can arise when systems are : examine possible risks that can arise when systems are constructed using cots. what steps can an organization take to
Theaussie best car abcauthority now wants to create a : theaussie best car abcauthority now wants to create a database for the sales and bonus records of different years.the
Aussie best car abchas now decided to award an additional : aussie best car abchas now decided to award an additional bonus based on the bonus contributed by the sales of an
Aussie best car abcdeclares that based on its yearly sales : aussie best car abcdeclares that based on its yearly sales it will award a bonus as follows. the bonus will be equally
The managing director of aussie best car abc has invited : the managing director of aussie best car abc has invited you to build a new computer system for them in python. the abc
Write a program that simulates an airplane race the program : write a program that simulates an airplane race. the program will display a table showing the speed in kmhour and
Problem 1suppose you have a relation schema about teaching : problem 1suppose you have a relation schema about teaching classes that has the following attributes class instructor
Problemconsider the following schema of ra b c d with : problemconsider the following schema of ra b c d with functional dependenciesa -gt b b-gt c and b-gtd1- compute the

Reviews

Write a Review

Python Programming Questions & Answers

  Design a prgram using python

Design a prgram USING PYTHON that students can use to calculate what score they need on final exam to get a certan final grade for a course.

  Code for the haunted house game

Improve the game by adding more features, for example you can examine more items, more props etc. You may implement this using more lists regarding items and props, remember, you should check if the object is being carried or in the location of th..

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Program that allows the user to enter the type of coin

Create a program that allows the user to enter the type of coin to be evaluated and the number of coins. The program should calculate the total weight of the coins and the height of the coins when stacked. Name the program coins.py. Use the table bel..

  Assume an n × n matrix a is given

Assume an n × n matrix A is given, containing only 1's and 0's, such that, in each row, all 1's come before all 0's. Give an O(n log n) algorithm to count all 1's in A.

  Write a function rmduplic(l), where l is any list

Write a function rmDuplic(L), where L is any list. The function should return a list M that contains the same items as L, except that repetitions (duplicates) have been removed: only the first occurrence of each entry is kept (i.e., order is prese..

  Same directory as your program

In the same directory as your program, create a file FF1, and write into it Hello (with a space at teh end). Similarly, create a file FF2, and write into it world! (with a new line, i.e., an ENTER at the end). And create a file DD and write into i..

  The number of lowercase letters in the file

The number of uppercase letters in the file The number of lowercase letters in the file

  Part-1for task 1 list the things you changed and the

part-1for task 1 list the things you changed and the purpose of changing it. good reasons include making code easier

  Write a program that will input the name of five students

Write clearly with documentations where necessary as you write the program to solve the following problem.

  Write a program that obtains integer numbers from user

Emphasize standard approaches that verify you have successfully mastered the concepts of structured design - selects a menu item, program should perform calculation, display the result to the user, and return to the main menu.

  We would like to implement the lexical order

We would like to implement the lexical order for lists. For simplicity, we only consider lists of numbers, where , >= have their usual meaning.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd