Home CPSC 330

Refactoring Exercise 2

Objective

To get further experience refactoring code.

Task

For this lab, you will refactor a badly written program, while not changing the way the program works.

The program CryptogramGenerator takes in a string of input from the user and generates a Cryptogram puzzle from it, by performing a random substitution on it.

You should refactor this code using the rules discussed in class.


Submitting

When your program is done, email the code to ifinlay@umw.edu.

Copyright © 2018 Ian Finlayson | Licensed under a Creative Commons Attribution 4.0 International License.