hey everyone
am totaly stuck on these questions.
am new to programming and a begginer is even a big word for me
i guess am still at the scratch level
so plz help :'(
here are the questions
1. Write a program that asks the user to enter 10 integers. As each integer is entered, only those integers that are odd should be pushed into the stack. The remaining numbers should be ignored. The program should finally pop and print all the items in the stack as output.
2. Write a function called CATSTACK, that concatinates the contents of one stack on top of another. Assume a stack of integers.
Write a program that creates 2 stacks of integers and then concatinates the second one on top of the first one then your program should write all the items by popping them in the resulting stack.
3. Write a program that opens the text file and begins reading the integers. As each inteder is read, checks should be done if the integer is prime, then only one integer (if any) should be popped from the prime stack and printed onto the screen. At the end, the program should also print the number of items still in the prime stack. The data in the text file are 3, 30, 41, 13, 7, 17, 22, 10, 8, 7, 3, 5, 12, 16.
thanks alot for your help