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 4. Numerical Problems

In This Chapter

  • Compound Interest

  • C++ Feature: Formatted Output

  • Computing the Square Root

  • C++ Feature: Functions

  • C++ Feature: The Math Library

  • C++ Feature: Counting Loops

 

Inside every large program, there is a small program trying to get out.

 
 --Tony Hoare

Numerical problems are those that require some mathematical formulation to solve. These problems may come from finance, statistics, science, and many other subjects. Typically, there is a mathematical formula or concept you must understand prior to solving the problem, and then it is your job to convert the mathematics into an algorithm that can be written in C++. When working with numerical problems in a programming language, you must address various concerns. One of ...

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