submit itec320-01 pal_finder.adb
mydata.txt, consists of these lines:
eve !eve! Eve eve!! Eve!!! madam i'm adam! This is a random sentence! !!!$$$Then a sample run is as follows:
>pal_finder < mydata.txt String: "eve" Status: Palindrome as entered String: "!eve!" Status: Palindrome as entered String: "Eve" Status: Palindrome when converted to upper case String: "eve!!" Status: Palindrome when non-letters are removed Characters removed: 2 String: "Eve!!!" Status: Palindrome when non-letters are removed and converted to upper case Characters removed: 3 String: " madam i'm adam!" Status: Palindrome when non-letters are removed Characters removed: 6 String: "This is a random sentence!" Status: Not a palindrome String: "" Status: Palindrome as entered String: "!!!$$$" Status: Palindrome when non-letters are removed Characters removed: 6Input: Input comes from standard input, and each line of the input will contain one string to be checked. Processing will continue until end of file is reached. Your program should not have any prompts.
Output format: Your output should follow the example above. As shown, the output will consist of the string and its status, each with the suitable label. If character removal is needed to make a palindrome, display the number of non-letters that are removed. Print a blank line after the output for each string.
Style: In coming up with your Ada solution to the following problem, please follow my style guide. In particular, please note the use of consistent indentation, named constants, and descriptive constant and variable names. Please remember that the first thing in any program file should be a comment that gives a brief overview of what the file contains (and should do). Also remember to keep your lines less than 80 characters long. Not only does this mean that printouts won't run off the side of the page, but it also makes your programs look neater on an 80 column wide xterm window (a popular size). If you are unsure of an element of programming style, please ask, as I would be more than happy to show you what I want.
Submission: Use the submit command to turn your program in for grading. You may submit as many times as you like, but only the last submission is kept. In particular, be aware that since only the last submission is kept, if the last one is late, then your assignment is late and will thus receive a late penalty. Also remember that you must be on rucs2 for submit to work. To submit your work for grading use the submit command at the top of the assignment.