ICS 492 Ruby on Rails
Metropolitan State University
Spring 2008
Week 3 Programming Assignment
Extend the weather program assigned last week to use a data
model with a database backend.
- Use
a migration to define a weather database.
- Manually
go to weather.com and find the high and low temperatures for both April
and May. Store this information in
the database and retrieve it as needed.
- “Predict”
the weather in May by (programmatically) adding 10 degrees to each high
temperature for April
- Display
the April data, the predicted May data, the actual May data and the
difference between the predicted and actual May data.
- Perform
the same operations for the low temperatures.
- Display
- the
average high and low temperatures for each month, based on actual data,
not predicted data
- the
high for each month
- the
low for each month
- the
largest temperature difference in a single day for each month
Additional Requirements
-
- Use
a minimum of three different views and corresponding methods in the
controller.
- Add
consistent navigation to your views so you can move from page to page
clicking on links (or buttons).
Navigation must be consistent across all pages.
Due date:
- May
29, 2008 (final deadline)
All work (programs 1, 2 and 3) must be completed and
demonstrated to the instructor by May 29.
No exceptions.
Turn in:
- Demonstrate
your program to the instructor during lab.
- If
your program does not pass the instructor’s test data, you will be asked
to fix your program before it will be accepted.