Transcript
Page 1: The Story of a Story

The Story of a Story

Alistair McKinnellwww.valuablecode.com

@[email protected]

Page 2: The Story of a Story
Page 3: The Story of a Story
Page 4: The Story of a Story
Page 5: The Story of a Story
Page 6: The Story of a Story
Page 7: The Story of a Story
Page 8: The Story of a Story
Page 9: The Story of a Story

Customer is charged for a late return

In order to discourage overduevideo rentals

As a video store clerk

I need to charge each customer a late return fee

Page 10: The Story of a Story

Charge 0.50 for each dayIron Man 2 is overdue

Page 11: The Story of a Story

Charge 1.50 for each week Pulp Fictionis overdue

Page 12: The Story of a Story
Page 13: The Story of a Story
Page 14: The Story of a Story
Page 15: The Story of a Story
Page 16: The Story of a Story
Page 17: The Story of a Story
Page 18: The Story of a Story
Page 19: The Story of a Story
Page 20: The Story of a Story

Charge .50 each day a new title is overdue

Given a customer that has rented Iron Man 2When the rental is returned <hours> hours lateThen the late return fee is <fee>

Examples:

|hours|fee||16|0.50||24|1.00||49|1.50|

Page 21: The Story of a Story

Charge 1.50 each week a classic title is overdue

Given a customer that has rented Pulp FictionWhen the rental is returned <days> days lateThen the late return fee is <fee>

Examples:

|days|fee||3|1.50||7|3.00||17|4.50|

Page 22: The Story of a Story
Page 23: The Story of a Story
Page 24: The Story of a Story
Page 25: The Story of a Story

Credits

http://www.flickr.com/photos/mountainbread/34033526/

http://www.flickr.com/photos/flem007_uk/3168012226/

https://docs.google.com/drawings/edit?id=1cbfKq-KazcbMVCnRfih6zMSDBdtf90KviV7l2oxGyWM&hl=en

http://www.flickr.com/photos/frigante/2039111570/

http://www.houghtonmifflinbooks.com/features/mike_mulligan/


Top Related