of water at is mixed with different amounts of water at , from to . You will make the program find the final temperature and the total change of entropy for each amount, and how much cold water brings the mix to .
The idea. The final temperature is the mass-weighted average. Each part changes its entropy by , with temperatures in kelvin. The second law says the total must rise.
Your tasks.
Tf, the final temperature in kelvin for every cold mass in m.dS, the total change of entropy for every cold mass.m40, the cold mass that makes the final temperature .Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…