Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can you do a Dev C++ program for this question please its 2 pages i combine them together, please post it with the describtion of
can you do a Dev C++ program for this question please its 2 pages i combine them together, please post it with the describtion of variables
The vapor pressure of a species is a measure of its volatility. If a substance has a high vapor pressure at a given temperature, its volatility is greater (that is. more of that substance is in the gas phase). It is important to know vapor pressure for many engineering applications, especially relating to separation of two substances. Two equations that may be used to estimate the vapor pressure of pure substances are the Clausius-Clapeyron equation (1) and the empirical Antoine equation (2): In p = -(delta H v)/(RT) + D where p* is the vapor pressure of the pure species in mm Mg, is the specific enthalpy of the species in question. R is the universal gas constant. T is the temperature in Kelvin, and D is a species-specific constant: and Log 10 P = A-(B/(T-C)) where p* is the vapor pressure of the pure species in bar. T is the temperature in Kelvin, and A, B, and Care species-specific constants. For this program, estimate the pressure for benzene at any temperature. Define D in the Clausius-Clapeyron equation as a symbolic constant in your program, and use 18.69. Also define A, B, and C in the Antoine equation as symbolic constants in your program and use the values 4.01814, 1203.835. and -53.226, respectively. Write a C program that will allow the user to enter the temperature T in degree 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 degree C to degrees Kelvin. Use the following equation to help you. Degrees K = degress C + 273.15 Report both vapor pressures in bar. To convert from mm Hg to bar. use the following relation: 1 bar = 750.06183 mmHg As a hint, you can use the exp() function to return the value ofe raised to the ()^th power. 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 PC's 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 barStep 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