CSC175 Introduction to Algorithms and Data Structures
Spring 2019
Homework 7


Chapter 7: Programming Problem 6 of 3rd edition (page 400), or Programming Problem 5 of 2nd edition (page 375):

This assignment asks you to test and implement algorithms given in the textbook using stacks to simulate a calculator, as follows:

Hand in printouts of your source code as well as the output of your test cases.

If you have the previous (updated) edition
Chapter 6: Programming Problem 4 (page 293): Same as above: Design and implement (and of course test) the given algorithms in Java.

Correctness counts for 40% of your grade. Test cases (which should include both "normal" and "special" cases) count for 30% of the grade. Readability counts for 30%. Choose appropriate names for your identifiers. Use comments (Javadoc style), preconditions, postconditions and indentation appropriately. Follow the programming conventions/guidelines we discussed.

Since this assignment builds upon a lab exercise, it may be done individually or in a group of two. If done in a group (not more than two per group), hand in one copy with both your names on it.


[Back to the Assignments Index]