Introduction to Complex Programs

Learn about this optional bonus material designed for new programmers who love a challenge.

We'll cover the following

Stretching your skills

This section is not an essential part of the course—it contains optional bonus material for new programmers who like to solve complex challenges. Whether or not you tackle these challenges is completely up to you!

Guidelines

Conditions, loops, strings, and arrays are all we need to solve the problems presented in this chapter. There are multiple ways to attack such complex problems. For example, you may:

  • Start by constructing a mental model (or idea) of the solution in the form of a simple description. Then, try to convert that idea into a program.
  • Create a visualization of the problem and then try to map it to a program.
  • Identify the purpose of each variable used in the given solution.
  • Segment the given solution into main parts based on the logic, and add comments for each segment or branch of the program.
  • Convert various segments of the given solution into the flowchart to understand the flow of the program.
  • Map the various segments of the given solution into the execution sheet to understand the changing values of variables used in the program.