GithubHelp home page GithubHelp logo

cosc3p97-assignment1's People

Watchers

Curtis Smith avatar

cosc3p97-assignment1's Issues

Story: Allow to continue the equation (3 points)

As a user when I enter an operand, followed by the + operator, followed by another operand, followed by the + operator it should display the result so far and remember the next operation will be + so that I can continue the equation and the see the current result.

  • modify the method in the model to check if there are 2 operators and an operation already entered and if so perform the calculate and update the display then store the operation to execute next

Story: Input numbers to the display (3 points)

As a user when I tap a number that number should be added to the end of the display so that I can view what has been entered

  • add textview to activity
  • add button to activity
  • add display property to model
  • add click handler to activity to route control to model, update display property and notify observers

Story: Clear the display (2 points)

As a user when I tap the clear button it should set the display to zero and clear any stored operations so that I can begin a new equation.

  • add clear button to activity
  • add click handler to route control to the model and update the display to zero then notify observers

Story: Add two operands and click equals (8 points)

As a user when I enter an operand, followed by the + operator, followed by another operand, followed by = it should display the result so that I can view the answer.

  • add the "+" button to the activity
  • add "+" click handler to route control to the model in order to store the operation and allow the user to enter a new operand, notify the observers
  • add "=" click handler to route control to the model in order to do the stored operation and update the display property, notify the observers

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.