Giter Site home page Giter Site logo

coinpurse's Introduction

#CoinPurse Project in OOP2 Lab Course on 10 Feb 2017 CoinPurse has UI allow the user to deposit and withdraw their money from their purse. There are 4 important classes.

  • Coin class indicate a coin with monetary value and currency
  • ConsoleDigital class is UI for the CoinPurse.
  • Main class use for starting the application.
  • Purse class is a coin purse contains coins. You can insert coins, withdraw money, check the balance, and check if the purse is full. When you withdraw money, the coin purse decides which coins to remove.

And some other classes.

  • CoinUtil class has some Coin utility methods for practice using Lists and Comparator.
    • filterByCurrency method
    • sortByCurrency method
    • sumByCurrenc method
  • CompareByCurrency class is compare coin class which use in 'sortByCurrency' method in CoinUtil class.
  • PurseTest class use JUnit for testing Purse class.

Finish Lab3


Lab4 on 17 Feb 2017

  • The purse can add more kind of monetary objects. Example is BankNote class.
  • Created an interface, Valuable interface for getting value and currency of monetory objects.
  • Pratice using polymorphism.

Lab10 on 21 April 2017

  • Create 4 view of the purse for showing balance, status, contents(items), and transactions.
  • Using Observer Pattern.

coinpurse's People

Contributors

vittunyuta-aom avatar

Watchers

 avatar

coinpurse's Issues

MoneyFactory shouldn't read and set its instance

MoneyFactory shouldn't read the ResourceBundle (purse.properties), instead you should provide setMoneyFactory(MoneyFactor) for other class to set the Factory.

Moreover, if MoneyFactory read the bundle and set the factory on its own, setting the new factory on the fly is impossible (or you may have to edit the bundle file and load it again).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.