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
Galina-37 [17]
2 years ago
10

a) At a particular company, employees are rated at the end of each year. The rating scale begins at 0.0, with higher values indi

cating better performance and resulting in larger raises. The value awarded to an employee is either 0.0, 0.4, or 0.6 or more. Values between 0.0 and 0.4, and between 0.4 and 0.6 are never used. The meaning associated with each rating is shown in the following table. The amount of an employee’s raise is $2400.00 multiplied by their rating. Write a program that reads a rating from the user and indicates whether the performance was unacceptable, acceptable or meritorious. The amount of the employee’s raise should also be reported. Your program should display an appropriate error message if an invalid rating is entered. code in python programming
Engineering
1 answer:
ELEN [110]2 years ago
4 0

The program that can display an appropriate error message if an invalid rating is illustrated below.

<h3>How to illustrate the program?</h3>

The program for the error message will be:

CONSTANTS

RAISE_FACTOR = 2400.00

UNACCEPTABLE = 0.0

ACCEPTABLE = 0.4

MERITORIOUS = 0.6

# input of user rating

rating = float(input('Enter your rating: '))

# based on rating display the performance and salary raise

if rating == UNACCEPTABLE:

print('Your performance was UNACCEPTABLE. Raise in salary: $%.2f' %(RAISE_FACTOR*UNACCEPTABLE))

elif rating == ACCEPTABLE:

print('Your performance was ACCEPTABLE. Raise in salary: $%.2f' %(RAISE_FACTOR*ACCEPTABLE))

elif rating == MERITORIOUS:

print('Your performance was MERITORIOUS. Raise in salary: $%.2f' %(RAISE_FACTOR*MERITORIOUS))

else: # invalid rating

print('Invalid Rating. Valid ratings are 0.0, 0.4 and 0.6')

Learn more about program on:

brainly.com/question/1786465

#SPJ1

You might be interested in
Consider a single crystal oriented such that the slip direction and normal to the slip plane are at angles 42.7° and 48.3°, resp
icang [17]

Answer:

A certain vehicle loses 3.5% of its value each year. If the vehicle has an initial value of $11,168, construct a model that represents the value of the vehicle after a certain number of years. Use your model to compute the value of the vehicle at the end of 6 years.

Explanation:

5 0
3 years ago
When a man returns to his well-sealed house on a summer day, he finds that the house is at 35°C. He turns on the air conditioner
ipn [44]

Answer:

\dot W = 1.667\, kW

Explanation:

A well-sealed house means that there is no mass interaction between air indoors and outdoors. Hence, cooling process is isochoric. The heat removed by the air conditioner is:

\dot Q_{L} = \frac{m_{air}}{\Delta t} \cdot c_{v, air} \cdot (T_{o}-T_{f})\\\dot Q_{L} = \frac{800\, kg}{(30\, min)\cdot (\frac{60\, s}{1 \, min} )}\cdot (0.7 \frac{kJ}{kg \cdot K}) \cdot (15\, K)\\\dot Q_{L} = 4.667\, kW

The power drawn by the air conditioner is:

\dot W = \frac{\dot Q_{L}}{COP_{R}} \\\dot W = \frac {4.667\, kW}{2.8}\\\dot W = 1.667\, kW

3 0
3 years ago
A insulated vessel s has two compartments separated by a membreane. On one side is 1kg of steam at 400 degC and 200 bar. The oth
Lilit [14]

Answer:

See explaination

Explanation:

See attachment for the detailed step by step solution of the given problem.

5 0
3 years ago
The voltage valve at which a zirconia O2S switches from rich to lean and lean to rich is
frez [133]
I think the answer is C) 0.25v I’m not sure tho
6 0
3 years ago
The blade tension is correct when you can hear a<br>O Thunk<br>O Twang<br>O Neither​
Anastaziya [24]

Answer:

maybe it's twang because of the blade tension

3 0
3 years ago
Other questions:
  • The correct statement about the lift and drag on an object is:_______
    7·2 answers
  • Using a forked rod, a 0.5-kg smooth peg P is forced to move along the vertical slotted path r = (0.5 θ) m, whereθ is in radians.
    13·1 answer
  • A plane surface 25 cm wide has its temperature maintained at 80°C. Atmospheric air at 25°C ows parallel to the surface
    12·1 answer
  • A gas cylinder is connected to a manometer that contains water. The other end of the manometer is open to the atmosphere, which
    12·1 answer
  • What is the essence of the Central park and it impact in New York?​
    7·1 answer
  • Which best describes the similarities and differences between the Engineering and Technology pathway and the Science and Math pa
    7·1 answer
  • 5. After a long period of pumping from an unconfined aquifer at a constant rate of 850 m3/day, the cone of depression reaches eq
    11·1 answer
  • How did engineers help to create a ceiling fan
    8·1 answer
  • Advantage of a sheave wheel in a shaft headgear<br>​
    10·1 answer
  • Calculate moments about points A,B,C,D
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!