Gaia/Calculator: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
This is a placeholder page for the Calculator App.
==Status & Team==


For now, this etherpad is a first pass at discussing potential requirements:
* See: [https://docs.google.com/spreadsheet/ccc?key=0AiBigu584YY7dGlNSlY0QzhJb3M5anRBa1gxalV0Y3c#gid=0 B2G - Milestone 4 Plan]
[https://etherpad.mozilla.org/umgtFfiGuR Calculator App Requirements]




Calculator App Requirements
== Requirements ==
General


    I can see the equation I've entered
==== General ====


    I can see the results of the current calculation
* I can see the equation I've entered
* I can see the results of the current calculation


Basic Operations & Calculator functions
==== Basic Operations & Calculator functions ====
* I can enter in a number with a maximum of N digits
* I can change the sign of a number
* I can enter in a decimal number
* I can add two numbers together
* I can subtract one number from the other
* I can multiply two numbers together
* I can divide a non-zero number from another number
* I can clear an equation from the screen
* I can clear the last digit of a number I just entered, as long as I haven't pressed an operator key yet


    I can enter in a number with a maximum of N digits
==== Extended Calculator functions (Might not need or want these features for v1) ====


    I can change the sign of a number
* I can perform an operation a second time by pressing the equals sign a second time.
* I can convert the result from a percentage to a decimal value.
* I can store a result in the calculator's memory
* I can retrieve a result from the calculator's memory
* I can clear the value in the calculator's memory
* log/ln/e
* ^
* squareroot and root
* Pi/tau
* cos/sin/tan


    I can enter in a decimal number
==== Computation Cases ====


    I can add two numbers together
* I'm informed that I can't divide a number by zero  (cannot divide by zero)
* I'm informed that I can't divide zero by zero (result is undefined)
* I can view the result in exponential notation if the number is too large or too small to be displayed


    I can subtract one number from the other
==Design Spec==


    I can multiply two numbers together
* ...
 
    I can divide a non-zero number from another number
 
    I can clear an equation from the screen
 
    I can clear the last digit of a number I just entered, as long as I haven't pressed an operator key yet
 
Extended Calculator functions (Might not need or want these features for v1)
 
    I can perform an operation a second time by pressing the equals sign a second time.
 
    I can convert the result from a percentage to a decimal value.
 
    I can store a result in the calculator's memory
 
    I can retrieve a result from the calculator's memory
 
    I can clear the value in the calculator's memory
 
    log/ln/e
 
    ^
 
    squareroot and root
 
    Pi/tau
 
    cos/sin/tan
 
Computation Cases
 
    I'm informed that I can't divide a number by zero  (cannot divide by zero)
 
    I'm informed that I can't divide zero by zero (result is undefined)
 
    I can view the result in exponential notation if the number is too large or too small to be displayed

Revision as of 22:58, 7 June 2012

Status & Team


Requirements

General

  • I can see the equation I've entered
  • I can see the results of the current calculation

Basic Operations & Calculator functions

  • I can enter in a number with a maximum of N digits
  • I can change the sign of a number
  • I can enter in a decimal number
  • I can add two numbers together
  • I can subtract one number from the other
  • I can multiply two numbers together
  • I can divide a non-zero number from another number
  • I can clear an equation from the screen
  • I can clear the last digit of a number I just entered, as long as I haven't pressed an operator key yet

Extended Calculator functions (Might not need or want these features for v1)

  • I can perform an operation a second time by pressing the equals sign a second time.
  • I can convert the result from a percentage to a decimal value.
  • I can store a result in the calculator's memory
  • I can retrieve a result from the calculator's memory
  • I can clear the value in the calculator's memory
  • log/ln/e
  • ^
  • squareroot and root
  • Pi/tau
  • cos/sin/tan

Computation Cases

  • I'm informed that I can't divide a number by zero (cannot divide by zero)
  • I'm informed that I can't divide zero by zero (result is undefined)
  • I can view the result in exponential notation if the number is too large or too small to be displayed


Design Spec

  • ...