in house dollar bill thumbnail
In-House Image
 Total: 43,551 books
 New: 85 books




small login logo

Please enter your details to login and enjoy all the fun of the fair!

Not a member? Join us here. Everything is FREE and ALWAYS will be.

Forgotten your login details? No problem, you can get your password back here.

***URGENT*** Java programming help needed tonight!!!

Pages: [1]

topic icon Author Topic: ***URGENT*** Java programming help needed tonight!!!  (Read 2213 times)

srca1941

  • VIP
message icon
***URGENT*** Java programming help needed tonight!!!
« on: April 26, 2009, 08:45:13 PM »

Nothing to do with comics, but I'm desperate and trying several different boards where I think there might be folks who can help me. If there is anyone here familiar with Java, I urgently need help for my programming class. My professor gave me a take home test, but three of the four parts deal with arrays, which he only briefly covered, and what he asks for on the exam, he didn
ip icon Logged

John C

message icon
Re: ***URGENT*** Java programming help needed tonight!!!
« Reply #1 on: April 26, 2009, 09:23:37 PM »

It's been a few years since I've done any Java work, but most languages work the same, so I think we're safe.  Still, assuming I'm rambling incoherently and testing everything I suggest wouldn't be the worst idea in the world...

The big operator for arrays is indexing.  If you have an array A with five integers, then you have five elements:  A[0], A[1], A[2], A[3], A[4]; each of these acts just like a normal integer (or whatever) variable (or object).  Your FOR loop (in getTotal) is giving you the indices in order.  From there, adding them should be obvious and averaging them the same...but if it isn't, I should be checking e-mail on and off for another half hour or so and my direct address should be accessible over to the left.
ip icon Logged
Pages: [1]
 

Comic Book Plus In-House Image
Mission: Our mission is to present free of charge, and to the widest audience, popular cultural works of the past. These are offered as a contribution to education and lifelong learning. They reflect the attitudes, perspectives, and beliefs of different times. We do not endorse these views, which may contain content offensive to modern users.

Disclaimer: We aim to house only Public Domain content. If you suspect that any of our material may be infringing copyright, please use our contact page to let us know. So we can investigate further. Utilizing our downloadable content, is strictly at your own risk. In no event will we be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this website.