Question

Using python We have a steam heating boiler whose bursting pressure is known, but we of...

Using python

We have a steam heating boiler whose bursting pressure is known, but we of course want to use it only at pressures well below this limit. Our engineers recommend a safety factor of 3; that is, we should never exceed a pressure that is one-third of the rated bursting pressure. Write a program that reads in the rated bursting pressure and the current pressure, and determines if the boiler is operating at a safe pressure. For example: Enter the rated bursting pressure of the boiler (psi): 625 Enter the current pressure (psi): 137.8 The maximum safe pressure is 208.3 psi. The current pressure is safe. or Enter the rated bursting pressure of the boiler (psi): 625 Enter the current pressure (psi): 250 The maximum safe pressure is 208.3 psi. WARNING! The current pressure is not safe.

Homework Answers

Answer #1
rbp = float(input("Enter the rated bursting pressure of the boiler (psi): "))
cp = float(input("Enter the current pressure (psi): "))
msp = rbp/3
print("The maximum safe pressure is %.1f psi."%msp)
if(cp < msp):
    print("The current pressure is safe.")
else:
    print("WARNING! The current pressure is not safe.")

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT