|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
HELP wiTh Java Project (homework)
1. GIVEN THE CLASSES BELOW, DESIGN THE METHOD "search" WHICH
PERFORMS SEQUENTIAL SEARCH IN Students USING id AS THE KEY AND RETURNS THE FOUND STUDENT. public class Student { private String id; private int age; private double gpa; : : } public class CSC { private Student [ ] students; private int size; private int capacity; public Student search (String idKey) {...... } : : } 2. GIVEN THE CLASSES BELOW, DESIGN THE METHOD "toString" IN THE CLASS "Student". public class Person { private String name; private int age; : ; } public class Student extends Person { private double gpa; private String id; public String toString ( ) {..... } : : } public class CSC { private Student [ ] students; private int size; private int capacity; public int search (String nameKey) {...... } : : } 3. GIVEN THE SAME CLASSES AS QUESTION 2, DESIGN THE METHOD "search" IN THE CLASS "CSC" WHICH FINDS AND RETURNS THE NUMBER OF STUDENTS WHOSE NAME IS "nameKey". 4. GIVEN THE CLASS BELOW, DESIGN THE CONSTRUCTOR WHICH PUTS 0 IN EACH ELEMENT OF THE NEW MATRIX. public class Matrix { private double [ ] [ ] num; private int numOfRows; private int numOfCols; public Matrix (int newNumOfRows, int newNumOfCols) {... } } i have no idea what do to.. anyhelp ??? |
|
#2
|
||||
|
||||
|
Quote:
You might start by researching the difference between Java and JavaScript... ![]()
__________________
Support requests via PM will be ignored! |
|
#3
|
||||
|
||||
|
--moved to the Programming forum as we don't have Java forum here.
just curious, you really expect anyone to do your homework?? |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > HELP wiTh Java Project (homework) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|