Unit #2 Homework Problem
Course Outline HW & Programming Assignments
 3hw4b

  Write a program to compute the volume V2 (in liters) to which one mole of an ideal gas at absolute temperature T and initial volume of V1 must be isothermally expanded in order to perform a given amount of work W (in Joules). Your program should repeatedly prompt the user to enter W, V1, and T until a zero is entered for W. Use the formula

 where R is the gas constant 8.31451 J / (mol * K ) and n is the number of moles.