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 I'M 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 str.upper,str.reverse or str.strip.
Grading Rubric for Independent Programming Assignment:
(Any script that does not run cannot receive more than 50%)
Comments (description, name, date at the top, before methods and major sections)10 pts
Main function repeatedly requests user input until STOP20 pts
Program runs without errors and correct output30 pts
User defined function to remove spaces and punctuation10 pts
User defined function change letters to uppercase10 pts
User defined function to reverse the string10 pts
User defined function to compare two strings10 pts
Total100 points
================================================
Example 1(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 I'm Adam!
Madam I'm Adam IS a palindrome.
Please enter a string to test if it is a palindrome (enter STOP when finished): STOP
Bye.
Example 2(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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!