Professional Documents
Culture Documents
Project File 2022 Vinay DR - Mps
Project File 2022 Vinay DR - Mps
COURSE:BCA
PRACTILE FILE
FOC, C, HTML
SUBMITTED TO:
Prime Number 1 To N
Use Structure
HTML Forms
Mail Merge
Dos Commands
S.NO TOPICS PAGES SIGNATURE
1 Find The Largest Number Among
Three Given Numbers
2 Whether The Number Is Even Or
Odd
3 Prime Number 1 To N
4 Factorial Of A Given Number
5 Search Element In An Array
6 Addition Of Two Matrices
7 Generate Fibonacci Series Using
Function
8 Swap Two Numbers
9 Use Structure
10 Heading And Paragraph In HTML
11 Ordered An Unordered List +
Hyperlink
12 HTML Forms
Step4: stop
FLOWCHART
2.Whether The Number Is Even Or Odd
FLOWCHART
FLOWCHART
ALGORITHM
Step 1: start
Step 2: read n
Step 3: initialize i = 1, c = 0
Step 5: initialize j = 1
ii) increment j
Step 8: increment i
PROGRAM
OUTPUT
4.FACTORIAL OF A GIVEN NUMBER
PROGRAM
OUTPUT
ALGORITHM
Step 1: Start
Step 2: Read a number n
Step 2: Initialize variables:
i = 1, fact = 1
Step 3: if i <= n go to step 4 otherwise go to step 7
Step 4: Calculate
fact = fact * i
Step 5: Increment the i by 1 (i=i+1) and go to step 3
Step 6: Print fact
Step 7: Stop
FLOCHART
START
READ N
i=1
Fact=1
If
no
i<=n
Fact=fact*1
stop
I=i+1
5.SEARCH ELEMENT IN AN ARRAY
OUTPUT
6.ADDITION OF TWO MATRICES
PROGRAM
OUTPUT
7.GENERATE FIBONACCI SERIES USING FUNCTION
PROGRAM
OUTPUT
8.SWAP TWO NUMBERS
PROGRAM
OUTPUT
9.USE STRUCTURE
Structure: Structures (also called structs) are a way to group several related variables into
one place. Each variable in the structure is known as a member of the structure. Unlike an
array, a structure can contain many different data types (int, float, char, etc.).
PROGRAM
OUTPUT
10. Heading And Paragraph In HTML
The following are the six HTML tags for different heading sizes.
<h1>Heading 1</h1> -
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6> -
PROGRAM
OUTPUT
PARAGRAPH TAG
To define a paragraph, you use the opening and closing paragraph
set of tags. Prior to XHTML the closing paragraph tag was not
required but it is now. Below is an example of how to code a
paragraph.
i.ORDER LIST
The HTML <ol> tag defines an ordered list. An ordered list can be numerical or
alphabetical.
PROGRAM
OUTPUT
ii.UNORDER LIST
An unordered list starts with the <ul> tag. Each list item starts with the <li>
tag.
The list items will be marked with bullets (small black circles) by default:
PROGRAM
OUTPUT
HYPERLINKS
HTML links are hyperlinks.
You can click on a link and jump to another document.
When you move the mouse over a link, the mouse arrow will turn into a little
hand.
HTML Links – Syntax
<a href="url">link text</a>
The HTML <a> tag defines a hyperlink
PROGRAM
OUTPUT
12. HTML FORMS
An HTML form is a section of a document which contains controls such as text fields,
password fields, checkboxes, radio buttons, submit button, menus etc.
An HTML form facilitates the user to enter data that is to be sent to the server for
processing such as name, email address, password, phone number, etc. .
PROGRAM
OUTPUT
<input> element
t is used to create form fields, to take input from user. We can apply different input filed to
gather different information form user
<input type="email">
Using CSS
CSS can be added to HTML documents in 3 ways:
Internal CSS
An internal CSS is used to define a style for a single HTML page.
The following example sets the text color of ALL the <h1> elements (on that
page) to blue, and the text color of
INTERNAL CSS PROGRAM
Inline CSS
An inline CSS is used to apply a unique style to a single HTML element.
The following example sets the text color of the <h1> element to blue, and the
text color of the <p> element to red:
INLINE CSS PROGRAM
External CSS
An external style sheet is used to define the style for many HTML pages.
To use an external style sheet, add a link to it in the <head> section of each HTML
page:
Insert Image
You can insert any image in your web page by using <img> tag. Following is the simple
syntax to use this tag.
<img src="pic_trulli.jpg" alt="Italian Trulli">
You can use PNG, JPEG or GIF image file based on your comfort but make sure you
specify correct image file name in src attribute
IMAGES PROGRAM
IMAGES OUTPUT
ii. TABLES
The HTML tables allow web authors to arrange data like text, images, links, other tables,
etc. into rows and columns of cells.
The HTML tables are created using the <table> tag in which the <tr> tag is used to
create table rows and <td> tag is used to create data cells. The elements under <td> are
regular and left aligned by default
Colspan:
To make a cell span over multiple columns, use the colspan attribute:
TABLES PROGRAM
TABLES OUTPUT
15.Mail Merge
Step 1: Create your Excel Spreadsheet
• Make sure the column names on your spreadsheet match the field names
you want to insert in your mail merge
• All data to be merged is present in the first sheet of your spreadsheet
• All data entries with percentages, currencies, and zip codes are correctly
formatted in the spreadsheet so that Word can properly read their values
• The Excel spreadsheet to be used in the mail merge is stored on your local
computer
• Changes or additions to your spreadsheet are completed before it’s
connected to your mail merge document in Word
When you are done working with your merged documents, save and close it as
you would any other Word document. Once closed the mail merge template will
still be open. If you plan to reuse it in the future, save it and it will stay connected
to your data source
16.DOS COMMANDS
DOS Commands are instructions that allow Windows users to conduct tasks on files and
folders. As you may know, a file is a container for a collection of information or data, and a
directory is a collection of files.
TYPES OF COMMANDS
Date Command
TIME Command
VER Command
VOL Command
DEL/ERASE Command:
command is used to delete one or more than one file at a time.
Step 1.
Step2.
above command will delete includehelp.txt file from D:\ drive, with confirmation message
"D:\includehelp.txt, Delete (Y/N) ? " Press Y to delete..
Step3.