Use Case: The user inputs an arithmetic expression with addition,
multiplication, and constant integers, and the system evaluates it.
Analysis: Separate the parsing of the expression from the evaluation. The GRASP
Controller is called Parser which which is also the Builder (GoF) of an Expression
data structure before evaluating it.
Iteration Plan: Develop the evaluation package first with a test expression constructed in "main".
[ Minicalc.png ]
(graphic DCD+example communications),
[ Minicalc.cpp ]
[ Minicalc.Cards.html ]
(CRC like cards), and
[ Minicalc.dia ]
(Editable dia diagram).
Exercise 0: what GoF and GRASP patterns did I use?
Execise 1: Simulation with one object per student.
Exercise 2: New use case: print out an expression.
Add a print function to Expressions and Operators.
Exercise 3: Add Subtraction to the design.
Exercise 4: Translate into Java/PHP/Python/Ruby/YFOOPL and make it work. Keep the UI simple.
- YFOOPL::acronym="Your Favorite Object Oriented Programming Language".