Results 1 to 4 of 4
Thread: new to java, school assignment
- 02-22-2012, 03:36 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 1
- Rep Power
- 0
new to java, school assignment
Write code for the method double avarage (double g[]) in a class by the name EarthAcceleration so the mean of gValues[] = {9.80, 9.85, 9.82, 9.86, 9.78} calculates.
This is what's given to me already, but how do I proceed ;/?
Java Code:public class EarthAcceleration { public EarthAcceleration() { } public double average(double g[]) { } }
Last edited by Limens; 02-22-2012 at 03:57 PM.
- 02-22-2012, 04:00 PM #2
Re: new to java, school assignment
How would you find the average without a computer? Express that systematically and convert it into code.
If you haven't a clue about Java coding, start here: Trail: Learning the Java Language (The Java™ Tutorials)
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
- 02-22-2012, 05:04 PM #3
Senior Member
- Join Date
- Jan 2012
- Posts
- 147
- Rep Power
- 0
Re: new to java, school assignment
You have to make the array first, before you even want to think about getting the mean for the array.
- 02-22-2012, 06:10 PM #4
Similar Threads
-
I need help with my school assignment, please
By burnenator in forum New To JavaReplies: 13Last Post: 11-21-2011, 05:54 AM -
Need help with school assignment
By sljkbn in forum New To JavaReplies: 6Last Post: 10-28-2009, 02:07 PM -
Help with noob school assignment
By debo3381 in forum New To JavaReplies: 3Last Post: 09-23-2009, 05:02 AM -
Question about school assignment
By wata in forum New To JavaReplies: 7Last Post: 08-18-2009, 03:00 PM -
Please help... assignment for school
By confused2000 in forum New To JavaReplies: 3Last Post: 11-12-2007, 09:12 AM
Bookmarks