Question: This independent programming assignment assesses your mastery of the concept of strings. It also requires previous concepts of user input, organizing your code into functions
This independent programming assignment assesses your mastery of the concept of strings. It also requires previous concepts of user input, organizing your code into functions and loops.Being able to manipulate and test strings are common requirements for a computer program.
Description
Palindrome detector A palindrome is a string that is the same written forward and backward ex RADAR, MADAM IM ADAM
Write a Python script with a main method that requests strings from the user until STOPis entered. For the string, remove all spaces and punctuation. Then, call your function to change all letters to UPPERCASE. Additionally, call a function to reverse the order of the characters in the first string storing the characters in a second string. Finally, write and use a function to compare the two strings. Do NOT use the methods strupper,strreverse or strstrip.
Grading Rubric for Independent Programming Assignment:
Any script that does not run cannot receive more than
Comments description name, date at the top, before methods and major sections pts
Main function repeatedly requests user input until STOP pts
Program runs without errors and correct output pts
User defined function to remove spaces and punctuation pts
User defined function change letters to uppercase pts
User defined function to reverse the string pts
User defined function to compare two strings pts
Total points
Example User input in bolded text:
Palindrome detector!
Please enter a string to test if it is a palindrome enter STOP when finished: Radar
Radar IS a palindrome.
Please enter a string to test if it is a palindrome enter STOP when finished: Ohio
Ohio is NOT a palindrome
Please enter a string to test if it is a palindrome enter STOP when finished: Madam Im Adam!
Madam Im Adam IS a palindrome.
Please enter a string to test if it is a palindrome enter STOP when finished: STOP
Bye.
Example User input in bolded text:
Palindrome detector!
stop
Bye.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
