Replies To: Menu-Driven Program

Re: Menu-Driven Program

Posted 20 March 2013 - 11:27 AM

ohh to be more clear thats what i am trying to do

Write a menu-driven program that allows users do two options:
Option 1: It can tell whether a word, phrase, or sentence entered at the keyboard is a palindrome,
which is spelled the same in backward as well as in forward.
All punctuation characters should not be counted in the calculation for the palindrome.
Option 2: It compares two positive integers entered at the keyboard and returns the number of
decimal places (i.e. the ones, tens, hundreds place, and so on) that have the same digit.
Validate your input values: do not accept character(s) and negative and/ or floating-point values.