Git Product home page Git Product logo

stackcalc's Introduction

StackCalc

Stack Calculator as a Project for TH Bingen Coding Camp

Dieser Taschenrechner ist ein Demo Projekt für das Coding Camp der TH Bingen am 25./26. März 2017

Funktionsweise

Der Taschenrechner arbeitet nach dem Stack Prinzip. Das Wort Stack kommt aus dem englischen und bedeutet Stapel. Wie bei einem Stapel kann man mit dem Stack Taschenrechner nur Zahlen oben auf den Stapel legen und auch nur von oben wieder vom Stapel entfernen.

Das heißt:

  • Erste Zahl eingeben
  • Enter schiebt die erste Zahl oben auf den Stack
  • Zweite Zahl eingeben
  • Enter schiebt die zweite Zahl, über die erste Zahl, oben auf den Stack
  • Jetzt kann man die Operation eingeben z.B. Addieren
    • Dabei werden die beiden Zahlen vom Stack geholt
    • Die Zahlen werden addiert
    • Das Ergebnis wird wieder auf den Stack gelegt und auf dem Display angezeigt

Wichtige Dateien

  • Die Datei StackCalc.java enthält die Taschenrechner Logik
  • Die Datei activity_stack_calc.xml enthält die Beschreibung wie die Oberfläche der App aussehen soll
  • Diese beiden Dateien zusammen machen den großteil der Funktionalität der App aus

stackcalc's People

Contributors

addyi avatar

Watchers

 avatar  avatar  avatar

stackcalc's Issues

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.