#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...