Question
ASSIGNMENT: Write a C program that will allow the user to enter the temperature T in C. Once the user enters the initial value, the
ASSIGNMENT:
Write a C program that will allow the user to enter the temperature T in C. Once the user enters the initial value, the program will compute the vapor pressure using both equations. Before performing the calculations, you will need to convert from C to degrees Kelvin. Use the following equation to help you.
Report both vapor pressures in bar. To convert from mm Hg to bar, use the following relation:
As a hint, you can use the exp() function to return the value of e raised to the ()th power.
Your program output will look like the illustration shown on the next page. Use your PCs cursor to determine the horizontal and vertical spacing for the output format.
OUTPUT FORMAT:
********************************************
VAPOR PRESSURE
Enter temperature in degrees C: x
RESULTS
Temperature = xxx.xx K
Vapor Pressure:
By Clausius-Clapeyron = x.xxxx bar
By Antoine = x.xxxx bar
********************************************
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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