Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider the following equation PVc/RT = 1 + B/Vc + C/Vc2 + D/Vc4 + E/Vc5 In thi

ID: 3562558 • Letter: C

Question

Consider the following equation PVc/RT = 1 + B/Vc + C/Vc2 + D/Vc4 + E/Vc5 In this application Vc is the specific volume which has a value of 1.5 liters/mole. T is the temperature and R is the ideal gas constant which has a value of 0.08206 (liter atm/(mole K)) B. C, D, and E are constants with the following values B = -0.11092 C = -0.01278 D = 2.692 times 105 E = 4.3 times 10-6 Write a script file that calculates the pressure at 4 different temperatures (125 K. 135K 145k and 155K). Use the fprintf command to place the results in two columns (temperature in the first column and pressure in the second column). Also label the columns

Explanation / Answer

clear all
clc
Vc=1.5;
R=0.08206;
B=-0.11092;
C=-0.01278;
D=2.692*10^-5;
E=4.3*10^-6;
T=[125 135 145 155];
P=R.*T/Vc *(1+B/Vc+C/Vc^2+D/Vc^4+E/Vc^5);
ans(:,1)=T;
ans(:,2)=P;
fprintf('Temperature | Pressure ');
for i=1:4
fprintf('%d %d ', ans(i,1),ans(i,2))
end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote