Re: i cant think of a way to do that ?



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 required
to use this class to test your code but you may make modifications to
the method calls to match your method names.

This is give to you as is below? It gives you hints what methods and
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
.



Relevant Pages

  • i cant think of a way to do that ?
    ... The programming assignment is to implement a class Purse. ... Each coin object must contain its ... You should not put a limit on the number of coins that a purse ...
    (comp.lang.java.programmer)
  • Re: i cant think of a way to do that ?
    ... Each coin object must contain its ... You should not put a limit on the number of coins that a purse ... There is a sample PurseTester class and its output. ...
    (comp.lang.java.programmer)
  • Re: Quitting 3.5
    ... Rubber Rope: Not strictly a magic item, this appears to be a normal ... Brewing Feather of Flight Ale: A colorful feather about 4 inches in ... The Moneychanger's Purse: When monetary coin of any type is removed ... it with no other effect on the coins. ...
    (rec.games.frp.dnd)
  • Re: Presidential Dollars might not increase dollar coin use
    ... number of coins in my purse increases, ... cash is at the petrol station, where I use my debit card. ... pay in that case by credit card. ...
    (rec.collecting.coins)
  • Re: Mint starts to push dollar coin usage
    ... coins are a heavy load to haul around. ... do not carry a purse or a big pocketbook. ... bills in my wallet at any one time, and I imagine that any $1 coins I ... the whole business of purses and wallets for women is a lot ...
    (rec.collecting.coins)