Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Read first: ABC Enterprises is a newly established car dealership in town. The company has several sales representatives whose weekly compensations are commission-based. That

student submitted image, transcription available below


student submitted image, transcription available below


student submitted image, transcription available below 
 

Read first: ABC Enterprises is a newly established car dealership in town. The company has several sales representatives whose weekly compensations are commission-based. That is, sale representative's weekly salary is on commission from sales. To calculate the sales representative's commission, ABC Enterprises uses the following: 1. 1% on the first $50,000 of the total sales 2. .75% on the next $100, 000 of the total sales 3. .5% on balance left after deducting $150,000 from total sales For example, if a Sales Representative A sold $145, 000, the commission will be calculated as follows: First $50,000: 0.01*50000 = $500 Next $95,000: 0.0075*95000 = $712.5 Total commission-based gross pay is $1,212.5. Each sales representative sells at least 2 cars per week. There are four different car models and prices: 1. Model A-$15,000; 2. Model B-$20,000; 3. Model C-$18,000; 4. Model D-$25,000. To calculate total sales, you must specify the models for the five cars. For examples, if 2 of the 5 cars are of Model A and 2 are of Model C and 1 of Model D, the total sales will be 2*15000+ 2*18000+1*25000 = $91,000 I. II. III. IV. Use cars models to determine the sale price and accumulate the sales prices. Note that minimum number of cars sold is 2 Prompt the user to enter the number of cars sold. For each car, prompt the user to enter each car model, call the function get_car_price to determine the price for the model, add to the total sales. Return the value total of totals. Hint: See call to calculate_total_sales below: >>>total_sales = calculate_total_sales() >>>Enter the model of car 1: A >>>Enter the model of car 2: A >>>Enter the model for car 3: C >>>Enter the model for car 4: C >>>Enter the model of car 5: D >>>print(total_sales) 91000 calculate_commission will accept as an argument the total sales, uses the formula above to compute and return the gross pay. if total sales is less than or equal to 50000, return 1% of total sales if total sales is less than or equal to 150000, return 1% of 10000+.75% of (total sales- 50000) if total sales is greater than 150000, return 1% of 50000+.75% of 100000+.5% of (totals sales-150000) compute and return the gross pay. if total sales is less than or equal to 50000, return 1% of total sales if total sales is less than or equal to 150000, return 1% of 10000+.75% of (total sales- 50000) if total sales is greater than 150000, return 1% of 50000+.75% of 100000+.5% of (totals sales-150000) 5. main that will simulate the program. This function will perform the following operations: 1. call calculate_total_sales to obtain total sales 2. call calculate_commission to obtain gross pay 3. Display the total sales and commission using 2 decimal places to format the output.

Step by Step Solution

3.45 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

Function to get car price based on model def getcarpricemodel Function to determine t... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Industrial Relations in Canada

Authors: Fiona McQuarrie

4th Edition

978-1-118-8783, 1118878396, 9781119050599 , 978-1118878392

More Books

Students also viewed these Accounting questions

Question

Outline the stages of union-management negotiations.

Answered: 1 week ago

Question

y = 4 over the range x = -3 to x = 6 Graph each of the equations.

Answered: 1 week ago