Problem 1 Ideal Refrigerators Certain common temperature scales are relative, th
ID: 3546864 • Letter: P
Question
Problem 1 Ideal Refrigerators
Certain common temperature scales are relative, that is, with a zero dened against
an arbitrary value. Others are absolute, taking their zero at the theoretical point
where molecular motion stops. Your function must ask the user to specify the units
on the inputs, with your code making the necessary adjustments. Faulty inputs
must be rejected (no complex temperatures, only certain scales admit negative, etc.).
Ensure that TH is always greater than or equal to TC. You may use either if/else
or switch/case structures. Use the menu command to call for inputs. Users must
be oered four options: degrees Fahrenheit or Centigrade, Kelvin or Rankine. If in
doubt about temperature scales, consult Wikipedia or WolframAlpha.
1.1 (10pts) Coecient of Performance
A refrigerator pumps heat from a cold box to a hot ambient. A Carnot refrigeration
cycle represents the ideal machine taking innite time to move the energy from a cold
reservoir at TC to a hot reservoir at TH (eg- your fridge and your room). Refrigerators
are clever devices which can move more Watts of heat than the Watts of work you put
in. The ratio of Q_pumped=W_in is called the coecient of performance, and is dened
for the Carnot/ideal cycle as:
B_ideal =Q_pumped/W_in=Tc/(Th-Tc)
(1)
Write a function which accepts two inputs, TH and TC, and outputs the correct Carnot
eciency. Eq. 1 must be given absolute units of temperature. Your function must
accept any of the four input units above.
Explanation / Answer
http://www.chegg.com/homework-help/questions-and-answers/certain-common-temperature-scales-relative-zero-defined-arbitrary-value-others-absolute-ta-q4604406
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.