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
Anna007 [38]
3 years ago
5

Write a function called PayLevel that returns a level given an Ssn as input. The level are: "Above Average" if the employee mak

es more than the average for their department "Average" if the employee makes the average for their department "Below Average" if the employee makes less than the average for their department
Computers and Technology
1 answer:
kotykmax [81]3 years ago
7 0

Answer:

Explanation:

Since no further information was provided I created the PayLevel function as requested. It takes the Ssn as input and checks it with a premade dictionary of Ssn numbers with their according salaries. Then it checks that salary against the average of all the salaries and prints out whether it is Above, Below, or Average. The output can be seen in the attached picture below.

employeeDict = {162564298: 40000, 131485785: 120000, 161524444: 65000, 333221845: 48000}

average = 68250

def PayLevel(Ssn):

   pay = employeeDict[Ssn]

   print("Employee " + str(Ssn) + " is:", end=" "),

   if pay > average:

       print("Above Average")

   elif pay < average:

       print("Below Average")

   else:

       print("Average")

PayLevel(161524444)

PayLevel(131485785)

You might be interested in
Connect research concepts to their definitions
stellarik [79]
Answer Research is defined as the creation of new knowledge and/or the use of existing knowledge in a new and creative way so as to generate new concepts, methodologies and understandings
8 0
2 years ago
Tamera has $500 she is looking to save for a class trip she wants to earn the most possible interest and will not need access to
Irina18 [472]
Money Market Account has higher interest rate than Savings Account and Savings Account pays similar interest as Certification of Deposit (CD). Checking Account has even smaller interest rate.
Answer: B ) Money Market Account. 

5 0
4 years ago
In python how do you write for prime factors
olasank [31]

Answer:

The while loop is used and the factors of the integer are computed by using the modulus operator and checking if the remainder of the number divided by i is 0. 3. Then the factors of the integer are then again checked if the factor is prime or not.

Explanation:

google

4 0
3 years ago
Explain the measures put in place in order to maintain each of the element of computer security<br>​
solniwko [45]

Answer:

Contains a firewall.

Try's to keep all software up to date.

Able to use antivirus software and keep it current.

Allows you to use a password

Explanation:

Computer security is important because it keeps your information protected. It's also important for your computer's overall health

Please have a great day <3

8 0
2 years ago
Create a UNIX style daemon process that will watch a folder and respond to specific file operations that occur in that folder. T
harina [27]
It would be better for the bets to gets it done. So you would finish it as usuals like your compressor quiz
6 0
3 years ago
Other questions:
  • Which action best describes a branch in a computer program
    15·1 answer
  • The inherent portability of which medium, gives it an advantage over other types of media that require an individual’s full atte
    10·1 answer
  • Gary says, "Ports are where data enter a network before reaching a gateway. The data travel via transmission media." Explain why
    12·2 answers
  • When converting old html code to xhtml, make sure to replace the ____ attribute with the background-color style?
    10·1 answer
  • What makes Darth Vader's sound so sinister, menacing and evil?
    6·2 answers
  • Write a for loop to print all NUM_VALS elements of vector courseGrades, following each element with a space (including the last)
    11·1 answer
  • A programmer is writing a program that is intended to be able to process large amounts of data. Which of the following considera
    8·1 answer
  • How many of yall are willing too sub to my channel called "Space Juice" with around 200 subs?!​
    14·1 answer
  • Kali, a Python programmer, is using the turtle module to write the word "hello." Which code should she use to indicate the locat
    9·2 answers
  • Select the correct answer..
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!