ABSTRACT
We propose a fork diagram as a visual representation of the algorithm for binary selection. Among other things, fork diagrams can be used to teach students how to write correctly nested if-else statements, analyze nested selection code, appreciate the problem of dangling else, and understand short circuit evaluation of conditions with boolean operators (and and or). We have used C code to illustrate concepts, although fork diagrams can be used for any high level language.
- KR85.B.W. Kernighan and D.M. Ritchie, The C Programming Language, Prentice Hall, 1985. Google ScholarDigital Library
- L95.S.P. Levy, "Computer Language Usage in CSI: Survey Results", SIGCSE Bulletin, 27(3):21-26,9/95. Google ScholarDigital Library
- W74.J.D. Warnier, Logical Construction of Programs, Van Nostrand, 1974. Google ScholarDigital Library
- S80.B. Shneiderman, Software Psychology, Winthrop Publishers, 1980.Google Scholar
- A85.J.R. Anderson, Cognilire Psychology and zls Implications, W.H. Freeman and Company, New York, 1985.Google Scholar
Index Terms
- Fork diagrams for teaching selection in CS I
Recommendations
Fork diagrams for teaching selection in CS I
We propose a fork diagram as a visual representation of the algorithm for binary selection. Among other things, fork diagrams can be used to teach students how to write correctly nested if-else statements, analyze nested selection code, appreciate the ...
Constraint Diagrams: A Step Beyond UML
TOOLS '99: Proceedings of the Technology of Object-Oriented Languages and SystemsThe Unified Modeling Language (UML) is a set of notations for modelling object-oriented systems. It has become the de facto standard. Most of its notations are diagrammatic. An exception to this is the Object Constraint Language (OCL) which is ...
Comments