Skip to content

g7skim/UoPeople-CS-1102-FirstSubRoutines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

UoPeople-CS-1102-FirstSubRoutines

UoPeople Programming

@author Eugene Vereshchagin (g7skim)

@email jamuday@me.com

@since 2017-07-13

The program is a part of the ‘firstsubroutines’ class.

The program prompt the user to enter a string. The program then test the string entered by the user to determine whether it is a palindrome. A palindrome is a string that reads the same backwards and forwards, such as "radar", "racecar", and "able was I ere I saw elba". It is customary to ignore spaces, punctuation, and capitalization when looking for palindromes. For example, "A man, a plan, a canal. Panama!" is considered to be a palindrome.

To determine whether a string is a palindrome, the program converts the string to lower case; then removes any non-letter characters from the string and compares the resulting string with the reverse of the same string. If they are equal, then the original string is considered to be a palindrome.

Releases

No releases published

Packages

No packages published

Languages