SAMPLE STUDENT CODE IN ADA

WITH SUGGESTED REVISIONS FOR REUSABILITY



Calculator - first version with comments
Calculator - second version
Comments on second version
Third version - calculator with generic integer type
Last version - calculator with generic number package
Game of Life, 1st attempt main program; comments attached at the end of each unit
Game of Life, package specification
Game of Life, package body

Game of Life, 2nd attempt main program with comments
Game of Life, package specification
Game of Life, package body

Game of Life, last attempt main program
Game of Life, package specification
Game of Life, package body
Game allowing players to move boxes on pegs - similar to a manual Towers of Hanoi problem- first attempt with comments
package specification for the above game
package body for the above game