Investigating and Designing a Program

Part of: Creative Development

Understanding the Problem First Good software starts long before any code is written. The first phase of development is investigating : studying the problem, talking to the people who will use the program, and identifying constraints. Skipping investigation often produces a program that works but solves the wrong problem. During investigation, a team gathers requirements : clear statements of what the finished program must do. A requirement is testable, like "the program must output the total of all entered numbers." Program Design Program design is the planning that turns requirements into a structure. Designers decide: - what inputs the program accepts, - what outputs it produces, - and the steps that connect them. A helpful design tool is to describe the steps in plain language before coding. For example: read a line, split it into words, convert each to a number, keep the largest, then print it. Writing this plan first prevents confusion later. From Design to Code Once the design is clear, translating it to Python is direct. Here a design that finds the largest contribution becomes code: Notice the comment records the design intent , while the code carries it out. Considering U

Challenge: Largest Contribution