In this homework, you are going to implement a program which accepts two strings (str, pat) and checks whether pat appears as substrings in str. In the lectures, we saw program ex016 and ex017 that ...