Re: i cant think of a way to do that ?
- From: Sabine Dinis Blochberger <no.spam@xxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 10:15:01 +0100
dbstyless@xxxxxxxxxxx wrote:
The programming assignment is to implement a class Purse. A purse
contains a collection of coins. Each coin object must contain its
name. You should not put a limit on the number of coins that a purse
can hold. This program should provide the user with the ability to
display the contents of the purse, add coins, count coins, calculate
the amount of money in purse and for extra credit, spend coins. You
will need 2 Java Object Classes: one to define the Coin objects, and
one for the Purse object.
Create your classes Purse and Coin first. Decide what attributes Coin
has. Decide what methods Purse has. All these requirements are described
above.
There is a sample PurseTester class and its output. You are requiredThis is give to you as is below? It gives you hints what methods and
to use this class to test your code but you may make modifications to
the method calls to match your method names.
attributes are expected, but it lets you change the names if you want
to. You don't need to change anything in this code if you keep the
names.
snip code
Create your basic classes and ask a more specific question, it's no use
if someone else does your practise work for you.
--
Sabine Dinis Blochberger
Op3racional
www.op3racional.eu
.
- References:
- i cant think of a way to do that ?
- From: dbstyless
- i cant think of a way to do that ?
- Prev by Date: Re: Lockable JFrames?
- Next by Date: Re: I have a problem for my return in the output
- Previous by thread: Re: i cant think of a way to do that ?
- Next by thread: (OT?) Strange web problem
- Index(es):
Relevant Pages
|