Solve the following problem:
Q: A mass of 2 kg ethane gas at 500 kPa, 100°C, undergoes a reversible polytropic expansion with exponent, n= 1.3, to a final temperature of the ambient, 20°C, calculate the total entropy generation for the process if the heat is exchanged with the ambient. You must solve the given problem in a steps.You need to include all the units which are needed to complete the problem.