Solve the following problem:
Q: A piston cylinder has 2.5 kg ammonia at 50 kPa, -20oC. Now it is heated to 50oC at constant pressure through the bottom of the cylinder from external hot gas at 200oC. Find the heat transfer to the ammonia and the total entropy generation. You should solve the given problem in a steps.You need to include all the units which are needed to complete the problem.