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