Homework3Solution -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: #----------------------------------------------------------------------------------.data# The following examples were copied from http://en.wikipedia.org/wiki/Palindrome# and http://grammar.about.com/od/pq/g/palindrometerm.htm#pali0:p.asciiz "Go deliver a dare, vile dog"pali1:p.asciiz "Some men interpret nine memos"pali2:p.asciiz "Gateman sees name, garageman sees name tag"pali3:p.asciiz"Ein Neger mit Gazelle zagtim Regen nie" pali4:p.asciiz "stressed desserts"pali5:.asciiz"palindromes"pali6:p.asciiz "Drab as a fool, aloof as a bard"pali7:p.asciiz "Tattarrattat"pali8:p.asciiz "Socorram me subi no on ibus em Marrocos" pali9:p.asciiz "May a moody baby doom a yam".test_str:.word pali0, pali1, pali2, pali3, pali4, pali5, pali6, pali7, pali8, pali9.is_pali_msg: .asciiz " The string is a palindrome."not_pali_msg: .asciiz " The string is not a palindrome."newline:n.asciiz "\n".res_msg: .asciiz "\nThe longest palindrome is: "....
View Full Document

This note was uploaded on 07/08/2010 for the course CS CDA3100 taught by Professor Leacher during the Spring '10 term at FSU.

Page1 / 4

Homework3Solution -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online