Problem 2: Table of Squares and Cubes
Write a program to produce the following table:
Number Square Cube
0 0 0
1 1 1
2 4 8
3 9 27
4 16 64
5 25 125
Note:
For both problems:
- Show the analysis, specifications, and flowcharts of the two problems.
- Use documentation by commenting your code.
- Write your code in the script mode.