Question: Problem 2 (35 points): Van Der Waals equation As the temperature and the volume of the gas changes, the gas pressure changes. The Van Der


Problem 2 (35 points): Van Der Waals equation As the temperature and the volume of the gas changes, the gas pressure changes. The Van Der Waals equation given below is often used for to find pressure of any given gas type R T 2 where P is the pressure (atm) V is the volume in liters (L) R is gas constant, R - 0.08206 L-atm/mol-K T is the absolute temperature in Kelvin (K) n is the quantity of gas (in mols) a and b depend on the type of gas. Some values are given in Table 1 below a (L2-atm/mol2 0.0341 0.244 1.36 6.49 3.59 Gas Type b(L/mol 0.0237 0.0266 0.0318 0.0562 0.0427 as Helium, He Hydrogen, H2 Oxygen, O2 Chlorine, Cl2 Carbon dioxide, CO2 4 Implement an interactive C program to let the user enter required information and display, in tabular format, values of volume (Liter (L)) and Pressure (atm) at a given temperature. See sample code execution Your C program should include at least the following user defined functions: * print_list function is to display the information given in Table 1 above. void print_list(void); pressure_cal function returns the value gas pressure given all input values shown below. gas_ type value is between 1 and 5 - to be used to choose correct values of a and b. double pressure_cal(int gas_type, double T, double V, double n); See sample code execution on the next page
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
