Css MP
Css MP
MICROPROJECT REPORT
ON
“Design a form to check whether a passed string is
palindrome or not.”
SUBMITTED
BY
Under Guidance of -
Mrs.J.C Joshi
SR NO CONTENTS PAGE NO
1 Rationale
2 Aim of the Micro-Project
4 Literature Review
6 Output of microproject
8 Skills Developed
Annexure - I
Final submission of
8 13/12/2022
Microproject.
Team Members
Roll No. Name
12 Rutuja Pote
Annexure – II
Micro-Project Report
On
6.0 Rationale –
A palindrome is a word, number, phrase, or other sequence of characters which reads
the same backward as forward. There are also numeric palindromes, including
date/time stamps using short digits 11/11/11 11:11 and long digits 02/02/2020.
Sentence-length palindromes ignore capitalization, punctuation, and word boundaries.
The word palindrome was introduced by Henry Peacham in 1638. It is derived from
the Greek roots 'again' and 'way, direction'; a different word is used in Greek,
'carcinic' (lit. crab-like) to refer to letter-by-letter reversible writing. In recent history,
there have been competitions related to palindromes, such as the 2012 World
Palindrome Championship, set in Brooklyn, USA. The longest palindromic word in
the Oxford English Dictionary is the onomatopoeic tattarrattat, coined by James Joyce
in Ulysses (1922) for a knock on the door.
Palindrome examples-
Below are a few example of Palindrome
1. Mom
2. Madam
3. Dad
4. Level
5. civic
This solution is very intuitive - we will simply reverse the string and compare it to the
original. If they are equal, it’s a palindrome. Here we are using reverse(), split(),
join(), toLowerCase() which are built-in functions.
• Split(): Split function will split the string into individual characters.
• Reverse(): Reverse function will reverse the string which is output from the above
function. This means the string will be starting from the last character reading
character by character until the first character.
• Join(): Join function will join the characters which were output in reverse fashion
from the above function.
Code-
<!DOCTYPE html>
<html>
<head>
<script type="text/JavaScript">
function myFunction()
{
var str = document.getElementById('txtbox').value;
orignalStr = str;
str = str.split('');
str = str.reverse();
str = str.join('');
if(orignalStr == reverseStr)
{
return 'Palindrome';
}
else
{
return 'Not Palindrome';
}
}
</script>
</head>
<body>
<form>
<h4><a href=""></a></h4>
<input type="text" id="txtbox" placeholder="Enter String" />
<input type="button" onclick="myFunction()" value="Check Palindrome" />
</form>
</body>
</html>
1. After working on the allotted microproject topic, We gained various skills like
working in team, making coordination between team members.
2. This project also made me increase my programming skills.
3. Such project work increases our knowledge other from the regular course work.
4. We learnt about palindrome using built-in method.
5. We learnt various methods of palindrome.
2. Most of the poet use palindrome phrases in their poetry so that it is easy to
understand to children.
3. There are many more complicated palindromes poetry. Once you’ve mastered
writing simple palindromes, writing a palindrome poem can be an exciting way to
put your skills to the test.