DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Computer Science (http://www.daniweb.com/forums/forum14.html)
-   -   Need Help with Array's (http://www.daniweb.com/forums/thread159933.html)

Bylsma89 Nov 28th, 2008 9:32 pm
Need Help with Array's
 
Hello, I have two assignments on arrays that are due an a few days and i am completely lost any help would be appriciated. I am a first year student in programming design and development and i despretly want to understand this. I am flowcharting an array that needs to input rainfall for each month of the year so a SIZE 12. and i am really lost so im going to do the best i can with explaining this so please be patient

I need the program to do the following:
1. Calculate and display the total rainfall for the year.
2. avg the monthly rainfall
3. calculate the highest rainfall
4. calculate the lowest rainfall

Now so far i have declared the constant 12, and declared constant MONTHS. Now the material i do not understand is what the term SET INDEX=1 means? As for the calculations i need to create 4 different functions and return the value into the main program correct? Now does that mean that i need to create a loop in the main program at all or is it all going to be in the function?

As i said i am new to this so please be patient

Rashakil Fol Nov 28th, 2008 11:26 pm
Re: Need Help with Array's
 
Who are these people who've put you through such a ridiculous assignment? Off with their heads! You should be writing code!


All times are GMT -4. The time now is 11:57 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC