Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The file palindromes.txt contains several palindromes, separated by a CR/LF. Use your palindrome algorithm to answer three questions: How many entries in this file are
The file palindromes.txt contains several palindromes, separated by a CR/LF.
Use your palindrome algorithm to answer three questions:
How many entries in this file are ordinary (but not strict) palindromes?
How many entries in this file are strict palindromes?
How many entries in this file are not palindromes?
Ignore any leading or trailing space characters; consider only spaces within the string.
strings in file are
racecar racecar!!! Race car TACO CAT Able was I, ere I saw Elba.... A man, a plan, a canal - Panama!!! King, are you glad you are king? Al lets Della call Ed "Stella." Was it a car or a cat I saw? Dennis, Nell, Edna, Leon, Nedra, Anita, Rolf, Nora, Alice, Carol, Leo, Jane, Reed, Dena, Dale, Basil, Rae, Penny, Lana, Dave, Denny, Lena, Ida, Bernadette, Ben, Ray, Lila, Nina, Jo, Ira, Mara, Sara, Mario, Jan, Ina, Lily, Arne, Bette, Dan, Reba, Diane, Lynn, Ed, Eva, Dana, Lynne, Pearl, Isabel, Ada, Ned, Dee, Rena, Joel, Lora, Cecil, Aaron, Flora, Tina, Arden, Noel, and Ellen sinned. afd8792h34af7980897fa43h2978dfa afd879 2h34af798 0897fa4 3h2 978dfa afd8792h34af79380897fa43h2978dfa sleep faced time sap new evil live wen yag pas emit decaf peels sleep ogre stoops secret stink state amore real room know man nam wonk moor laer roma etats knits terces spoots ergo peels Devil time spins real fool secret trap part terces loof laer snips emit lived looks sense, animal liar bibrank some emos knar bib rail lamina esnes skool! stink rats state sense sleep know reined animal time Devil lived emit terces lamina denier wonk peels esnes etats star knits animal spins real edit man trap spinx secret terces nips part nam tide laer snips lamina snow looks leat sleep deep edit state Devil recal slit rats startils lacer lived etats tide peed peels tael skool wons fool animal edit time sense trap saw word drow was part esnes emit tide lamina loof secret poor edit sense keep sleep fool big real deep peed laer gib loof peels peek esnes tide roop terces How are you going to do on this quiz ????? ziuq siht no od ot gniog uoy era woH STRICT_TCIRTS xxx12321xxx
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started