#include<iostream>
#include<string>
#include<math.h>
#include<graphic.h>
#include<vector>
using namespace std;
const double R =0.002;
class Gas{
public:
double ia;
double ir;
Gas (double aA,double aB);
};
class VanDerWaalCalculator{
public:
Gas iGas;
float iVolume[100];
float iPressure[100];
float iTempreature;
float iNumberofMoles;
float iNumberofPoints;
VanDerWaalCalculator(){
};
VanDerWaalCalculator(Gas aGas,double aMinimumVolume, double
aMaximumvolume,double eTempreature,double aNumberofMoles,int
aNumberofpoints){
iGas=aGas;
aMinimumVolume=0;
aMaximumvolume=0;
eTempreature=0;
aNumberofMoles=0;
// P+(an^2/v^2)(V-bn)=nRT VanderWaals Formula
void generatepressure(){//genertae pressure
int bik;
n=(aGas+(pow(aMinimumVolume,2)/pow(aMaximumvolume,2))(eTempreature-aNumberofpoints))/aNumberofMoles;
cout<<"The Value is "<<bik;
}
}
void draw(vector<int> adj[], int I, int M){
adj[I].push_back(I);
adj[M].push_back(M);
for (int k = 0; I < K; ++K)
{
cout << "The Venderwall graph"<<endl;
cout<<I << ;
};
int main(){
Gas Oxygen (0.027,0.0014);
int numberOfPoints=100;
float minimumVolume=1;
float maximumValue=10;
float Tempreature=200;
float numberOfMoles=1;
VanDerWaalCalculator(Oxygen,minimumVolume,maximumValue,Tempreature,numberOfMoles);
VDW.generatepressure();
VDW.draw();
}
This code will run more perfectly and fastly onActive X and on Atom
program in C++ using DISLIN. (20) A particularly simple abstraction of a gas views the gas...
use c++ A particularly simple sbstraction of a gas views the gas as a material witha prossure dependent volume. In this abstraction, the actual chemical composition of the gas is unimportant as only its physical properties are of practical interest. Develop a class that implements a physical abstraction of a gas in which the only relevant propertics are its Van der Waals constants a and b and the problem is to determine both the pressure and the volume of the...
The van der Waals equation gives a relationship between the pressure p (atm), volume V(L), and temperature T(K) for a real gas: .2 where n is the number of moles, R 0.08206(L atm)(mol K) is the gas con- stant, and a (L- atm/mol-) and b (L/mol) are material constants. Determine the volume of 1.5 mol of nitrogen (a .39 L2 atm/mol2. b = 0.03913 L/mol) at temperature of 350 K and pressure of 70 atm. The van der Waals equation...
please help. #89 and #101 please nc acid, formic acid decomposes to give CO gas HCHO,)H,O0 + CO(g) van der Waals Equation If 3.85 L of carbon monoxide was collected over water 5.101 Calculate the pressure of ethanol vapor, C,H2OH(g), at 82.0°C if 1.000 mol C>H OH(g) occupies 30.00 L. Use the van der Waals equation (see Table 5.7 for data). Com- pare with the result from the ideal gas law. 5.102 Calculate the pressure of water vapor at 120.0°C...
3.355 M K2SO4 solution can be prepared by A) dilution of 500.0 mL of 1.00 MK2SO4 to 1.00 L B) dissolving 46.7 g of K2SO4 in water and diluting to 500.0 ml, then diluting 25.0 ml of this solution to a total volume of 500.0 mL C) dissolving 46.7 g of K2SO4 in water and diluting to a total volume of 250.0 mL D) dilution of 1.00 mL of 0.355 M K2SO4 to 1.00 L E) diluting 46.7 mL of...