1. prepare a function to determine common alphabets between two arrays. Also prepare Test Cases, Test Data & Test Results for validating the program. Length of array is not fixed and array might contain other data type also.”
ex: [2, *, @, 5, %, $, a], [a, !, 5, $, +, =, 9] from these array, a and 5 are common elements.
2. "prepare the function for finding out highest and lowest marks obtained by the student from an array contained student name and marks".
For ex :
GetHighestLowestMarks{Student{n}, Marks{n}} returns an array contain student name and marks.
3. “prepare the function for determining the occurrences of repeated word from a sentence. This function will return an array of duplicate words.”
For ex: “India is my country. I love my country very much. I love its varied heritage.” Here the repeated words are :
I – occur – 2 times
Love – occur – 2 times
Country – occur – 2 times
4. prepare the function for replacing all occurrences of a specified string value with another value.
For ex: “I love chatting with friends.”
Replace: “friends”, “girls”. It should return: “I love chatting with girls”.
5. prepare the function for removing duplicate elements from the given array and sort that array. (Without using inbuilt functions).
For ex:
Array = {2, 1, 3, 2, 4, 4, 6, 5, 6}
Output = {1, 2, 3, 4, 5, 6}