programming assignment 2 due saturday nov 17 noon 2012 basic task implement stack
Programming Assignment 2
due Saturday, Nov. 17, noon, 2012
The basic task is this: implement a stack of float values that has Θ (1) worst case behavior for PUSH, POP, and MEAN, a function returning the mean of the values in the stack.
This stack should be wrapped in a user interface that asks the user to choose from POP, PUSH, MEAN or QUIT at each turn. If the user enters PUSH, the program should read a number from the keyboard. If the user tries POP or MEAN on an empty stack, the program should notify the user of the error, and again prompt the user to choose from POP, PUSH, MEAN or QUIT. To facilitate testing, please use exactly these commands.
preffered in Java using Eclipse IDE