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
sukhopar [10]
3 years ago
15

Write a Python program that calculates an employee's annual bonus. Input is an employee's first name, last name, salary, and num

eric performance rating. If the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. If the rating is 4 or higher, the rate is 0. The employee bonus is calculated by multiplying the bonus rate by the annual salary.
Computers and Technology
1 answer:
maksim [4K]3 years ago
5 0

Answer:

Explanation:

The following code is written in Python. It is a function that takes in the first name, last name, salary, and numeric performance rating of the employee. Then it uses the rating and the salary to calculate the bonus and returns that back to the user. A test case has been created and the output can be seen in the attached image below.

def calculate_bonus(first_name, last_name, salary, rating):

   rate = 0;

   if rating == 1:

       rate = 0.25

   elif rating == 2:

       rate = 0.15

   elif rating == 3:

       rate = 0.1

   else:

       rate = 0

   bonus = salary * rate

   return bonus

You might be interested in
While Angela is making modifications to Katie’s Word document, she would like to inform Katie of the reasoning for the change. W
Ostrovityanka [42]

Answer:

Email would work

6 0
4 years ago
You have double-clicked a device in Device Manager to open its Properties window. Where can you find information about IRQs the
Setler [38]

To find information about IRQs the device might use, make alteration to the View menu option and then change it to Resources by type.

<h3>How do one find information about IRQs?</h3>

The best way to see IRQ information in Windows is through the use of Device Manager.

Note that for one to be able to find information about IRQs the device might use, one has to makes some changes to the View menu option and then one can change it to Resources by type to be able to see the Interrupt request (IRQ) part.

Learn more about Device Manager from

brainly.com/question/869693

#SJ1

7 0
2 years ago
Program your own file lab7.cpp in which your main() function will test the new data structure. The main() function, Declares an
Stella [2.4K]
Is this a question or just something up here just to be here
3 0
3 years ago
Using a WHILE loop write a program that asks the user to guess your favorite number. The program should end when the user guesse
eduard

Answer:

fav_number=26

guess=0

while 0==0:

   try:

       guess=int(input('Enter your guess: '))

   except:

       print ('You have entered an invalid value.')

   else:

       if guess == fav_number:

           break

       elif guess>fav_number:

            print ('Try a smaller number.')

       elif guess<fav_number:

           print ('Try a larger number')

Explanation:

define a variable fav_number and set it to number. write an infinite while loop to read input from user. In try block get input from user, if user enters invalid input code in except block will be executed. For valid input

  1. check if its greater than favorite number, if yes print try smaller number.
  2. check if its smaller than favorite number, if yes print try larger number.
  3. check if its equal to favorite number, break loop and exit

4 0
4 years ago
the two main ways in which marketers address the competition with their strategies are by satisfying a need better than a compet
Nonamiya [84]

Offering a lower price (Apex)

4 0
3 years ago
Read 2 more answers
Other questions:
  • A _____ is a digital media file distributed over the Internet using syndication feeds for playback on mobile devices and persona
    6·1 answer
  • The ____ contains the computer's "brain," the central processing unit (CPU).
    5·2 answers
  • In networking, what addressing type is used in sending an email to someone?
    6·1 answer
  • How does a pond form?
    7·1 answer
  • Melinda completed the Computer Programming Aptitude Test when she applied for a position with Beta Electronics. Six months later
    14·1 answer
  • Provide a class Letter for authoring a simple letter. In the constructor, supply the names of the sender and the recipient: def
    11·1 answer
  • What website or search engine that helps people find the web pages that they are looking for by tying in the subject they want?​
    5·1 answer
  • How would you identify communication equipment?
    10·1 answer
  • How to install specific version of create-react-app so.
    10·1 answer
  • List at least three kinds of harm a company could experience from electronic espionage or unauthorized viewing of confidential c
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!