SlideShare a Scribd company logo
Calculator Stories
  dhaval.dalal@software-artisan.com

          @softwareartisan
Story #1
  As an Accountant

  I want to add two numbers

  so that I can see what the total is


Acceptance Criteria
  Given I have two numbers 2 and 3

  When I add them

  Then I should see the sum as 5
Story #2
  As an Accountant

  I want to subtract two numbers

  so that I can see what the difference between them is


Acceptance Criteria
  Given I have two numbers 2 and 3

  When I subtract them

  Then I should see the difference as -1
Story #3
  As an Accountant
  I want to divide two numbers
  so that I can know the quotient

Acceptance Criteria #1
  Given I have two numbers 2 and 3
  When I divide them
  Then I should see the quotient as 0.666666


Acceptance Criteria #2
  Given I have two numbers 2 and 0
  When I divide them
  Then I should see the quotient as ‘Infinity’
Story #4
  As an Accountant

  I want to multiply two numbers

  so that I can see what their product is


Acceptance Criteria
  Given I have two numbers 2 and 3

  When I multiply them

  Then I should see the product as 6
Story #5
  As an Accountant
  I want to toggle the sign of numbers
  so that I can reverse them at will

Acceptance Criteria #1
  Given I have number 2
  When I press the toggle key (‘+/-’)
  Then I should see -2 on the display

Acceptance Criteria #2
  Given I have number -2
  When I press the toggle key (‘+/-’)
  Then I should see 2 on the display
Story #6
  As an Accountant
  I want to delete a wrongly entered digit
  so that I can correct the number to input.

Acceptance Criteria #1
  Given I have pressed keys 2, 3, 4
  When I press the backspace key
  Then I should see 23 on the display

Acceptance Criteria #2
  Given I have pressed a key 2
  When I press the backspace key
  Then I should see ‘0’ on the display
Story #7
  As an Accountant

  I want to store number in memory

  so that I can use it later

Acceptance Criteria #1
  Given I press ‘2’ on the keypad

  When I press ‘M in’ key

  Then the number 2 should be stored in memory

  and the status bar on the display should show ‘M’

  and the display should show ‘0’ to indicate that the
  calculator is ready for next operation
Acceptance Criteria #2
  Given that the status bar on the display shows ‘M’

  When I recall the number by pressing the ‘R-CM’ key

  Then I should see the originally stored number on the
  display

  and be able to use that number for any operation.
Story #8
  As an Accountant

  I want to reset the calculator

  so that I can start afresh


Acceptance Criteria #1
  Given I am in middle of an operation

  When I press ‘CE’ (Clear Everything) key

  Then the operation should be cancelled

  and the display should show ‘0’ to indicate that the
  calculator is ready for next operation.
Acceptance Criteria #2
  Given that the display status bar on the display shows
  ‘M’

  When I press ‘CE’ (Clear Everything) key

  Then I memory should be cleared

  and the display status bar should not show ‘M’

  and the display should show ‘0’ to indicate that the
  calculator is ready for next operation
Story #9
  As an Accountant

  I want to store operations in memory

  so that I can recall them to see the steps that resulted in
  the final answer

Acceptance Criteria
  Given I have performed two operations
     2 * 3 = 6 and 6 + 3 = 9

  When I replay the operations by pressing the step key

  Then I should see the following on the display in order
     Upon pressing the ‘Step’ key once I should see 2 * 3 = 6

     Upon pressing the ‘Step’ key again, I should see 6 + 3 = 9

More Related Content

What's hot

Basic computer skills of BSc IT
Basic computer skills of BSc ITBasic computer skills of BSc IT
Basic computer skills of BSc IT
Ram krishna Dumrakoti
 
What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?
Syed Hassan Raza
 
Computational Thinking - A Revolution in 4 Steps
Computational Thinking - A Revolution in 4 StepsComputational Thinking - A Revolution in 4 Steps
Computational Thinking - A Revolution in 4 Steps
Paul Herring
 
UI/UX 디자인 기본부터 알아봅시다.
UI/UX 디자인 기본부터 알아봅시다.UI/UX 디자인 기본부터 알아봅시다.
UI/UX 디자인 기본부터 알아봅시다.
FAST CAMPUS
 
IEnumerator란 무엇인가?
IEnumerator란 무엇인가?IEnumerator란 무엇인가?
IEnumerator란 무엇인가?
Jungsoo Park
 
KEYBOARD
KEYBOARDKEYBOARD
KEYBOARD
MIKIN KAUSHIK
 
Keyboarding skills
Keyboarding skillsKeyboarding skills
Keyboarding skills
joy grace bagui
 
การใช้งานแป้นพิมพ์ Keyboard
การใช้งานแป้นพิมพ์ Keyboardการใช้งานแป้นพิมพ์ Keyboard
การใช้งานแป้นพิมพ์ Keyboard
Duangnapa Inyayot
 
ppts on Input devices
ppts on Input devicesppts on Input devices
ppts on Input devicesankur bhalla
 
Simple Calendar Application using C
Simple Calendar Application using CSimple Calendar Application using C
Simple Calendar Application using C
codewithc
 
유니티 UI - 텍스트, 버튼, 이미지, 씬 이동
유니티 UI - 텍스트, 버튼, 이미지, 씬 이동유니티 UI - 텍스트, 버튼, 이미지, 씬 이동
유니티 UI - 텍스트, 버튼, 이미지, 씬 이동
주형 고
 
Java Calculator project
Java Calculator projectJava Calculator project
Java Calculator project
Manash Kumar Mondal
 
เข้าใจตลาด (Market Understanding)
เข้าใจตลาด (Market Understanding)เข้าใจตลาด (Market Understanding)
เข้าใจตลาด (Market Understanding)
Dr.Kridsanapong Lertbumroongchai
 
C++20 Coroutine
C++20 CoroutineC++20 Coroutine
C++20 Coroutine
진화 손
 
Presentation on Input and Output Devices
Presentation on Input and Output DevicesPresentation on Input and Output Devices
Presentation on Input and Output DevicesZobia Aziz
 
서버와 클라이언트 같은 엔진 사용하기
서버와 클라이언트 같은 엔진 사용하기서버와 클라이언트 같은 엔진 사용하기
서버와 클라이언트 같은 엔진 사용하기
YEONG-CHEON YOU
 

What's hot (17)

Basic computer skills of BSc IT
Basic computer skills of BSc ITBasic computer skills of BSc IT
Basic computer skills of BSc IT
 
Touch typing skill
Touch typing skillTouch typing skill
Touch typing skill
 
What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?
 
Computational Thinking - A Revolution in 4 Steps
Computational Thinking - A Revolution in 4 StepsComputational Thinking - A Revolution in 4 Steps
Computational Thinking - A Revolution in 4 Steps
 
UI/UX 디자인 기본부터 알아봅시다.
UI/UX 디자인 기본부터 알아봅시다.UI/UX 디자인 기본부터 알아봅시다.
UI/UX 디자인 기본부터 알아봅시다.
 
IEnumerator란 무엇인가?
IEnumerator란 무엇인가?IEnumerator란 무엇인가?
IEnumerator란 무엇인가?
 
KEYBOARD
KEYBOARDKEYBOARD
KEYBOARD
 
Keyboarding skills
Keyboarding skillsKeyboarding skills
Keyboarding skills
 
การใช้งานแป้นพิมพ์ Keyboard
การใช้งานแป้นพิมพ์ Keyboardการใช้งานแป้นพิมพ์ Keyboard
การใช้งานแป้นพิมพ์ Keyboard
 
ppts on Input devices
ppts on Input devicesppts on Input devices
ppts on Input devices
 
Simple Calendar Application using C
Simple Calendar Application using CSimple Calendar Application using C
Simple Calendar Application using C
 
유니티 UI - 텍스트, 버튼, 이미지, 씬 이동
유니티 UI - 텍스트, 버튼, 이미지, 씬 이동유니티 UI - 텍스트, 버튼, 이미지, 씬 이동
유니티 UI - 텍스트, 버튼, 이미지, 씬 이동
 
Java Calculator project
Java Calculator projectJava Calculator project
Java Calculator project
 
เข้าใจตลาด (Market Understanding)
เข้าใจตลาด (Market Understanding)เข้าใจตลาด (Market Understanding)
เข้าใจตลาด (Market Understanding)
 
C++20 Coroutine
C++20 CoroutineC++20 Coroutine
C++20 Coroutine
 
Presentation on Input and Output Devices
Presentation on Input and Output DevicesPresentation on Input and Output Devices
Presentation on Input and Output Devices
 
서버와 클라이언트 같은 엔진 사용하기
서버와 클라이언트 같은 엔진 사용하기서버와 클라이언트 같은 엔진 사용하기
서버와 클라이언트 같은 엔진 사용하기
 

Similar to Calculator stories

Assignment 1 Visual Basic Calculator
Assignment 1 Visual Basic CalculatorAssignment 1 Visual Basic Calculator
Assignment 1 Visual Basic Calculator
dnbsystems
 
Cornus Technology User Manual
Cornus Technology User ManualCornus Technology User Manual
Cornus Technology User ManualLynette Ho
 
OfficeCentral manual-en-PointofSales-v3 r5
OfficeCentral manual-en-PointofSales-v3 r5OfficeCentral manual-en-PointofSales-v3 r5
OfficeCentral manual-en-PointofSales-v3 r5
venturesmarketing
 
C:\Users\Degree\Desktop\Instructions
C:\Users\Degree\Desktop\InstructionsC:\Users\Degree\Desktop\Instructions
C:\Users\Degree\Desktop\InstructionsLouis Jimenez
 
Elosimple manual
Elosimple manualElosimple manual
Elosimple manual
Peter Darrah, CA
 
Advanced accounting in Tally ERP 9
Advanced accounting in Tally ERP 9Advanced accounting in Tally ERP 9
Advanced accounting in Tally ERP 9
Accounts Arabia
 
OfficeCentral User Manual for Point of Scale (English) V1R1
OfficeCentral User Manual for Point of Scale (English) V1R1OfficeCentral User Manual for Point of Scale (English) V1R1
OfficeCentral User Manual for Point of Scale (English) V1R1
venturesmarketing
 
910m30manenglish
910m30manenglish910m30manenglish
910m30manenglishyunusd1
 
6 advanced accounting
6 advanced accounting6 advanced accounting
6 advanced accounting
MD. Monzurul Karim Shanchay
 
Calculator 4
Calculator 4Calculator 4
Calculator 4livecode
 
April's Garden Procedures and policies manual
April's Garden Procedures and policies manualApril's Garden Procedures and policies manual
April's Garden Procedures and policies manualLinnea Barnett
 
Peachtree complete instructions
Peachtree complete instructionsPeachtree complete instructions
Peachtree complete instructions
teferi kassa
 
Peachtree complete instructions
Peachtree complete instructionsPeachtree complete instructions
Peachtree complete instructions
Dreams Design
 
Computerised Accounting(Chart of Accounts)
Computerised Accounting(Chart of Accounts)Computerised Accounting(Chart of Accounts)
Computerised Accounting(Chart of Accounts)
Hammad Nangiana
 
Elosimple manual
Elosimple manualElosimple manual
Elosimple manual
Peter Darrah, CA
 

Similar to Calculator stories (17)

Assignment 1 Visual Basic Calculator
Assignment 1 Visual Basic CalculatorAssignment 1 Visual Basic Calculator
Assignment 1 Visual Basic Calculator
 
Cornus Technology User Manual
Cornus Technology User ManualCornus Technology User Manual
Cornus Technology User Manual
 
OfficeCentral manual-en-PointofSales-v3 r5
OfficeCentral manual-en-PointofSales-v3 r5OfficeCentral manual-en-PointofSales-v3 r5
OfficeCentral manual-en-PointofSales-v3 r5
 
TimmyMe TestCase
TimmyMe TestCaseTimmyMe TestCase
TimmyMe TestCase
 
C:\Users\Degree\Desktop\Instructions
C:\Users\Degree\Desktop\InstructionsC:\Users\Degree\Desktop\Instructions
C:\Users\Degree\Desktop\Instructions
 
Instructions
InstructionsInstructions
Instructions
 
Elosimple manual
Elosimple manualElosimple manual
Elosimple manual
 
Advanced accounting in Tally ERP 9
Advanced accounting in Tally ERP 9Advanced accounting in Tally ERP 9
Advanced accounting in Tally ERP 9
 
OfficeCentral User Manual for Point of Scale (English) V1R1
OfficeCentral User Manual for Point of Scale (English) V1R1OfficeCentral User Manual for Point of Scale (English) V1R1
OfficeCentral User Manual for Point of Scale (English) V1R1
 
910m30manenglish
910m30manenglish910m30manenglish
910m30manenglish
 
6 advanced accounting
6 advanced accounting6 advanced accounting
6 advanced accounting
 
Calculator 4
Calculator 4Calculator 4
Calculator 4
 
April's Garden Procedures and policies manual
April's Garden Procedures and policies manualApril's Garden Procedures and policies manual
April's Garden Procedures and policies manual
 
Peachtree complete instructions
Peachtree complete instructionsPeachtree complete instructions
Peachtree complete instructions
 
Peachtree complete instructions
Peachtree complete instructionsPeachtree complete instructions
Peachtree complete instructions
 
Computerised Accounting(Chart of Accounts)
Computerised Accounting(Chart of Accounts)Computerised Accounting(Chart of Accounts)
Computerised Accounting(Chart of Accounts)
 
Elosimple manual
Elosimple manualElosimple manual
Elosimple manual
 

More from Dhaval Dalal

Test Pyramid in Microservices Context
Test Pyramid in Microservices ContextTest Pyramid in Microservices Context
Test Pyramid in Microservices Context
Dhaval Dalal
 
Code Retreat
Code RetreatCode Retreat
Code Retreat
Dhaval Dalal
 
Booting into functional programming
Booting into functional programmingBooting into functional programming
Booting into functional programming
Dhaval Dalal
 
Currying and Partial Function Application (PFA)
Currying and Partial Function Application (PFA)Currying and Partial Function Application (PFA)
Currying and Partial Function Application (PFA)
Dhaval Dalal
 
Creating Lazy stream in CSharp
Creating Lazy stream in CSharpCreating Lazy stream in CSharp
Creating Lazy stream in CSharp
Dhaval Dalal
 
Json Viewer Stories
Json Viewer StoriesJson Viewer Stories
Json Viewer Stories
Dhaval Dalal
 
Value Objects
Value ObjectsValue Objects
Value Objects
Dhaval Dalal
 
How Is Homeopathy Near To Yoga?
How Is Homeopathy Near To Yoga?How Is Homeopathy Near To Yoga?
How Is Homeopathy Near To Yoga?
Dhaval Dalal
 
Approaching ATDD/BDD
Approaching ATDD/BDDApproaching ATDD/BDD
Approaching ATDD/BDD
Dhaval Dalal
 
Paradigms Code jugalbandi
Paradigms Code jugalbandiParadigms Code jugalbandi
Paradigms Code jugalbandi
Dhaval Dalal
 
Data Reconciliation
Data ReconciliationData Reconciliation
Data Reconciliation
Dhaval Dalal
 
DRYing to Monad in Java8
DRYing to Monad in Java8DRYing to Monad in Java8
DRYing to Monad in Java8
Dhaval Dalal
 
CodeRetreat
CodeRetreatCodeRetreat
CodeRetreat
Dhaval Dalal
 
4-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr2015
4-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr20154-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr2015
4-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr2015
Dhaval Dalal
 
Jumping-with-java8
Jumping-with-java8Jumping-with-java8
Jumping-with-java8
Dhaval Dalal
 
3-CodeJugalbandi-currying-pfa-healthycodemagazine#mar2015
3-CodeJugalbandi-currying-pfa-healthycodemagazine#mar20153-CodeJugalbandi-currying-pfa-healthycodemagazine#mar2015
3-CodeJugalbandi-currying-pfa-healthycodemagazine#mar2015
Dhaval Dalal
 
CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015
CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015
CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015
Dhaval Dalal
 
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-IssueCodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
Dhaval Dalal
 
The tao-of-transformation-workshop
The tao-of-transformation-workshopThe tao-of-transformation-workshop
The tao-of-transformation-workshop
Dhaval Dalal
 
Grooming with Groovy
Grooming with GroovyGrooming with Groovy
Grooming with Groovy
Dhaval Dalal
 

More from Dhaval Dalal (20)

Test Pyramid in Microservices Context
Test Pyramid in Microservices ContextTest Pyramid in Microservices Context
Test Pyramid in Microservices Context
 
Code Retreat
Code RetreatCode Retreat
Code Retreat
 
Booting into functional programming
Booting into functional programmingBooting into functional programming
Booting into functional programming
 
Currying and Partial Function Application (PFA)
Currying and Partial Function Application (PFA)Currying and Partial Function Application (PFA)
Currying and Partial Function Application (PFA)
 
Creating Lazy stream in CSharp
Creating Lazy stream in CSharpCreating Lazy stream in CSharp
Creating Lazy stream in CSharp
 
Json Viewer Stories
Json Viewer StoriesJson Viewer Stories
Json Viewer Stories
 
Value Objects
Value ObjectsValue Objects
Value Objects
 
How Is Homeopathy Near To Yoga?
How Is Homeopathy Near To Yoga?How Is Homeopathy Near To Yoga?
How Is Homeopathy Near To Yoga?
 
Approaching ATDD/BDD
Approaching ATDD/BDDApproaching ATDD/BDD
Approaching ATDD/BDD
 
Paradigms Code jugalbandi
Paradigms Code jugalbandiParadigms Code jugalbandi
Paradigms Code jugalbandi
 
Data Reconciliation
Data ReconciliationData Reconciliation
Data Reconciliation
 
DRYing to Monad in Java8
DRYing to Monad in Java8DRYing to Monad in Java8
DRYing to Monad in Java8
 
CodeRetreat
CodeRetreatCodeRetreat
CodeRetreat
 
4-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr2015
4-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr20154-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr2015
4-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr2015
 
Jumping-with-java8
Jumping-with-java8Jumping-with-java8
Jumping-with-java8
 
3-CodeJugalbandi-currying-pfa-healthycodemagazine#mar2015
3-CodeJugalbandi-currying-pfa-healthycodemagazine#mar20153-CodeJugalbandi-currying-pfa-healthycodemagazine#mar2015
3-CodeJugalbandi-currying-pfa-healthycodemagazine#mar2015
 
CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015
CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015
CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015
 
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-IssueCodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
 
The tao-of-transformation-workshop
The tao-of-transformation-workshopThe tao-of-transformation-workshop
The tao-of-transformation-workshop
 
Grooming with Groovy
Grooming with GroovyGrooming with Groovy
Grooming with Groovy
 

Recently uploaded

Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 

Recently uploaded (20)

Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 

Calculator stories

  • 1. Calculator Stories dhaval.dalal@software-artisan.com @softwareartisan
  • 2. Story #1 As an Accountant I want to add two numbers so that I can see what the total is Acceptance Criteria Given I have two numbers 2 and 3 When I add them Then I should see the sum as 5
  • 3. Story #2 As an Accountant I want to subtract two numbers so that I can see what the difference between them is Acceptance Criteria Given I have two numbers 2 and 3 When I subtract them Then I should see the difference as -1
  • 4. Story #3 As an Accountant I want to divide two numbers so that I can know the quotient Acceptance Criteria #1 Given I have two numbers 2 and 3 When I divide them Then I should see the quotient as 0.666666 Acceptance Criteria #2 Given I have two numbers 2 and 0 When I divide them Then I should see the quotient as ‘Infinity’
  • 5. Story #4 As an Accountant I want to multiply two numbers so that I can see what their product is Acceptance Criteria Given I have two numbers 2 and 3 When I multiply them Then I should see the product as 6
  • 6. Story #5 As an Accountant I want to toggle the sign of numbers so that I can reverse them at will Acceptance Criteria #1 Given I have number 2 When I press the toggle key (‘+/-’) Then I should see -2 on the display Acceptance Criteria #2 Given I have number -2 When I press the toggle key (‘+/-’) Then I should see 2 on the display
  • 7. Story #6 As an Accountant I want to delete a wrongly entered digit so that I can correct the number to input. Acceptance Criteria #1 Given I have pressed keys 2, 3, 4 When I press the backspace key Then I should see 23 on the display Acceptance Criteria #2 Given I have pressed a key 2 When I press the backspace key Then I should see ‘0’ on the display
  • 8. Story #7 As an Accountant I want to store number in memory so that I can use it later Acceptance Criteria #1 Given I press ‘2’ on the keypad When I press ‘M in’ key Then the number 2 should be stored in memory and the status bar on the display should show ‘M’ and the display should show ‘0’ to indicate that the calculator is ready for next operation
  • 9. Acceptance Criteria #2 Given that the status bar on the display shows ‘M’ When I recall the number by pressing the ‘R-CM’ key Then I should see the originally stored number on the display and be able to use that number for any operation.
  • 10. Story #8 As an Accountant I want to reset the calculator so that I can start afresh Acceptance Criteria #1 Given I am in middle of an operation When I press ‘CE’ (Clear Everything) key Then the operation should be cancelled and the display should show ‘0’ to indicate that the calculator is ready for next operation.
  • 11. Acceptance Criteria #2 Given that the display status bar on the display shows ‘M’ When I press ‘CE’ (Clear Everything) key Then I memory should be cleared and the display status bar should not show ‘M’ and the display should show ‘0’ to indicate that the calculator is ready for next operation
  • 12. Story #9 As an Accountant I want to store operations in memory so that I can recall them to see the steps that resulted in the final answer Acceptance Criteria Given I have performed two operations 2 * 3 = 6 and 6 + 3 = 9 When I replay the operations by pressing the step key Then I should see the following on the display in order Upon pressing the ‘Step’ key once I should see 2 * 3 = 6 Upon pressing the ‘Step’ key again, I should see 6 + 3 = 9