Solve the below problem:
Q: Ammonia is contained in a rigid sealed tank unknown quality at 0oC. When heated in boiling water to 100oC its pressure reaches 1200 kPa. Find the initial quality, the heat transfer to the ammonia and the total entropy generation. You should solve the problem in a step by step.