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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!