Professional Documents
Culture Documents
Final Project File
Final Project File
Final Project File
FOC , C , HTML
5. Copy file.
6. Rename files.
rename filename1 filename2
7. Delete File.
del filename to delete file
8. Format floppy disk.
C:\> format disk name to delete
Q4. Demonstrate the steps of mail merge in MS Word.
The Mail Merge pane appears on the right, ready to walk you through the mail merge.
OUTPUT--
Q6. WAP to calculate the factorial of a given number.
Answer.
OUTPUT—
Q7. WAP to find the largest number among three given numbers.
Answer:
OUTPUT-
Answer:
OUTPUT:
:
Q9.wap to perform the addition of two matrices.
Answer.
OUTPUT:
Q10: Wap to generate Fibonacci series using functions.
Answer—
OUTPUT--
Q11: Wap a swap two given numbers by using function as call by reference.
Answer-
OUTPUT--
Q12: Wap to demonstrate file handling function to open and close a file.
Answer:
OUTPUT--
Q13: Wap to demonstrate the use of structure in c.
Answer-
Define Structures
Before you can create structure variables, you need to define its data type. To define a struct,
the struct keyword is used.
Syntax of struct
struct structureName {
dataType member1;
dataType member2;
...
};
For example,
struct Person {
char name[50];
int citNo;
float salary;
};
Here, a derived type struct Person is defined. Now, you can create variables of this type.
When a struct type is declared, no storage or memory is allocated. To allocate memory of a given
structure type and work with it, we need to create variables.
struct Person {
// code
};
int main() {
struct Person {
// code
In both cases,
There are two types of operators used for accessing members of a structure.
. - Member operator
Suppose, you want to access the salary of person2. Here's how you can do it.
person2.salary
Example 1: C structs
#include <stdio.h>
#include <string.h>
struct Person {
char name[50];
int citNo;
float salary;
} person1;
int main() {
person1.citNo = 1984;
return 0;
Output:
Salary: 2500.00
In this program, we have created a struct named Person. We have also created a
variable of Person named person1.
In main(), we have assigned values to the variables defined in Person for the
person1 object.
person1.citNo = 1984;
Notice that we have used strcpy() function to assign the value to person1.name.
This is because name is a char array (C-string) and we cannot use the assignment
operator = with it after we have declared the string.
The text inside the heading tags <h1>TEXT</h1> shows on the browser. The size of the text depends on
the heading tag.
<h1>TEXT</h1>
The following are the six HTML tags for different heading sizes-
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
Here is a simple example in HTML to display the H1 through H6 headings on a web page:
OUTPUT--
What is an HTML Paragraph?
Paragraphs tags or <p> tags in HTML help us create paragraphs on a web page. On web browsers,
paragraphs display as blocks of text separated from adjacent blocks by blank lines, white spaces, or first-line
indentation.
You can use a <p> tag followed by the content you want to display in your paragraph and a </p>. Whenever
the web browser comes across a <p> tag, it starts its contents on a new line.
<p>Paragraph Content</p>
Paragraphs tags or <p> tags in HTML help us create paragraphs on a web page. On web browsers, paragraphs
display as blocks of text separated from adjacent blocks by blank lines, white spaces, o first-line indentation.
You can use a <p> tag followed by the content you want to display in your paragraph and a </p>. Whenever
the web browser comes across a <p> tag, it starts its contents on a new line.
INPUT:
Output:
Q15: Wap to create all lists (ordered and unordered ) in html. Also add
the functionality of hyperlinks.
Answer:
Output:
Q16: wap to inserts images and tables in html.
Answer:
Output:
Q17: wap to create forms using the various form elements in html.
Answer:
OUTPUT:
Q18. WAP to demonstrate the use of CSS with
HTML.
Answer:
OUTPUT: