Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a sales commission calculation program for a manufacturing company. The company has three big products that they sell and they have independent sales representatives.

Create a sales commission calculation program for a manufacturing company. The company has three big products that they sell and they have independent sales representatives. Each product has its own tiered commission structure. This is the table for the commissions: ? How to calculate the amount:
To calculate the amount take the desired percentage and multiply it by .01 and then multiply the result of
that by by the amount of sales. To calculate the amounts used in the example:
4.5**.01=0.045
.045**25252=1136,34
SEE THE ATTACHED TABLE
The program should ask which product was sold and then the amount of the sale. It should then print out the resulting calculation. It should be formatted professionally. You should use .upper() or .lower() to ignore case sensitivity, and if the user selects an invalid choice, it should be caught in an else branch. Below is sample output for the program:
Welcome to the Sale Commission Calculation Program
What product was sold? (A, B, or C) C
What was the sales amount? 25252
The percentage for the sale was 4.5% and the amount of the commission was $1,136.34
How to calculate the amount:
To calculate the amount take the desired percentage and multiply it by .01 and then multiply the result of that by by the amount of sales. To calculate the amounts used in the example:
4.5*.01=0.045
.045*25252=1136,34
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

More Books

Students also viewed these Databases questions