Question

(20) A particularly simple abstraction of a gas views the gas as a material with a pressure dcpendent volume. In this abstrac

program in C++ using DISLIN.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#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

Edit File Find View Navigate Editor Product Debug Source Control Window fr S My Mac fr I Build fr Failed Today at 9:03 PM D Mfr OFilter Auto O statistical final.mp4 212 Book by...dhr png Abubakar Eng Stock spaceoftrasgender sinthesociety.mp4 ll copy.

Add a comment
Know the answer?
Add Answer to:
program in C++ using DISLIN. (20) A particularly simple abstraction of a gas views the gas...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT