I need to figure this problem out, I am using visual studio C#.

• Powers - Write an application that displays a tables of squares and cubes of an integer from 1 to an upper limit. The user should enter the upper limit and press the calculate button. The application should then display the number, the square of the number and the cube of the number in a list box. The list box should also contain column headings. If the user presses the button without entering a value the application should "degrade gracefully".