Translation from Problem to Code in Seven Steps

Published

Conference Paper

© 2019 Copyright held by the owner/author(s). Publication rights licensed to ACM. Students in introductory programming courses struggle with how to turn a problem statement into code. We introduce a teaching technique, "The Seven Steps," that provides structure and guidance on how to approach a problem. The first four steps focus on devising an algorithm in English, then the remaining steps are to translate that algorithm to code, test the algorithm, and debug failed test cases. This approach not only gives students a way to solve problems, but also ideas for what to do if they get stuck during the process. Furthermore, it provides a way for instructors to work examples in class that focus on the process of devising the code-instructors can show how to come up with the code, rather than just showing an example. We describe our experience with this technique in several introductory programming courses-both in the classroom and online.

Full Text

Duke Authors

Cited Authors

  • Hilton, AD; Lipp, GM; Rodger, SH

Published Date

  • May 9, 2019

Published In

  • Comped 2019 Proceedings of the Acm Conference on Global Computing Education

Start / End Page

  • 78 - 84

International Standard Book Number 13 (ISBN-13)

  • 9781450362597

Digital Object Identifier (DOI)

  • 10.1145/3300115.3309508

Citation Source

  • Scopus