subject

The pressure of a gas changes as the volume and temperature of the gas vary. write a program that uses the van der waals equation of state for a gas, to display in tabular form the relationship between the pressure and the volume of n moles of carbon dioxide at a constant absolute temperature (t). p is the pressure in atmospheres, and v is the volume in liters. the van der waals constants for carbon dioxide are a = 3.592 l 2 atm/mol 2 and b = 0.0427 l/mol. use 0.08206 l atm/mol k for the gas constant r. inputs to the program include n, the kelvin temperature, the initial and final volumes in milliliters, and the volume increment between lines of the table. your program will output a table that varies the volume of the gas from the initial to the final volume in steps prescribed by the volume increment. here is a sample run: enter at the prompts the number of moles of carbon dioxide, the absolute temperature, the initial volume in milliliters, the final volume, and the increment volume between lines of the table. quantity of carbon dioxide (moles)> 0.02 temperature (kelvin)> 300 initial volume (milliliters)> 400 final volume (milliliters)> 600 volume increment (milliliters)> 50 output file
0.0200 moles of carbon dioxide at 300 kelvin volume (ml) pressure (atm) 400 1.2246 450 1.0891 500 0.9807 550 0.8918 600 0.8178

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 09:30
Retype the statements, correcting the syntax errors. system.out.println("num: " + songnum); system.out.println(int songnum); system.out.println(songnum " songs"); note: these activities may test code with different test values. this activity will perform two tests: the first with songnum = 5, the second with songnum = 9. see how to use zybooks.
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
7. test average and grade write a program that asks the user to enter five test scores. the program should display a letter grade for each score and the average test score. write the following methods in the program: calcaverage: this method should accept five test scores as arguments and return the average of the scores. determinegrade: this method should accept a test score as an argument and return a letter grade for the score, based on the following grading scale: score letter grade 90-100 a 80-89 b 70-79 c 60-69 d below 60 f
Answers: 1
question
Computers and Technology, 25.06.2019 12:10
Create a function called quadform( ) that takes as input the coefficients of the quadratic equation (a,b,c) and returns the two distinct real roots (x1,x2) as output, if they exist. in addition, the function returns a message (flag) that informs the user if an error occurred when trying to find two distinct real roots. the possible errors are: (1) "only one root is found"; (2) "imaginary roots are found"; (3) "any value of x is a solution"; (4) "no zeroes exist." if no errors occur, then flag should be "no errors".
Answers: 1
You know the right answer?
The pressure of a gas changes as the volume and temperature of the gas vary. write a program that us...
Questions