Sample programs/ΒΆ

  • The number guessing game
    • A first version
    • Digging deeper into evaluation
    • Taking stock
    • Room for improvement
    • Afterword
    • Exercises
  • TicTacToe
  • Approximate square-root
    • The top level
    • repeat-until
    • sufficiently-precise
    • improved-estimate
    • Remarks

CompLIT: Programming Literacy

Navigation

Contents:

  • Introduction
  • Words
  • Interrogating programs
  • The editor
  • Strings
  • Sample programs/
    • The number guessing game
    • TicTacToe
    • Approximate square-root
  • IPD: Incremental Program Decomposition
  • Structures
  • Parsing
  • Assumptions and implications
  • More parsing
  • Optional: Alternative language
  • Recap
  • Optional: Technical terms
  • Modelling domains/
  • Representations
  • Interlude: SVG
  • Generalizations

Related Topics

  • Documentation overview
    • Previous: Strings
    • Next: The number guessing game
©2026, Srikumar K. S.. | Powered by Sphinx 9.1.0 & Alabaster 1.0.0 | Page source