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
Answer:
Explanation:
The determination of any further properties requires the knowledge of two independent properties. (Temperature and specific volume in this case). The specific volumes for saturated liquid and vapor at 140 °C are, respectively:
Since , it is a liquid-vapor mixture. The quality of the mixture is:
The specific enthalpies for saturated liquid and vapor at 140 °C are, respectively:
The specific enthalpy is:
Answer:
TRUE
Explanation:
Steel has low carbon percentage than cast iron.
Steel has carbon content around 2% where as cast iron has carbon content around 4%.
hence, more the carbon percentage more brittle is the material i.e. cast iron is brittle in nature and steel is ductile in nature.
that is why steel is used in various material. It is used from utensil to huge structures.