help needed
Here is the testcase for the stack program.
Run the program Quit
Run the program Pop – you should see an “empty” message List – you should see an “empty” message Push a 1 Push a 2 Push a 3 Push a 4 Push a 5 List – you should see the numbers 5, 4, 3, 2, 1 in that order Pop – message indicating “5 was removed” List – you should see the number 4, 3, 2, 1 in that order Push a 6 List – 6, 4, 3, 2, 1 in that order Pop - “6 was removed” Continue popping until you have removed 4, 3, 2, and 1 Enter an invalid menu option to get the error message Pop - “empty” message should appear List - “empty” message should appear push a 10 pop – 10 is removed quit