GithubHelp home page GithubHelp logo

oop-pop_exercise's Introduction

This is an exercise of using OOP/POP to model the following requirements:

In Taiwan, to prevent tax evasion, the government demands big merchants to give consumers a receipt with a government-assigned number when a transaction happened.

If merchants honestly give consumers receipts with government assigned numbers, the government can track the supposed tax amount with those numbers

To encourage consumers to ask for receipts from merchants when a transaction happened, the government turns the assigned number to the so-called Taiwan Receipt Lottery Number.

Here are simplified requirements for the receipt:

Each receipt has the following fields:

  1. date
  2. price
  3. lottery number

, and some extras behavior based on the type of receipt:

b2b receipt can be sent through email or print out. b2c receipt can be printed out or cached in the cloud with an identification called device id. b2c receipt can be denoted to nonprofit organizations for the Taiwan Receipt Lottery opportunity. a receipt can only be either a b2b, b2c cached in the cloud, b2c donated, or b2c printed out receipt.

oop-pop_exercise's People

Contributors

ctwdtw avatar

Watchers

James Cloos avatar

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.