CS 351: Design of Large Programs -------------------------------- Assignment # 1, Due Date 09/04/01 ---------------------------------- Write a program to count and display the number of pallindromes of length 4 or greater in an input string stored in a file. A pallindrome is a string that reads the same backward (as forward). For example, (i) refer (ii) 4# *aa* #4 The input string may contain spaces or tabs which could be part of the pallindromic substring but CR/LF should be ignored. A pallindrome, p, that occurs in a pallindrome P=apa' (i.e. aa' is itself a pallindrome) should not be counted. So, in the string ...zxxcbbcuvucbbcxy... xcbbcuvucbbcx , cbbc and cbbc should be counted but xx does not qualify since its length is less than 4 and cuvuc does not qualify since there exists a substring a such that acuvuca' is a pallindrome in the input where aa' is also a pallindrome. ***************************************************************************** The output of the program should be # of pallindromes = ____ Pallindrome Length Starts at ----------- ------ --------- ... .. .. ... .. .. Your program should accept either 0 or one command line parameters. In the former case, the program should accept input from file "input". In the latter case, the parameter must be an integer, i. This means that the input string is in file "inputi". If an illegal parameter(s) is/are supplied or if the file cannot be opened, the user should be so informed.