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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!