The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
USING JAVA!
3. Modify the stack program to issue a warning and return -1 if the client program attempt to pop an empty stack and give a warning if it tries to push onto a full one. Demonstrate the two cases in a main() client program.
7. We have a program that reads in a sequence of characters and prints them
in reverse order using a stack. Write a client program that allows the user to enter a
string and prints whether the string is a palindrome (read the same backwards) or not. Palindrome examples are "dad" and "racecar". Demonstrate the two cases in a main() client program.
8. Write a program that reads in a sequence of characters, and determines whether its parentheses, braces, curly braces, "<" and ">" are balanced. Hint: for left delimiters, push onto stack; for right delimiters, pop from stack and check whether popped element matches right delimiter. Demonstrate the two cases in a
main() client program.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll