Question
In C++ 1. Write a function that receives a string of characters as its input, and check if it is symmetric to a dollar sign.
In C++
1. Write a function that receives a string of characters as its input, and check if it is symmetric to a dollar sign. You may use following function header:
bool isInLanguage_1(string aString)
2. Write a function that receives a string of characters and return true if the string is in language, otherwise it returns false. You may use following function header (Assume a string is in language if it is read from the left side is the same as it is read from the right side. For example, a-b-d-c is not in the language, a-b-c-a-c-b-a is in language):
bool isInLanguage_2(string aString)
Need both functions in 1 source file.
Note: Please follow the instructions above and use the class template Stack for this assignment. It is not about checking to see if a string is in the language, it is about if you can use Stack to solve the programming problem.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started