1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lianna [129]
3 years ago
9

Write a program with a method computeCommission which takes a double that is the salesAmount and returns the commissions for sal

es from $10,000 to $100,000 in increments of $5,000. Commissions are calculated by one of two formulas depending on the amount:a. A sale up to $50,000, 8 percent for the first $5,000 and 10 percent of the remainderb. A sale over $50,000, 9 percent for the first $5,000 and 12 percent of the remainderE

Computers and Technology
1 answer:
miv72 [106K]3 years ago
4 0

Answer:

Explanation:

def computeCommission(salesAmount):

   commission=0

   if salesAmount <= 50000:

       commission = 5000*0.08 + (salesAmount-5000)*0.1

   elif salesAmount > 50000:

       commission = 5000*0.09 + (salesAmount-5000)*0.12

   return commission

print("commission for 45000 : "+str(computeCommission(45000)))

print("commission for 54000 : "+str(computeCommission(54000)))

You might be interested in
Host A sends two UDP segments to Server S, one to port 1234 and the other to port 2345. Host B sends one UDP segment to Server S
SOVA2 [1]

Answer:

A

Explanation:

8 0
3 years ago
An eco-friendly home-building company has asked you to create their logo. Which of the following color schemes would work best t
galben [10]
I'm not sure what the letters represent concerned with the colour scheme, however the most common colour in nature is green.

The least common colour in nature is blue.

Hope this helps! :)
7 0
3 years ago
A manufacturer of scented candles is preparing to produce five new candles with fragrances of peppermint, cinnamon, lemon, spice
zzz [600]

Answer:

Why are you asking someone to create a program

Explanation:

8 0
3 years ago
Read 2 more answers
Why do engineers use design briefs?
lisov135 [29]

Answer: D

Explanation: Design Brief A design brief is used in a design process to point out the goals and objectives for the designing. The Design Brief is a short paragraph describing the problem to be solved, establishing the need for the product, and then setting out the specifications within which the product is to be developed

6 0
3 years ago
What is the output of the following code? Recall that stacks and queues print in an [a, b, c] format from bottom/front to top/ba
polet [3.4K]

Answer:

[you, are, how]

Explanation:

The output for given code will be [you, are, how]. Pop gives the mist recently added element in the stack so order is reversed.

8 0
3 years ago
Other questions:
  • Compare and contrast how the roles of women and men in society are changing​
    14·1 answer
  • Which command on the Insert tab of the PowerPoint Online application is used to add a Venn diagram or process chart to a present
    12·2 answers
  • Which statement describes borders and shading ?
    13·1 answer
  • __________%of the users have left websites in frustration due to poor navigation.
    13·1 answer
  • The computer has had far-reaching effects on our lives.how has the computer effected your life?
    8·1 answer
  • Which operating system is a version of Linux?​
    13·1 answer
  • Which do switches create?<br> Networks<br> Wireless access points<br> Routes<br> Collision domains
    13·1 answer
  • A recursive method may call other methods, including calling itself. A recursive method has:
    7·1 answer
  • 50 POINTS!!!!!!!!!!!<br><br> Give at least two examples of how the transport layer is used.
    13·2 answers
  • What is ‘situational awareness” in game design?please answer in a full sentence!
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!