12-11-2009, 07:57 AM
hey guys ive been working for this code to run for about 7 hours,.. actually it was been half a year after i stop java but now im trying to do this peice of program,..
here is the deal:
MENU:
1. Push(when you enter 1 you should input a single number and and then automatically go back to the , to the menu and then display under the menu the number you input , you can input up to 10 numbers and when you reach 10 it should display that "cannot enter anymore 10 units was already reach")
2.Pop(when you enter 2, the last number you did enter will automatically be delete and then automatically go back again to the menu. )
3. Exit(this is the only time you can exit the program because when you press 1 or 2 it will only go back to the menu after each transaction. )
this is how the menu looks like
1.Push
2.Pop
3.Exit
Input Display:
9
2
6
note: the 9,2, and 6 was just example that if you press 1 then you input 6 and go back to the menu, press 1 again and input 2 go back to the menu again, and then press1 and input 9 and go to menu again
then if you press 2 the 9 will be deleted
and automatically back to the menu and should look like this:
1.Push
2.Pop
3.Exit
Input Display:
2
6
i hope you guys can help me with this,..
here is the deal:
MENU:
1. Push(when you enter 1 you should input a single number and and then automatically go back to the , to the menu and then display under the menu the number you input , you can input up to 10 numbers and when you reach 10 it should display that "cannot enter anymore 10 units was already reach")
2.Pop(when you enter 2, the last number you did enter will automatically be delete and then automatically go back again to the menu. )
3. Exit(this is the only time you can exit the program because when you press 1 or 2 it will only go back to the menu after each transaction. )
this is how the menu looks like
1.Push
2.Pop
3.Exit
Input Display:
9
2
6
note: the 9,2, and 6 was just example that if you press 1 then you input 6 and go back to the menu, press 1 again and input 2 go back to the menu again, and then press1 and input 9 and go to menu again
then if you press 2 the 9 will be deleted
and automatically back to the menu and should look like this:
1.Push
2.Pop
3.Exit
Input Display:
2
6
i hope you guys can help me with this,..