Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Government Polytechnic, Jalna

MICRO PROJECT REPORT


ON
“Design a form to check whether a passed string is
palindrome or not”

In The Subject of
CSS
Submitted by
ROLL NO. STUDENT NAME ENROLLMENT
NO.
11 Vishwas Sheshrao Landge 1901200181

Under Guidance of
D.B.Wankhede
(Computer Department)
Academic Year 2021-2022
DIPLOMA IN COMPUTER ENGINEERING
Government Polytechnic, Jalna

Certificate
This is to certify that the micro project entitled,
“Design a form to check whether a passed string is
palindrome or not”
Which is being submitted herewith for the award of the ‘DIPLOMA
IN COMPUTER ENGINEERING’ of Govt. Polytechnic, Jalna. This is
the result of original micro project work for CSS
Under our supervision and guidance. They work embodied in this project
has not formed earlier for the basis of the award of any diploma or
compatible certificate of this for any other diploma to the best knowledge
and belief.
ROLL NO. STUDENT NAME ENROLLMENT
NO.
11 Vishwas Sheshrao Landge 1901200181

D.B.Wankhede Mr.P.R.AGRAWAL
Guide Head of Department
DIPLOMA IN COMPUTER ENGINEERING
INDEX

SR NO CONTENTS PAGE NO

1 Rationale 2

2 Aim of the Micro-Project 2

3 Course Outcomes Addressed 3

4 Literature Review 3

5 Output of microproject 3

6 Actual Resources Used 4

7 Applications of Micro Project 5


Annexure - I

Part A - Micro-Project Proposal

“Design a form to check whether a passed string is


palindrome or not.”

1.0 Aim of the Micro-Project -


Design a form to accept the string from user and check whether a passed string is
palindrome or not.

2.0 Intended Course Outcomes –


a) Create interactive web pages using program flow control structure.
b) Implement array and function in JavaScript.
c) Create event based web forms using JavaScript.

5.0 Resources Required -

Sr. No. Resources required Specifications


1 Computer system Processor i5 RAM-8GB
2 Operating System Windows 10
3 Notepad Text editor
4 Web browser Mozilla Firefox, Google Crome
Annexure – II

Micro-Project Report
On
“Design a form to check whether a passed string is
palindrome or not.”

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
8.0 Course Outcomes Achieved –
a) Create interactive web pages using program flow control structure.
b) Implement array and function in JavaScript.
c) Create event based web forms using JavaScript.

9.0 Literature Review-


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.

• toLowerCase(): This function will lower case the whole string.

• 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;

var result = checkPalindrome(str);


alert('The Entered String "'+str +'" is "'+result+'"');
}
function checkPalindrome(str)
{
var orignalStr;
str = str.toLowerCase();

orignalStr = str;

str = str.split('');
str = str.reverse();
str = str.join('');

var reverseStr = str;

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>

11.0 Output of Microproject –

Fig 11.0.1 - Picture presentation


Fig 11.0.2 – output: string is palindrome

Fig 11.0.3 – output: string is not palindrome


12.0 Actual Resource Used-

Sr. No. Resources required Specifications

1 Computer system Processor i5 RAM-8GB

2 Operating System Windows 10

3 Notepad Text editor

4 Web browser Mozilla Firefox, Google Crome

14.0 Applications of this Micro-project -


1. Most of us are introduced to palindrome as children. On their simple level,
palindrome are simple phrases that have the same sequence of letters when read
both forward and backward

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.

The most families palindromes, in English at least, are character-by-character-the


written character read the same backwards as forwards.

4. Some palindrome use words as units rather than letters.

You might also like