Git Product home page Git Product logo

pocketchange's Introduction

PocketChange

Our hero, Quincer, has been moved to the Galactic Customs Service. Now, the Galactic Customs Service is really a bunch of crooks. It is their practice to appropriate (that means take) 50% of all the money from people coming through their customs inspections stations.

Currently, the inspectors ask people to empty all their pockets. The inspector then sums the value of all coins, divides by 2 and keeps that amount. This should be easy, except some of the inspectors have trouble with math. It takes them a long time to sum the values of coins.

The Galactic Customs Commander is having his morning coffee. Apparently, this is what commanders do. He is thinking of ways to get people through the lines faster. He remembers he has a new guy, Quincer. “I know,” he says. “I’ll have that new guy Quincer make an easy to use program to add up the value of the coins.”

Poor Quincer, he has received yet another ill-defined project. He knows these assignments are fraught with ambiguity and last minute changes. Despite his best efforts, he can only get a few fuzzy requirements from the commanding officer:

  1. The program should have a GUI interface for the customs officers.

  2. The program should allow for the office to click on type of coin, and how many.

  3. The program should calculate the total. It should also provide ½ the total.

  4. The program should allow for all U.S. coins (go look them up).

  5. If Quincer is to be promoted to Assistant Commander (he wants this), the program shouldgraphically represent the coins for the officer to keep, and the coins to be returned to the person.

Expectations:

There are some specific implementation details expected:

  1. Design and Implement a class called MonetaryCoin that is derived from the Coin Class you developed for Coin Flip.
  2. Store a value in each monetary coin and returns its value.
  3. Create a main driver class, PocketChange, to instantiate and compute the sum of several MonetaryCoin objects.
  4. Show that a coin inherits its ability to be flipped.

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.