A substance is brought from a state of $P_{1}, v_{1}$ to a state of $P_{2}, v_{2}$ in a piston/cylinder arrangement. Assume that the process can be approximated as a polytropic process. Write a program that will find the polytropic exponent, $n,$ and the boundary work per unit mass. The four state properties are input variables. Check the program with cases that you can easily hand calculate.