Lisp Quiz #3
Posted: Sat Jun 13, 2009 1:08 am
Hope no one minds if I post a new quiz. This one is blatantly borrowed from Ruby Quiz.
Given a location (a city name, postal code, or some other identifier), print the current temperature.
Example:
This isn't a difficult problem, but may be a good way to explore some corners of your Lisp that you otherwise haven't touched yet. It's also a tool with a practical application (if you're curious what the weather is like).
Please don't post any code until Monday June 15th, to allow others a chance to stew over the problem a bit.
Bonus: Allow a choice between English and Metric units.
Bonus^2: Print other current weather conditions in addition to temperature.
Bonus^4: Print a complete weather forecast.
Given a location (a city name, postal code, or some other identifier), print the current temperature.
Example:
Code: Select all
> (weather 12345)
The temperature in SCHENECTADY, NY is 55 degrees F.
Please don't post any code until Monday June 15th, to allow others a chance to stew over the problem a bit.
Bonus: Allow a choice between English and Metric units.
Bonus^2: Print other current weather conditions in addition to temperature.
Bonus^4: Print a complete weather forecast.