O'Reilly logo

Programming Like a Pro for Teens by Charles R. Hardnett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Small-Scale Problems

In This Chapter

  • Problem 1: Paper, Scissors, Rock!

  • Problem 2: Demographic Analysis

 

Inside every well-written large program is a well-written small program.

 
 --C.A.R. Hoare

In the previous chapters, you learned about C++ core statements, functions, basic program design and pseudocode, and divide and conquer. You can use all these ideas to solve small-scale problems. The scale of a problem is based on several factors:

  • The difficulty of the solution

  • The number of functions in the solution

  • The amount and diversity of the data in the solution

Starting with small-scale problems helps you master the use of the core C++ language and functions while applying some basic analysis ideas. Large, complex programs are made up of smaller, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required