Results 1 to 15 of 15
- 05-14-2012, 09:06 PM #1
Member
- Join Date
- May 2012
- Posts
- 8
- Rep Power
- 0
I'm new in JAVA and I have a project
"Write a Java Program to let user enter certain number of students names and grades first. Then let your program find maximum, minimum, average, and the standard deviation of the grades using separate methods for each case and print the results. Finally, write a method to sort the names then print student names and grades in the descending order with respect to the grades. Get the number of students from the user, then create two arrays, String and int types to store student names and grades respectively (two dimensional array usage is optional). Write the necessary methods and print the necessary values and at the end sort the student names with respect to the grades in the descending order."
Hey Guys, this is my project and i have to train it until tomorrow night :)
Can you help me a little bit, please ??
Thank you for all :)Last edited by mzone; 05-14-2012 at 10:59 PM.
- 05-14-2012, 09:18 PM #2
- 05-14-2012, 09:32 PM #3
Member
- Join Date
- May 2012
- Posts
- 8
- Rep Power
- 0
Re: I'm new in JAVA and I have a project
i have done this
import java.util.Scanner;
import javax.util.*;
public class Project{
public static void main(String[] args) {
Scanner input= new Scanner (System.in);
System.out.println("Please,Enter certain number of students names and grades:");
int N = input.nextInt(); //N is certain number of Students names and grades
System.out.println("Your certain number of students names is:" + N);
String[] studentnames =new String[N];
int[] grades= new int[N];
}
}
- 05-14-2012, 09:35 PM #4
Member
- Join Date
- May 2012
- Posts
- 8
- Rep Power
- 0
Re: I'm new in JAVA and I have a project
you can help me how i can get student names and grades from user , and how i can appoint a two diomensional array ??
- 05-14-2012, 10:56 PM #5
Senior Member
- Join Date
- Apr 2012
- Posts
- 115
- Rep Power
- 0
Re: I'm new in JAVA and I have a project
Please use the CODE tags makes it easier to see
- 05-14-2012, 11:00 PM #6
Member
- Join Date
- May 2012
- Posts
- 8
- Rep Power
- 0
Re: I'm new in JAVA and I have a project
what is the Code tags?
- 05-14-2012, 11:03 PM #7
Senior Member
- Join Date
- Apr 2012
- Posts
- 115
- Rep Power
- 0
Re: I'm new in JAVA and I have a project
Java Code:import java.util.Scanner; import javax.util.*; public class Project{ public static void main(String[] args) { Scanner input= new Scanner (System.in); System.out.println("Please,Enter certain number of students names and grades:"); int N = input.nextInt(); //N is certain number of Students names and grades System.out.println("Your certain number of students names is:" + N); String[] studentnames =new String[N]; int[] grades= new int[N]; } }
- 05-14-2012, 11:04 PM #8
Member
- Join Date
- May 2012
- Posts
- 8
- Rep Power
- 0
Re: I'm new in JAVA and I have a project
oke thanks
- 05-14-2012, 11:22 PM #9
Senior Member
- Join Date
- Apr 2012
- Posts
- 115
- Rep Power
- 0
Re: I'm new in JAVA and I have a project
first of all you should use a loop to input values in an array
you can look up multidimentional arrays, I did a task on that a few days ago. basically they are an array of arrays, with the first representing rows and the latter columns.Java Code:int[] grades = new int[10]; for( int i = 0 ; i < grades.length ; i++) { Scanner input = new Scanner(System.in); System.out.println("please input grade for student "); grades[i] = input.nextInt();
- 05-14-2012, 11:24 PM #10
Member
- Join Date
- May 2012
- Posts
- 8
- Rep Power
- 0
Re: I'm new in JAVA and I have a project
well, now how can i get student names from user?
- 05-14-2012, 11:31 PM #11
Member
- Join Date
- May 2012
- Posts
- 8
- Rep Power
- 0
- 05-14-2012, 11:37 PM #12
Member
- Join Date
- May 2012
- Posts
- 8
- Rep Power
- 0
Re: I'm new in JAVA and I have a project
I have to get student names from user how can i do this?
- 05-15-2012, 05:41 AM #13
Re: I'm new in JAVA and I have a project
Why do they call it rush hour when nothing moves? - Robin Williams
- 05-15-2012, 06:12 AM #14
Member
- Join Date
- Apr 2012
- Posts
- 37
- Rep Power
- 0
Re: I'm new in JAVA and I have a project
Use scanner class and read a String called name[i] (from an array of names), then u can use grade[i] and name[i] to get the name and grade corresponding the number i...
- 05-15-2012, 06:42 AM #15
Similar Threads
-
java project
By nithingafoor in forum New To JavaReplies: 0Last Post: 01-16-2012, 08:27 AM -
Creating a project in eclipse from existing project
By Suraiya in forum New To JavaReplies: 1Last Post: 10-08-2011, 09:14 AM -
Java Project,please help
By jimos in forum New To JavaReplies: 5Last Post: 01-16-2011, 12:54 AM -
UML to Java project
By banie in forum NetBeansReplies: 3Last Post: 01-28-2008, 10:16 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks