Question: 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

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)

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!