c++ please
Page 5 of 5 6) Reversing a word or phrase by using a stack: read the input one word or one phrase at a time and place each letter ina stack (so we need a character stack). After the word/phrase is read, the letters in the stack are written out, but because of the way a stack works, they are written out in reverse order. Write a program that asks the user enter a word or a phrase, and then your program reverses it in the way described above. Ans: Show transcribed image text Page 5 of 5 6) Reversing a word or phrase by using a stack: read the input one word or one phrase at a time and place each letter ina stack (so we need a character stack). After the word/phrase is read, the letters in the stack are written out, but because of the way a stack works, they are written out in reverse order. Write a program that asks the user enter a word or a phrase, and then your program reverses it in the way described above. Ans:
Expert Answer
Answer to Page 5 of 5 6) Reversing a word or phrase by using a stack: read the input one word or one phrase at a time and place ea…