Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Java Programming Help

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java Programming Help

    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!


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Java Programming Help

    For most programs these are the things that need to be considered:
    Where will the program get the data it needs from?
    What computations will be done with that data?
    What reports will be written after the computations?

    Start at the top of the list and work on how the program will get the data it needs.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 1
    Last Post: January 6th, 2013, 06:32 AM
  2. can you pls help me in this java programming? code=java
    By srivani in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 25th, 2012, 02:31 AM
  3. android programming vs game programming using java
    By vgoel38 in forum Android Development
    Replies: 4
    Last Post: September 8th, 2012, 05:48 PM
  4. Replies: 0
    Last Post: December 12th, 2011, 03:17 PM
  5. Is java a power full programming language? can java do this?
    By Jhovarie in forum Java Theory & Questions
    Replies: 5
    Last Post: March 2nd, 2011, 02:02 PM