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:
A 3-phase, 50 Hz, 110 KV overhead line has conductors
Explanation:
hope it will helps you
Answer: Partial pressures are 0.6 MPa for nitrogen gas and 0.4 MPa for carbon dioxide.
Explanation: <u>Dalton's</u> <u>Law</u> <u>of</u> <u>Partial</u> <u>Pressure</u> states when there is a mixture of gases the total pressure is the sum of the pressure of each individual gas:
The proportion of each individual gas in the total pressure is expressed in terms of <u>mole</u> <u>fraction</u>:
= moles of a gas / total number moles of gas
The rigid tank has total pressure of 1MPa.
molar mass = 14g/mol
mass in the tank = 2000g
number of moles in the tank: = 142.85mols
molar mass = 44g/mol
mass in the tank = 4000g
number of moles in the tank: = 90.91mols
Total number of moles: 142.85 + 90.91 = 233.76 mols
To calculate partial pressure:
For Nitrogen gas:
= 0.6
For Carbon Dioxide:
0.4
Partial pressures for N₂ and CO₂ in a rigid tank are 0.6MPa and 0.4MPa, respectively.
Answer:
The initial temperature is 649 K (376 °C).
The final pressure is 0.965 MPa
Explanation:
From the ideal gas equation
PV = nRT
P is the initial pressure of water = 2 MPa = 2×10^6 Pa
V is intial volume = 150 L = 150/1000 = 0.15 m^3
n is the number of moles of water in the container = mass/MW = 1000 g/18 g/mol = 55.6 mol
R is gas constant = 8.314 m^3.Pa/mol.K
T (initial temperature) = PV/nR = (2×10^6 × 0.15)/(55.6 × 8.314) = 649 K = 649 - 273 = 376 °C
From pressure law,
P1/T1 = P2/T2
P2 (final pressure) = P1T2/T1
T2 (final temperature) = 40 °C = 40 + 273 = 313 K
P1 (initial pressure) = 2 MPa
T1 (initial temperature) = 649 K
P2 = 2 × 313/649 = 0.965 MPa
Answer:
The dependent variable is MEDV - Median value of owner-occupied homes in $1000's
Explanation:
The median value of the house has to be predicted, based on its properties and neighborhood properties, this can be done by using a linear regression model.
The dependent variable in Machine Learning is the output variable that we want to predict.
Therefore, according to the question given "MEDV" is the dependent variable.