Problem Description At sea level, atmospheric pressure is 100kPa and water begins to boil at 100C. As you go above sea level, atmospheric pressure decreases,
Problem Description
At sea level, atmospheric pressure is 100kPa and water begins to boil at 100C. As you go above sea level, atmospheric pressure decreases, and water boils at lower temperatures. As you go below sea level, atmospheric pressure increases, and water boils at higher tempera- tures. A formula relating atmospheric pressure to the temperature at which water begins to boil is
P =5B400 where P is atmospheric pressure measured in kPa, and B is the temperature at which water
begins to boil measured in C. Given the temperature at which water begins to boil, determine atmospheric pressure. Also
determine if you are below sea level, at sea level, or above sea level.
Note that the science of this problem is generally correct but the values of 100C and 100 kPa are approximate and the formula is a simplification of the exact relationship between waters boiling point and atmospheric pressure.
Input Specification
The input is one line containing an integer B where B 80 and B 200. This represents the temperature in C at which water begins to boil.
Output Specification
The output is two lines. The first line must contain an integer which is atmospheric pressure measured in kPa. The second line must contain the integer -1, 0, or 1. This integer represents whether you are below sea level, at sea level, or above sea level, respectively.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started