The Five Steps - Step 3
Write an algorithm for solving the problem
The algorithm for the simplified task is straightforward:
- 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.
- It would be a good idea to display the data values to verify
they are correct.
- Compute the stock value
- Display the result to the screen.
Test the program
to Overview.