cosc3p97-assignment1's People
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: Subtract 2 operands and click Equals (3 points)
- add the button handler to the activity
- update the model to create the subtraction operation
- create the subtraction class from the operation abstract class
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: Multiply 2 operands and click equals (3 points)
- create Multiplication class
- add multiplication to model
- add handler for multiplication button
Story: Use only portrait orientation (5 points)
Story: Divide 2 operands and click equals (3 points)
- create new Division class
- add divide method to the model
- add handler for divide button to the activity
Story: Addition with a decimal operand should give a decimal result
- update the model to allow decimals
- update the activity to handle a decimal button
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.