Professional Documents
Culture Documents
DK Mini P
DK Mini P
“PYTHON”
BACHELOR OF TECHNOLOGY
in
“Computer Science & Engineering”
Submitted by
Vipul Singh
(Roll No.1901200100122)
Under Guidance of
Mr. Nitin Dixit
(Assistant Professor, CSED)
Submitted To
ii
DECLARATION
This is certified that the work which is being presented in the mini project entitled “PYTHON” is
submitted in the department of Computer Science and Engineering of Institute of Technology and
Management, Gida, Gorakhpur is an authentic record of my own work carried out during the
The matter presented in this mini project has not been submitted by me for the award of any other
Vipul Singh
This is to certify that the above statement made by the candidate is correct to the best of my
knowledge.
Date:
Candidate Signature
iii
ABSTRACT
Counterfeit money has always existed an issue that has caused many problems in the market.
Technological growth development has made it possible to create extra counterfeit items which are
distributed in the mitigation market the global economy. Bangui existing banking equipment and so
on trading sites to check the authenticity of funds. But the average person does not do that have
access to such systems and that is why they are needed in order for the software to receive counterfeit
money, which can be used by ordinary people. This proposed system uses image processing to find
out if the money is real or fake. System built uses the Python system completely language. It contains
similar steps grayscale modification, edge detection, separation, etc. made using appropriate methods.
iv
ACKNOWLEDGEMENT
Whenever a module of work is completed, there is always a source of inspiration. I always find my
parents as my torch bearers. While completing this task, I realized from my inner core that Rome was
not built in day. I found a stack of mini project reports in the library of ITM Gorakhpur library. Those
reports are the landmarks for me on the way of this task. The presented report is an effort of day and
I am sincerely thankful to Mr. Ashutosh Rao (HOD) & Mr. Nitin Dixit (Mini Project
Coordinator)for his support. I express my gratitude and thanks to all the faculties and staff members
of Computer Science & Engineering department for their sincere cooperation in furnishing relevant
Finally, my greatest debt is to my parents, my family for their enduring love, support and forbearance
Vipul Singh
Roll No.1901200100122
v
TABLE OF CONTENTS
Page No.
Certificate ii
Declaration iii
Abstract iv
Acknowledgement v
Dedication(optional) vi
Table of Contents vii
List of Tables viii
List of Figures ix
List of Symbols and Abbreviations x
CHAPTER 1: INTRODUCTION 1-68
1.1 GENERAL 1
1.2 INTRODUCTION TO MICROWAVE SOURCES
1.3 GENERAL
1.3.1 Evolution of Microwave Tubes 12
1.3.2 Operating Principle of Gyro-TWT
1.3.2.1 General 25
1.3.2.2 Beam-mode line dispersion
1.3.2.3 Waveguide mode dispersion
CHAPTER 2 : LITERATURE REVIEW 59-150
2.1 GENERAL 75
2.2 ALTERNATE METHODS OF MICROWAVE GENERATION 99
2.3 STATE-OF-THE-ART 115
…………………………………
vi
LIST OF FIGURES
vii
viii
LIST OF SYMBOLS AND ABBREVIATIONS
ix
List of the Table
Certificate i
Abstract ii
Acknowledgement iv
Table of Contents v-vii
1.4 Tables 8
1.5 Order List Unorder List 9
1.6 Forms
10
2.9.1CSS background-repeat 17
2.10 CSS Border 18
CHAPTER-3: 21-27
JAVA SCRIPT
21
3.1 What is JavaScript
22
3.2 JS Variable
24
3.3 JS Loop
25
3.4 JS Event
26
3.5 JS DOM 27
CHAPTER-4:
PROJECT- 28-30
4.1 Project
4.2 Picture
CHAPTER-5
5.1Conclusion 31
5.2Result
LIST OF Figures –
1 Table 11
2 Forms 14
3 Buttons 19
4 Main color 20
5 CSS styles 22
7 28
Websites page
CHAPTER -1
HTML
1.1 Introduction
HTML is the basic language of the web and is easy to learn and understand! With some basic
knowledge you can decipher seemingly complex pages and break them into their individual parts
to better understand and control your e-Community sites. Is essence, HTML describes what a
page should look like when viewed through a web browser.
1
1.2.1 Starting Notepad
Notepad is the standard text editor that comes with the microsoft windows operating sysem. To
start Notepad in windows 9x or XP follow the steps bellow:
i. Click on the “Start” button located on your Windows task bar.
ii. Click on “Programs” and then click on the directory menu labeled “Accessories”.
iii. Locate the shortcut “Notepad” and click the shortcut once.
The HEAD of your document point to above window part. The TITLE of your document
appears in the very top line of the user’s browser. If the user chooses to “Bookmark” your page
or save as a “Favorite”; it is the TITLE that is added to the list.
The text in your TITLE should be as descriptive as possible because this is what many search
engines, on the internet, use for indexing your site.
2
HTML Tags
HTML Tags are keywords or tag names surrounded by angle brackets or <> and normally come
in pairs like this: <tag> and </tag>.
The first tag in a pair is the opening tag and the second tag is the closing tag. The closing tag is
written the same way as the opening tag with a forward slash ( / ) to say “stop doing this.”
The BODY element of a web page is an important element in regards to the page’s appearance.
Here are the attributes of the BODY tag to control all the levels:
TEXT="#RRGGBB" to change the color of all the text on the page (full page text color.)
This element contains information about the page’s background color, the background image, as
well as the text and link colors.
A Simple HTML Document
Example-
<!DOCTYPE html>
<html>
3
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Example Explained-
➢ The <!DOCTYPE html> declaration defines this document to be HTML5.
➢ The <html> element is the root element of an HTML page.
➢ The <head> element contains meta information about the document.
➢ The <title> element specifies a title for the document.
➢ The <body> element contains the visible page content.
➢ The <h1> element defines a large heading.
➢ The <p> element defines a paragraph.
b. HTML Elements
An HTML element usually consists of a start tag and an end tag, with the content inserted in
between:
The HTML element is everything from the start tag to the end tag: <p>My first paragraph.</p>
c.
TML Attributes
Below is an alphabetical list of some attributes often used in HTML, which you will learn more
about in this tutorial:
Attribute Description
Alt Specifies an alternative text for an image, when the image cannot be displayed
4
All HTML elements can have attributes.
Attributes provide additional information about an element.
Attributes are always specified in the start tag.
Attributes usually come in name/value pairs like: name="value".
The width and height Attributes.
HTML images also have width and height attributes, which specifies the width and height of the
image.
Example:-
<imgsrc="img_girl.jpg" width="500" height="600">
e. Fronts
The CSS font-family property defines the font to be used for an HTML element:
Example:-
f. Text Size
5
The CSS font-size property defines the text size for an HTML element:
Example:-
g. Text Alignment
The CSS text-align property defines the horizontal text alignment for an HTML element:
h. HTML Paragraphs
HTML paragraphs are defined with the <p> tag:
Example:-
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
i. HTML Links
HTML links are defined with the <a> tag:
Example:-
j. HTML Images
HTML images are defined with the <img> tag.
The source file (src), alternative text (alt), width, and height are provided as attributes:
Example:-
k. HTML Buttons
HTML buttons are defined with the <button> tag:
Example:-
<button>Click me</button>
6
l. HTML Lists
HTML lists are defined with the <ul> (unordered/bullet list) or the <ol>
Example:-
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
m. Background Color
It is very common to see web pages with their background color set to white or some other
Colors.
To set your document’s background color, you need to edit the <BODY> element
by adding the BGCOLOR attribute. The following example will display a document with
a white background color:
<BODY BGCOLOR= “#FFFFFF”></BODY>
The CSS background-color property defines the background color for an HTML element.
This example sets the background color for a page to powder blue:
Example
7
o. Text color
The TEXT attribute is used to control the color of all the normal text in the document.
The default color for text is black. The TEXT attribute would be added as follows:
The CSS color property defines the text color for an HTML element:
Example: -
p. HEADING, <Hx></Hx>
Inside the BODY element, heading elements H1 through H4 are generally used for major
divisions of the document. Headings are permitted to appear in any order, but you will
obtain the best results when your documents are displayed in a browser if you follow
these guidelines: H1: should be used as the highest level of heading, H2 as the next
highest, and so forth. You should not skip heading levels: e.g., an H3 should not appear
after an H1, unless there is an H2 between them.
<HTML>
<HEAD>
<TITLE> Example Page</TITLE>
</HEAD>
<BODY>
<H1> Heading 1 </H1>
<H2> Heading 2 </H2>
<H3> Heading 3 </H3>
<H4> Heading 4 </H4>
</BODY>
</HTML>
q. Paragraphs, <P></P>
Paragraphs allow you to add text to a document in such a way that it will automatically
adjust the end of line to suite the window size of the browser in which it is being
displayed. Each line of text will stretch the entire length of the window.
<HTML><HEAD>
<TITLE> Example Page</TITLE>
</HEAD>
8
<BODY></H1> Heading 1 </H1>
<P> Paragraph 1, ….</P>
<H2> Heading 2 </H2>
<P> Paragraph 2, ….</P>
<H3> Heading 3 </H3>
<P> Paragraph 3, ….</P>
</BODY></HTML>
r. BREAK,<BR>
Line breaks allow you to decide where the text will break on a line or continue to the end
of the window.
A <BR> is an empty Element, meaning that it may contain attributes but it does not
contain content.
The <BR> element does not have a closing tag.
<HTML>
<HEAD>
<TITLE> Example Page</TITLE>
</HEAD>
<BODY>
<H1> Heading 1 </H1>
<P>Paragraph 1, <BR>
Line 2 <BR>Line 3 <BR>….
</P>
</BODY>
</HTML>
9
t. Character Formatting
In this chapter you will learn how to enhance your page with Bold, Italics, and other
character formatting options.
Objectives
Upon completing this section, you should be able to
Change the color and size of your text.
Use Common Character Formatting Elements.
Align your text.
Add special characters.
Use other character formatting elements.
u. Alignment
Some elements have attributes for alignment (ALIGN) e.g. Headings, Paragraphs and
Horizontal Rules.
The Three alignment values are : LEFT, RIGHT, CENTER.
• <CENTER></CENTER> Will center elements.
• <DIV ALIGN=“value”></DIV> Represents a division in the document and can
contain most other element type. The alignment attribute of the DIV element is well
supported.
• <TABLE></TABLE> Inside a TABLE, alignment can be set for each individual cell.
Special Characters & Symbol.
v. Images
• Width (WIDTH): is the width of the image in pixels.
• Height (HEIGHT): is the height of the image in pixels.
• Border (BORDER): is for a border around the image, specified in pixels.
10
• HSPACE: is for Horizontal Space on both sides of the image specified in pixels. A
setting of 5will put 5 pixels of invisible space on both sides of the image.
• VSPACE: is for Vertical Space on top and bottom of the image specified in pixels. A
setting of 5 will put 5 pixels of invisible space above and bellow the image.
w. Tables
The <TABLE></TABLE> element has four sub-elements:
– Table Row<TR></TR>.
– Table Header <TH></TH>.
– Table Data <TD></TD>.
– Caption <CAPTION></CAPTION>.
The table row elements usually contain table header elements or table data elements.
<table border=“1”>
<tr>
</tr>
<tr>
</tr>
<tr>
11
<td> Row2, Col1 </td>
</tr>
</table>
Table Attributes
CellPadding: Cell Padding is the space between the cell border and the cell contents and is
specified in pixels.
Table Caption
A table caption allows you to specify a line of text that will appear centered above or bellow the
table.
The Caption element has one attribute ALIGN that can be either TOP (Above the table) or
BOTTOM (below the table).
12
<tr><td> Row 3 Col2</td></tr>
</table>
Check Box
Check Box: Check boxes allow the users to select more than one option.
• <INPUT TYPE=“CHECKBOX”>
• Browser will display Checkboxes have the following attributes:
• TYPE: checkbox.
• CHECKED: is blank or CHECKED as the initial status.
• NAME: is the name of the variable to be sent to the CGI application.
• VALUE: is usually set to a value.
Target Attribute
HTML Head
The HTML <head> element is a special container element to contain all of the headspecific
elements. Elements inside the head can include scripts, tell the browser.
where to find external information such as stylesheets or Javascripts and provide
search engines with descriptive information about the content of the page.
HTML Images
Images are displayed in HTML by use of the <img> tag. The <img> tag does not need
to be closed. The <img> tag has multiple attributes to define what to display and
how it should be displayed. As with other attributes, values must be contained in
quotes.
HTML Tables
A table is comprised of rows and columns, similar to a spreadsheet, and can be quite complex.
Tables consist of a number of tags and will always start with the <table> tag. Like many other
tags the table tag can have attributes assigned to it.
13
CHAPTER -2
Cascading Style Sheets(CSS)
2.1 Introduction
Cascading Style Sheets (CSS) are rules used to control the way a web browser displays elements
on a page. With a basic understanding of HTML you can now learn to control it with CSS. CSS
defines how to display your HTML elements by element name, ID or Class. ID and Class are
attributes of your HTML elements, and most common in e-Community, the<div> tag. With
HTML you will define the content of a document, headings, paragraphs, lists, tables, and so on.
CSS will be used to define what each of those elements will look like by defining a Rule.
Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended to
simplify the process of making web pages presentable.
CSS handles the look and feel part of a web page. Using CSS, you can control the color of the
text, the style of fonts, the spacing between paragraphs, how columns are sized and laid out, what
background images or colors are used, as well as a variety of other effects.
CSS is easy to learn and understand but it provides a powerful control over the presentation of an
HTML document. Most commonly, CSS is combined with the markup languages HTML or
XHTML.
14
iv. Superior styles to HTML :- CSS has a much wider array of attributes than HTML, so you
can give a far better look to your HTML page in comparison to HTML attributes.
v. Multiple Device Compatibility :- Style sheets allow content to be optimized for more
than one type of device. By using the same HTML document, different versions of a
website can be presented for handheld devices such as PDAs and cellphones or for
printing.
vi. Global web standards :- Now HTML attributes are being deprecated and it is being
recommended to use CSS. So it’s a good idea to start using CSS in all the HTML pages
to make them compatible with future browsers.
All the various methods will cascade into a new "pseudo" stylesheet in the following order:
• Inline Style (inside (X)HTML element)
• Internal Style Sheet (inside the <head> tag)
• External Style Sheet
I have not mentioned them until now because in a way they defeat the purpose of using CSS in
he first place. Inline styles are defined right in the (X)HTML file along side the element you
want to style.
Inline styles are defined within the "style" attribute of the relevant element:
Example-
<!DOCTYPE html>
<html>
<body>
<h1 style="color:blue;text-align:center;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>
</body>
</html>
15
2.2.2 Internal Style Sheet
An internal style sheet may be used if one single HTML page has a unique style.The internal
style is defined inside the <style> element, inside the head section.
First we will explore the internal method. This way you are simply placingthe CSS code within
the <head></head> tags of each (X)HTML file youwant to style with the CSS. The format for
this is shown in the example below.With this method each (X)HTML file contains the CSS code
needed to style the page. Meaning that any changes you want to make to one page, will have to
be made to all. This method can be good if you need to style only one page, or if you want
different pages to have varying styles.
Example-
Internal styles are defined within the <style> element, inside the <head> section of an HTML
page:
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
16
Next we will explore the external method. An external CSS file can be created with any text or
HTML editor such as "Notepad" or "Dreamweaver". A CSS file contains no (X)HTML, only
CSS. You simply save it with the .css file extension. You can link to the file externally by
placing one of the following links in the head section of every (X)HTML file you want to style
with the CSS file.
Example-
<head>
<title><title>
<style type="text/css">
CSS Content Goes Here
</style>
</head>
<body>
<link rel="stylesheet" type="text/css" href="Path To
stylesheet.css" />
• Each declaration includes a CSS property name and a value, separated by a colon.
• A CSS declaration always ends with a semicolon, and declaration blocks are surrounded
by curly braces.
Example-
In this example all <p> elements will be center-aligned, with a red text color:
p{
color: red;
text-align: center;
}
17
<link rel="stylesheet" type="text/css" href="myStyles.css" />
<style type="text/css">
body {
font-family: Tahoma, Arial, sans-serif;
}
</style>
</head>
<body>
<div style="padding:2px; ... ">
</body>
There are multiple declarations you can assign to the background of your <div> or
other element such as:
• background-color
• background-image
• background-repeat
For example you could define that the body of your HTML document had a
background color of blue:
body {
background-color:blue;
}
<!DOCTYPE html>
<html>
<head>
18
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
2.8 Header
A header is usually located at the top of the website (or right below a top navigation menu). It
often contains a logo or the website name:
Example
.header {
background-color: #F1F1F1;
text-align: center;
padding: 20px;
}
19
CHAPTER -3
JavaScript
JavaScript was first known as LiveScript, but Netscape changed its name to JavaScript, possibly
because of the excitement being generated by Java. JavaScript made its first appearance in
Netscape 2.0 in 1995 with the name LiveScript. The general-purpose core of the language has
been embedded in Netscape, Internet Explorer, and other web browser.
The ECMA-262 Specification defined a standard version of the core JavaScript language.
It means that a web page need not be a static HTML, but can include programs that interact
with the user, control the browser, and dynamically create HTML content.
The JavaScript client-side mechanism provides many advantages over traditional CGI server-
side scripts. For example, you might use JavaScript to check if the user has entered a valid e-
mail address in a form field.
20
The JavaScript code is executed when the user submits the form, and only if all the entries are
valid, they would be submitted to the Web Server.
JavaScript can be used to trap user-initiated events such as button clicks, link navigation, and other
actions that the user initiates explicitly or implicitly.
• Less server interaction: You can validate user input before sending the page off to the
server. This saves server traffic, which means less load on your server.
• Immediate feedback to the visitors: They don't have to wait for a page reload to see if
they have forgotten to enter something.
• Increased interactivity: You can create interfaces that react when the user hovers over
them with a mouse or activates them via the keyboard.
• Richer interfaces: You can use JavaScript to include such items as drag-anddrop
components and sliders to give a Rich Interface to your site visitors.
• Client-side JavaScript does not allow the reading or writing of files. This has been kept for
security reason.
• JavaScript cannot be used for networking applications because there is no such support
available.
Once again, JavaScript is a lightweight, interpreted programming language that allows you to
build interactivity into otherwise static HTML pages.
21
3.5 JavaScript Development Tools
One of major strengths of JavaScript is that it does not require expensive development tools.
You can start with a simple text editor such as Notepad. Since its an interpreted language inside
the context of a web browser, you don't even need to buy a compiler.
To make our life simpler, various vendors have come up with very nice JavaScript editing tools.
Some of them are listed here:
• Any text between a // and the end of a line is treated as a comment and is ignored by
JavaScript.
• Any text between the characters /* and */ is treated as a comment. This may span multiple
lines. 17
• JavaScript also recognizes the HTML comment opening sequence is not recognized by
javaScript so it should be written as //-->. Example The following example shows how to use
comments in JavaScript.
• The HTML comment closing sequence --> is not recognized by JavaScript so it should be
written as //--
>.
22
Example
The following example shows how to use comments in JavaScript.
<!—
/*
*/
//-->
</script>
JavaScript also defines two trivial data types, null and undefined, each of which defines only a single
value. In addition to these primitive data types, JavaScript supports a composite data type known as
object. We will cover objects in detail in a separate chapter.
Note: Java does not make a distinction between integer values and floating-point values. All numbers in
JavaScript are represented as floating-point values. JavaScript represents numbers using the 64-bit
floating-point format defined by the IEEE 754 standard.
23
3.8 JavaScript Variables
Like many other programming languages, JavaScript has variables. Variables can be thought of as named
containers. You can place data into these containers and then refer to the data simply by naming the
container.
Before you use a variable in a JavaScript program, you must declare it. Variables are declared with the
var keyword as follows.
<!- -
Var money;
Var name;
//-->
</script>
<script type="text/javascript">
</- -
//-->
</script>
You can also declare multiple variables with the same var keyword as follows:
24
storing a value in a variable is called variable initialization. You can do variable initialization at the time
of variable creation or at a later point in time when you need that variable.
For instance, you might create a variable named money and assign the value 2000.50 to it later. For
another variable, you can assign a value at the time of initialization as follows.
<script type="text/javascript">
<!--
var money;
money = 2000.50;
//-->
</script>
Note: Use the var keyword only for declaration or initialization, once for the life of any variable name
in a document. You should not re-declare same variable twice.
</script>
JavaScript is untyped language. This means that a JavaScript variable can hold a value of any data type.
Unlike many other languages, you don't have to tell JavaScript during variable declaration what type of
value the variable will hold. The value type of a variable can change during the execution of a program
and JavaScript takes care of it automatically.
• You should not use any of the JavaScript reserved keywords as a variable name. These keywords are
mentioned in the next section. For example, break or boolean variable names are not valid.
• JavaScript variable names should not start with a numeral (0-9). They must begin with a letter or an
underscore character. For example, 123test is an invalid variable name but _123test is a valid one.
• JavaScript variable names are case-sensitive. For example, Name and name are two different variables.
25
CHAPTER No – 4
Websites Project
Image 1
Image 2
26
Image 3
27
28
CHAPTER – 5
5.1 Conclusion:–
HTML and CSS are actually surprisingly large topics, who would have thought? If you’ve
made it this far, though, you’re more than well on your way to front end development magic.
You should be significantly more comfortable breaking down a webpage into its component
pieces and then coding them with HTML and CSS. You have the tools necessary to identify
an effective visual layout and then bring it to fruition.
There are still plenty of ways you can make your workflow better or improve your knowledge
of best practices (so don’t stop learning!), but you’ve got everything you need to build
beautiful websites. Now that you’ve finished this course, you are probably chomping at the bit
for the final piece of the puzzle which will empower you to make everything dynamic.
HTML (the Hypertext Markup Language) and CSS (Cascading Style Sheets) are two of the core
technologies for building Web pages. HTML provides the structure of the page, CSS the (visual
and aural) layout, for a variety of devices. Along with and HTML and CSS are the basis of
building Web pages and Web Applications.
It can be used as a guide for someone working on implementation or as a tool to evaluate ... Our
goal is to take this static image and turn it into HTML and CSS using these principles. ... It
makes our projects morefuture-proof. If you're looking for Front End
i.e. HTML/CSS Developers Jobs In Understanding of the concepts of progressive enhancement,
mobile first and future friendly and others to design system and to obtain information
on projectlimitations and ... HTML and CSS are the fundamental technologies for building Web
pages: HTML ... W3C has a mission to design technology that works across cultures and
languages. ... Work on payments at W3C was supported in part by the HTML5Apps project,and
..... [News Release] HTML5Apps paves the way tofuture W3C payment ...
29
References
1- www.google.com
2- www.codekaro.com
3- www.geeksforgeeks.com
4- www.wikipidia.com
5- www.zavatutorial.com