The Five Steps - Step 3

Understand the problem

Do a small example by hand

Write an algorithm for solving the problem

The algorithm for the simplified task is straightforward:
  1. We must first set the data values for the information we have about the one stock - the number of shares, and the three stock price numbers.
  2. It would be a good idea to display the data values to verify they are correct.
  3. Compute the stock value
  4. Display the result to the screen.

Translate the algorithm into a programming language (like C)

Test the program


[up] to Overview.