To make sure you can write programs using streams.
For this assignment, you should use the stream operations in streams.scm. Note this this file uses DrScheme's built-in delay and force, rather than our own definitions.
A weather station reports the temperature (in degrees Celsius) every hour as a stream of integers.
Write program fahrenheit-stream that consumes a stream of Celsius temperatures and produces a stream of Fahrenheit temperatures using the appropriate conversion formula.
Write a program temperature-difference that consumes a stream of temperatures (either Celsius or Fahrenheit) and produces a stream of the difference of each temperature from the previous temperature. What should temperature-difference produce when given the-empty-stream? A stream with only a single temperature?
output-temperature[N] = (input-temperature[N] + output-temperature[N-1]) / 2Write program smooth-temperature-stream that consumes a temperature stream and produces a new temperature stream in this way. Hint: Do not worry about the N's, just define the output stream in term of itself and the input.
Turn in a single file hwk7.ss (or hwk7.scm) containing all code and documentation for this assignment. Make sure that both students' names are in a comment at the top of the file.
Refer to the Homework Expectations when preparing your solutions.