Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 14th, 2006, 09:56 AM
junoon46 junoon46 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 1 junoon46 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 51 sec
Reputation Power: 0
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 ???

Reply With Quote
  #2  
Old December 14th, 2006, 03:05 PM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Mar 2005
Location: I used to live at home, now I stay at the house
Posts: 3,358 ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)ChiefWigs1982 User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 1 Month 1 Week 3 Days 5 h 53 m 37 sec
Reputation Power: 291
Facebook
Quote:
Originally Posted by junoon46
i have no idea what do to.. anyhelp ???

You might start by researching the difference between Java and
JavaScript...
__________________
Support requests via PM will be ignored!
Route of Queue | The General FAQ Thread | HOW TO POST A QUESTION

Sign up with Matched.co.uk and earn up to £15 per website every month!


Reply With Quote
  #3  
Old December 14th, 2006, 05:22 PM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,969 Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1Folding Points: 342040 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 5 Days 15 h 9 m 16 sec
Reputation Power: 1556
--moved to the Programming forum as we don't have Java forum here.

just curious, you really expect anyone to do your homework??

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > HELP wiTh Java Project (homework)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway