Assignment 2
Due Thursday 11th October.
This assignment is based on the first one; if your first assignment
is very untidy or unreliable, fix it before building on it.
Modify the first assignment in two ways:
- You should define an object (struct) to represent
a meteorological observation, and have a large array of observation
objects instead of separate arrays for each of the different
pieces of data. Your program should read the whole data file into
the array when it starts.
- Instead of having your program interact with a user in the normal way,
it should interact through a web browser using the CGI interface.
Design a normal HTML web page that allows a user to ask a question
by completing a <form>, and make your program display
the answer to that question in a clear and tidy manner.
Your program should
not enter a loop expecting multiple questions from the user. CGI does
not work in that way. Each time the HTML form is submitted, the program
is re-run. When your program has produced the HTML reponse to the
user's query, it should exit.
Use the submit program to electronically submit the C++ program.
You do not need to submit the HTML file,
But make sure that the whole thing is accessible through a
web browser while it is being graded. Ensure that anyone can use this
URL:
http://rabbit.eng.miami.edu/~youraccount/hw2.html
to access and run your CGI program at any time.