Exercise 2: Design with Design Patterns (Due: May 27th, 2011)
SE2-Software Design & Architecture (CS446/CS646/ECE452) Spring 2011

Main|Schedule|Term Project

Problem Description

You are to design a calculator for evaluating arithmatic expressions (based on basic arithmatic operations such as addition, subtraction, multiplication, and division).

Exercises

  1. Design the calculator using the Interpreter design pattern.
  2. Design the calculator using the Visitor design pattern.
  3. Which design will support easy addition of a new arithmatic operator?

Solution Calculator.pdf

Submission: Submit your solution as a pdf report not longer than five pages. The diagrams should be readable. Use UWACE to send your pdf files. This exercise will expire on May 30th, 2011.


Last updated on May 19th, 2011 by Atif Khan.