The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 327 Weeks Ago, 5 Days Ago |
| Questions Answered: | 12843 |
| Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
EE140 Project 3: Palindromes
Please turn in the assignment electronically, as usual.
Please turn in a tar archive of a directory called Project 3; turn in code and executables for the
problems below. Make a compressed tarball of the directory, call it
LastnameFirstname_proj3_XXXX.tar.gz
(where the XXXX is the last 4 digits of your M-number, as usual) and copy it to my dropbox. Palindromes
A palindrome is a word or phrase that reads the same backwards and forwards, ignoring
punctuation, spaces, and anything that isn’t a letter.
Examples of Palindromes Madam, I’m Adam. Kayak Racecar A man, a plan, a canal – Panama! Able was I, ere I saw Elba. Go hang a salami, I’m a lasagna hog.
Write a program that does the following:
1. opens a text file named “Proj3input.txt” containing multiple lines of text (1 or more)
2. for each line read from the text input file, print out “Palindrome:” followed by the line of
text if it IS a palindrome, and print out “Not a palindrome:” followed by the line of text if
it is NOT a palindrome.
3. while executing the program, create a file “Palindrome Results.txt” and mirror all your
printouts to the screen into that file also.
A test file named “Proj3input.txt” will be available in the “Proj3input.txt” for you to use in
testing your program.
Up to 20% of the grade on the project is based upon code legibility, comments, good indenting,
and good use of white space.
-----------