Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 1.24 KB

e-chapter1.md

File metadata and controls

16 lines (9 loc) · 1.24 KB

Chapter 1 Practice Exercises

Exercise 1

Rewrite TwelveDays in an iterative style, as opposed to recursive. What is the impact of this change on the design? Does this change move the solution in the design space? If so, how?

Exercise 2

Change TwelveDays so that it is possible to choose between displaying the number of the days written out (for example "third" day), as in the original version, or using digits (for example "3rd day"). If the user includes the command-line argument "digit", the program should use digits. In all other cases, the original, written-out form should be used. What is the impact of your solution on the quality attributes of the design?


Creative Commons License

Unless otherwise noted, the content of this repository is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Copyright Martin P. Robillard 2019-2021