So I decided to take a java programming class because I did it before and quite enjoyed it but my first assignment for the class, I don't even know where to start.
Here's the problem:
"This is your final lab for the year and will bring together many of the ideas we have talked about all year long. You will create a soil nitrogen storage and transfer model for a catchment, lets call it the Imaginary River, somewhere near Tumbler Ridge, British Columbia. You will use the supplied map which represents the average elevation of each 100 by 100 metre cell. You will start off with a constant amount of nitrogen in each cell and calculate the remaining nitrogen in each cell every month for 100 years. Nitrogen leaves each cell as it washes away in direct proportion of the difference in elevation between the cell and its neighbours. Each metre of difference causes 0.001 percent of the nitrogen per mm of rain to wash into the adjoining cells of lower elevation. Remember, water (along with the nitrogen) can only run downhill.
Here is the average amount of rainfall in millimetres in the Imaginary Valley, recorded at the IV Recording Station, coincidentally in the middle of our catchment area.
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
94.3 71.7 46.5 28.5 25.8 20.7 14.9 19.6 27.3 51.2 98.0 108.9
Each cell starts with 500 kg of biological nitrogen and receives 16 kg of new nitrogen per metre of rainfall every year (supposedly from the NOx in the air pollution). I want you vary the rainfall every month of every year a little, but stay within 10 percent of the averages above. After you open your elevation map I want you to save it as a .txt (Tab Delimited) file from Open Office and load it into your Java program. Perform the 100 year simulation in your program and write out a 10 by 30 grid of remaining nitrogen values as a .csv (Comma Separated Value) file. Load that back into Open Office and colour the cells based on the following algorithm. The third of the cells with the most nitrogen colour dark gray, the middle third light gray, and the lowest third white. I want a printout for every 25 (that makes for 5 maps) years showing what (if any) changes happen."
// There is a map but i can't seem to atach it, it's an excell file with a bunch of different elevations going from 500-579m.
But yeah if someone could give me some tips on where to start that would be great. Thanks in advance! :D