i have problem with array plz help

Reply

Join Date: Dec 2004
Posts: 4
Reputation: warm heart is an unknown quantity at this point 
Solved Threads: 0
warm heart warm heart is offline Offline
Newbie Poster

i have problem with array plz help

 
0
  #1
Dec 14th, 2004
hi there good evevning >>>>> :lol: :lol:

i hope all of u is good .....
sorry but i know i am new but i face aproblem with array i don't know how to solve problem with array >>>>>
i have problem that said enter name of 15 studemt and there grade i should read information from the key board i don't how to use the array with buffer

i write this code for the problem i don't know



public class StudentGrade

{

private double grade;
private String name;

public void setgrade( double G)
{
grade=G;
}

public double getgrade()
{
return grade;
}
public void setname( String n)
{
name=n;
}

public String getname()
{
return name;
}

}

public class StudentGradeU

{
StudentGrade E1 = new StudentGrade();
StudentGrade [] student= new [15] StudentGrade;

public static void main ( String argv[])
{
StudentGrade [] student = int [15] StudentGrade;
double Average= Average (student);
}

public static double Average ()
{
for ( inti=0 ; i<10 ; i++)
sum = sum+ arr[i];
return (sum/15);
}
}


plz he;p me with that >>>>>
thanks alot

warm heart
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4
Reputation: warm heart is an unknown quantity at this point 
Solved Threads: 0
warm heart warm heart is offline Offline
Newbie Poster

Re: i have problem with array plz help

 
0
  #2
Dec 14th, 2004
no one reaply i am sad >>>

thanx

warm heart
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: i have problem with array plz help

 
0
  #3
Dec 15th, 2004
What have you tried?
Except the declaration of the array you don't seem to have done anything...
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 84
Reputation: jerbo is an unknown quantity at this point 
Solved Threads: 1
jerbo jerbo is offline Offline
Junior Poster in Training

Re: i have problem with array plz help

 
0
  #4
Dec 15th, 2004
It also helps to state the problem that you are having. Just saying HELP gives me no clue as to the problem you are having.

I can infer somewhat from your statement above, but my determination is you want to know how to read input and place it into the array?

If that is not it, then you need to be more specific.

Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC