freelanceprogrammers.org Forum Index » Java

help plz...urgent help needed


View user's profile Post To page top
nisha458 Posted: Mon Apr 19, 2004 7:35 pm


Joined: 19 Apr 2004

Posts: 3
help plz...urgent help needed
hi ..nice to see a grp whr beginers r helped..actually i ve jus
started learning java and i ve got an assignment which im stuck on
halfway..plz reply this msg if u care to help..thankz a lot
take care
awaiting ur reply
nisha
Reply with quote
Send private message
View user's profile Post To page top
msulli1355 Posted: Mon Apr 19, 2004 7:46 pm


Joined: 17 Apr 2004

Posts: 28
help plz...urgent help needed
What`s your assignment?

On Mon, 2004-04-19 at 09:35, ish wrote:
> hi ..nice to see a grp whr beginers r helped..actually i ve jus
> started learning java and i ve got an assignment which im stuck on
> halfway..plz reply this msg if u care to help..thankz a lot
> take care
> awaiting ur reply
> nisha
>
>
>
> ______________________________________________________________________
> Yahoo! Groups Links
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/beginnersclub/
>
> * To unsubscribe from this group, send an email to:
> beginnersclub-unsubscribe@yahoogroups.com
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
>
Reply with quote
Send private message
View user's profile Post To page top
dale_erwin Posted: Mon Apr 19, 2004 8:18 pm


Joined: 11 Apr 2004

Posts: 11
help plz...urgent help needed
ish wrote:
> I ve mailed it to ur yahoo a/c
> thankz
>

You really should post your questions/problems to the group so
that everyone can see them. That way, it is more likely that
someone who is familiar with the particular problem will see it
and answer.
--
Dale Erwin
Salamanca 116
Pueblo Libre
Lima 21 PERU
Tel. +51(1)461-3084
Cel. +51(1)9743-6439
DALE ERWIN`S OPERA FILES - http://www.geocities.com/dale_erwin
Reply with quote
Send private message
View user's profile Post To page top
nisha458 Posted: Mon Apr 19, 2004 9:09 pm


Joined: 19 Apr 2004

Posts: 3
help plz...urgent help needed
I ve mailed it to ur yahoo a/c
thankz

--- In beginnersclub@yahoogroups.com, Michael Sullivan <michael@e...>
wrote:
> What`s your assignment?
>
> On Mon, 2004-04-19 at 09:35, ish wrote:
> > hi ..nice to see a grp whr beginers r helped..actually i ve jus
> > started learning java and i ve got an assignment which im stuck
on
> > halfway..plz reply this msg if u care to help..thankz a lot
> > take care
> > awaiting ur reply
> > nisha
> >
> >
> >
> >
______________________________________________________________________
> > Yahoo! Groups Links
> > * To visit your group on the web, go to:
> > http://groups.yahoo.com/group/beginnersclub/
> >
> > * To unsubscribe from this group, send an email to:
> > beginnersclub-unsubscribe@yahoogroups.com
> >
> > * Your use of Yahoo! Groups is subject to the Yahoo! Terms
of
> > Service.
> >
Reply with quote
Send private message
View user's profile Post To page top
nisha458 Posted: Tue Apr 20, 2004 7:40 am


Joined: 19 Apr 2004

Posts: 3
help plz...urgent help needed
This is the requirement of my assignment..plz take a luk..thankz
nisha


You are to write three source code as described below:

· The first is a class called Member which defines a simple
object type representing a member in a gold club.
· The second class called GolfClub defines objects which are
containers of Member objects. The maximum number of members in the
collection is limited to ten, so that attempts to overfill the
collection can be easily tested.
· The final class, called GolfClubClient defines a Java
application which creates one GolfClub object and allows the various
methods of GolfClub to be called. This class will be an interactive
application using the keyboard and the screen to interact with a
human operator. It will not do calculations itself but will
immediately pass user inputs as arguments to methods of GolfClub
class.

NOTE: The final application will only execute correctly when all
three classes have been defined completely and correctly but don`t
wait until you have completely written all three before you start
compiling and testing your code. It is recommended that you save all
three source code files in the same directory on your file system and
compile and test each class as you develop it using small separate
programs to create and test objects of each class.

The files
The files you will require are:

Member.java
This file defines a class of Member objects. The objects have the
following instance variables:
1. name (of type `String`);
2. type of member (of type char, either `P` (or `p`) for Playing
member or `S` (or `s` for Social member)
3. annual fee (of type `double`, 500 for playing member, 100 for
social member)
4. year joined (of type `int`)

The methods of class Member should include:
1) A constructor which accepts THREE attributes for a member -
name, member type, and year joined. The constructor should initialise
its object`s attributes with these argument values.
Note: i. The annual fee would be determined by the type of
member, and thus is not required to be passed as argument.
ii. If the member type passed in is not valid, the member
type should automatically set to playing member.
2) A reader (getter) method for each of the four attributes.
That is, a simple `getter` method for the name, the member type, the
annual fee and the year joined.
3) A writer (setter) method for each of the attributes, EXCEPT
for annual fee. This is because the type of membership will determine
the annual fee, and thus the annual fee`s value will be set in the
writer method for member type.
4) A method named getMemberTypeString that will return the type
of member as a String representation, either "Playing" or "Social".
5) A `toString` method which return a single String containing
the details of a member. Such a string can be formed by concatenating
the values of the three attributes name, member type and year joined
in the format:
<name> (<member type as string> member) joined in <year>

One sample output is as shown below:
Mike (Playing member) joined in 1999

It is recommended that once you have written the Member class, you
create a tiny program to test it. The testing program should be
placed in the same working directory as the Member class and be used
to create one or two Member objects and call some of the Member
methods. Compile the Member class and compile and run the test
program to check your work.

GolfClub.java
This file declares a class of object with maintains a collection of
Member objects. It will contain methods which enable the collection
to show the appropriate behaviours as required by the menu. This file
should be saved into the same working directory as Member.java.

The GolfClub class should declare the following TWO attributes, no
additional attribute is allowed:

1) An array of Member objects
2) An integer to keep track of how many Member objects are
actually stored in the array at any time.

The GolfClub class must also contain some methods which allow the
collection of golf members to be managed. The number of methods
required will depend on which level you are attempting the assignment
at.

When you have written the GolfClub class - test it by creating a
GolfClub object and invoking the methods from a small Java program.


GolfClubClient.java
The aim of this class is to provide a user-interface for a modest
application which uses a GolfClub container class and should be saved
in the same working directory as the previous files. It is
recommended that this user-interface be written as a `console`
application using the normal screen and keyboard to interact with a
user via a simple text-based menu.

The user-interface should create a single GolfClub object and provide
a menu of choices to the user.

Sample Run at Fourth Level
Please note - I`ve truncated display of menu to save paper! The menu
should display on the screen in full each time it is displayed.

Welcome to the Saujana GolfClub System

Please select from the following menu

1. Register new member
2. List all details of members
3. Print the total annual fee
4. List a count of members by classification
5. List all members who joined in a particular year
6. List all members whose names contains a specific substring
7. Delete a member from the collection
8. Change details for a member, given the name
9. List all details of members sorted in ascending of name

0. exit

Your choice? 2
No registered members yet.

Welcome to the Saujana GolfClub System

Please select from the following menu

1. Register new member
:
9. List all details of members sorted in ascending of name

0. exit

Your choice? 9
No registered members yet.

Welcome to the Saujana GolfClub System

Please select from the following menu

1. Register new member
:
9. List all details of members sorted in ascending of name

0. exit

Your choice? 1
Name: Jane
Member type - <P>laying <S>ocial: p
Year Joined: 1999
Success...

Welcome to the Saujana GolfClub System

Please select from the following menu

1. Register new member
:
9. List all details of members sorted in ascending of name

0. exit

Your choice? 1
Name: Lee
Member type - <P>laying <S>ocial: P
Year Joined: 2002
Success...

Welcome to the Saujana GolfClub System

Please select from the following menu

1. Register new member
:
9. List all details of members sorted in ascending of name

0. exit

Your choice? 2
Members:
Jane (Playing member) joined in 1999
Lee (Playing member) joined in 2002

Welcome to the Saujana GolfClub System

Please select from the following menu

1. Register new member
:
9. List all details of members sorted in ascending of name

0. exit

Your choice? 3
Total annual fee for all 2 members is 1000.0

Welcome to the Saujana GolfClub System
:
:

Your choice? 4
There are 2 playing members.
There are 0 social members.

Welcome to the Saujana GolfClub System
:
:

Your choice? 5
Year joined: 2002
Members joined in 2002
Lee (Playing member)


Welcome to the Saujana GolfClub System
:
:

Your choice? 1
Name: Ali
Member type - <P>laying <S>ocial: S
Year Joined: 2000
Success...

Welcome to the Saujana GolfClub System
:
:

Your choice? 1
Name: Cindy
Member type - <P>laying <S>ocial: s
Year Joined: 1999
Success...

Welcome to the Saujana GolfClub System
:
:

Your choice? 1
Name: Kumar
Member type - <P>laying <S>ocial: s
Year Joined: 1999
Success...

Welcome to the Saujana GolfClub System
:
:

Your choice? 1
Name: Not Added
Member type - <P>laying <S>ocial: P
Year Joined: 2002
Addition failed...

Welcome to the Saujana GolfClub System
:
:

Your choice? 2
Members:
Jane (Playing member) joined in 1999
Lee (Playing member) joined in 2002
Ali (Social member) joined in 2000
Cindy (Social member) joined in 1999
Kumar (Social member) joined in 1999

Welcome to the Saujana GolfClub System
:
:

Your choice? 4
There are 2 playing members.
There are 3 social members.

Welcome to the Saujana GolfClub System
:
:

Your choice? 3
Total annual fee for all 5 members is 1300.0

Welcome to the Saujana GolfClub System
:
:

Your choice? 5
Year joined: 2001
No members joined in 2001

Welcome to the Saujana GolfClub System
:
:

Your choice? 5
Year joined: 1999
Members joined in 1999
Jane (Playing member)
Cindy (Social member)
Kumar (Social member)


Welcome to the Saujana GolfClub System
:
:

Your choice? 6
Name: an
Members whose name contained `an`
Jane (Playing member) joined in 1999


Welcome to the Saujana GolfClub System
:
:

Your choice? 6
Name: ban
No members whose name contained `ban`

Welcome to the Saujana GolfClub System
:
:

Your choice? 7
Delete which member (1..5)? 0
Out of range...

Welcome to the Saujana GolfClub System
:
:

Your choice? 7
Delete which member (1..5)? 2
Member 2 with information `Lee (Playing member) joined in 2002`
has been successfully removed

Welcome to the Saujana GolfClub System
:
:

Your choice? 2
Members:
Jane (Playing member) joined in 1999
Ali (Social member) joined in 2000
Cindy (Social member) joined in 1999
Kumar (Social member) joined in 1999

Welcome to the Saujana GolfClub System
:
:

Your choice? 8
Enter member`s name: Jane
Member detail: Jane (Playing member) joined in 1999
New name? (Press <Enter> to skip) Jenny
New member type? (P/S): (Press <Enter> to skip) ¿
New year joined? (Press <Enter> to skip) ¿
Successfully update!

Welcome to the Saujana GolfClub System
:
:

Your choice? 8
Enter member`s name: Jane
No member with name `Jane`

Welcome to the Saujana GolfClub System
:
:

Your choice? 8
Enter member`s name: jenny
Member detail: Jenny (Playing member) joined in 1999
New name? (Press <Enter> to skip) ¿
New member type? (P/S): (Press <Enter> to skip) ¿
New year joined? (Press <Enter> to skip) ¿
Update aborted.

Welcome to the Saujana GolfClub System
:
:

Your choice? 9
Sorted member
Ali (Social member) joined in 2000
Cindy (Social member) joined in 1999
Jenny (Playing member) joined in 1999
Kumar (Social member) joined in 1999

Welcome to the Saujana GolfClub System
:
:

Your choice? 2
Members:
Jenny (Playing member) joined in 1999
Ali (Social member) joined in 2000
Cindy (Social member) joined in 1999
Kumar (Social member) joined in 1999

Welcome to the Saujana GolfClub System
:
:

Your choice? p
Invalid choice... Try again.

Welcome to the Saujana GolfClub System
:
:

Your choice? 1
Name: Batman
Member type - <P>laying <S>ocial: p
Year Joined: 2004
Success...

Welcome to the Saujana GolfClub System
:
:

Your choice? 2
Members:
Jenny (Playing member) joined in 1999
Ali (Social member) joined in 2000
Cindy (Social member) joined in 1999
Kumar (Social member) joined in 1999
Batman (Playing member) joined in 2004

Welcome to the Saujana GolfClub System
:
:

Your choice? 9
Sorted member
Ali (Social member) joined in 2000
Batman (Playing member) joined in 2004
Cindy (Social member) joined in 1999
Jenny (Playing member) joined in 1999
Kumar (Social member) joined in 1999

Welcome to the Saujana GolfClub System
:
:

Your choice? 0
Done...

Notes
1. Selecting menu item 9 does not affect the original data set,
it merely shows how the data would look if sorted. That is selecting
item 2 immediately after 9 should show the data set again unchanged.
2. Apart from the necessary entry of data via menu item 1, menu
items should be selectable in any order.

First Level requirements
Implement this menu:

Welcome to the Saujana GolfClub System

Please select from the following menu

1. Register new member
2. List all details of members
3. Print the total annual fee
4. List a count of members by classification
5. List all members who joined in a particular year

0. exit

Second Level requirements
Implement this menu:

Welcome to the Saujana GolfClub System

Please select from the following menu

1. Register new member
2. List all details of members
3. Print the total annual fee
4. List a count of members by classification
5. List all members who joined in a particular year
6. List all members whose names contains a specific substring

0. exit

Third Level requirements
Implement this menu:

Welcome to the Saujana GolfClub System

Please select from the following menu

1. Register new member
2. List all details of members
3. Print the total annual fee
4. List a count of members by classification
5. List all members who joined in a particular year
6. List all members whose names contains a specific substring
7. Delete a member from the collection

0. exit

Fourth Level requirements
Implement this menu:

Welcome to the Saujana GolfClub System

Please select from the following menu

1. Register new member
2. List all details of members
3. Print the total annual fee
4. List a count of members by classification
5. List all members who joined in a particular year
6. List all members whose names contains a specific substring
7. Delete a member from the collection
8. Change details for a member, given the name
9. List all details of members sorted in ascending of name

0. exit











> You really should post your questions/problems to the group so
> that everyone can see them. That way, it is more likely that
> someone who is familiar with the particular problem will see it
> and answer.
> --
> Dale Erwin
> Salamanca 116
> Pueblo Libre
> Lima 21 PERU
> Tel. +51(1)461-3084
> Cel. +51(1)9743-6439
> DALE ERWIN`S OPERA FILES - http://www.geocities.com/dale_erwin
Reply with quote
Send private message
View user's profile Post To page top
ahmedshakeeb Posted: Sat Apr 24, 2004 11:14 am


Joined: 24 Apr 2004

Posts: 1
help plz...urgent help needed
i am glad to help u.. but let me know wat is ur asssignment.. get me the details
of ur assignment.. so that i can help u better..
ish <nisha1986@...> wrote:I ve mailed it to ur yahoo a/c
thankz

--- In beginnersclub@yahoogroups.com, Michael Sullivan <michael@e...>
wrote:
> What`s your assignment?
>
> On Mon, 2004-04-19 at 09:35, ish wrote:
> > hi ..nice to see a grp whr beginers r helped..actually i ve jus
> > started learning java and i ve got an assignment which im stuck
on
> > halfway..plz reply this msg if u care to help..thankz a lot
> > take care
> > awaiting ur reply
> > nisha
> >
> >
> >
> >
______________________________________________________________________
> > Yahoo! Groups Links
> > * To visit your group on the web, go to:
> > http://groups.yahoo.com/group/beginnersclub/
> >
> > * To unsubscribe from this group, send an email to:
> > beginnersclub-unsubscribe@yahoogroups.com
> >
> > * Your use of Yahoo! Groups is subject to the Yahoo! Terms
of
> > Service.
> >



---------------------------------
Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/beginnersclub/

To unsubscribe from this group, send an email to:
beginnersclub-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




---------------------------------
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢

[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help