0% found this document useful (0 votes)
34 views

Computer Project

Uploaded by

sahitdahal123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Computer Project

Uploaded by

sahitdahal123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 101

1.

Word-Processing
Microsoft word is a word processing application
that is part of the Microsoft Office Suite. Microsoft
Office Suite is a set of powerful applications that are
designed to provide a rich set of tools for almost
every conceivable business task for a small (and
large) business or organization. Microsoft Office
Suite has been designed so that the interface across
all the applications is consistent. Obviously, this
helps users to move from application to application
to carry out their various business tasks.

Steps to open MS-WORD:


i. Open your Computer.
ii. Click on windows tab and search for MS-Word.
Alternatively,
i. Press Windows + R.
ii. After run command appears, type win-word.
iii. Your Blank page will be opened.

Prepared By Purnika Baniya Page 1


Title 1: To Prepare the Bio-Data Using MS- Word

Procedure:
Step 1: Turn on the computer.
Step 2: Click start button and open MS-Word.
Step 3: Open blank document on MS-Word.
Step 4: Make a bio-data using different fonts and styles with different size.
Step5: Insert table going through insert and clicking on the table where the
data and information can be typed and fill the necessary information.
Step 6: Make it more attractive using different colors for text and for the table
as well.
Step 7: Give the references in your bio-data.
Step 8: Save the prepared Bio-Data on a suitable folder securing it with a
password.

Prepared By Purnika Baniya Page 2


Output:

BIO-DATA
Name : Purnika Baniya
Address:
Temporary Address: Lazimpat, Kathmandu
Secondary Address: Morang, Biratnagar
DOB : 10/05/2006
Mother’s Name : Roshani Rai
Father’s Name : Ram Baniya
Gender : Female
Phone number : 9864533682
Email address : [email protected]
Qualification :
Board School’s Name Passed Year Grade GPS
BLE Bhanubhakta 2076 A+ 3.73
SEE Bhanubhakta 2078 A+ 3.80

Training :
Course Duration Year location
Barista 6 months 2078 Lazimpat

Reference :
Name: Riya Magar
Post : Manager
Phone number: 9845632535

Prepared By Purnika Baniya Page 3


Title 2: To Prepare the Invitation Letter Using MS-
Word

Procedure:
Step 1: Turn on the computer.
Step 2: Click start button and open MS-Word.
Step 3: Open blank document on MS-Word.
Step 4: Customize the Template. Go to layout and chose the border that you
like.
Step5: Write its heading, date, and place.
Step 6: Then, write your invitation letter
Step 7: Preview your letter and save it in the folder.

Prepared By Purnika Baniya Page 4


Output:

Prepared By Purnika Baniya Page 5


Title 3: To Insert the Different Shapes Using MS-
Word

Procedure:
Step 1: Turn on the computer.
Step 2: Click start button and open MS-Word.
Step 3: Open blank document on MS-Word.
Step 4: Once opened use the "shapes" option from insert option available at
upside area of you window.
Step5: Select the favorite shape, dag it, adjust the size you need. Then, you
can add numbers, arrows, etc. as per your requirement.
Step 6: Click shit and select all the figures (shapes). Then, right click on the
mouse and select the group option.
Step 7: Select insert equation.
Step 8: Save the prepared file on a suitable folder securing it with a
password.

Prepared By Purnika Baniya Page 6


Output:

Prepared By Purnika Baniya Page 7


2. Spreadsheet
Excel is a commercial spreadsheet application
produced and distributed by Microsoft for Microsoft
Windows and Mac OS. It features the ability to
perform basic calculations, use graphing tools,
create pivot tables and create macros.

Excel has the same basic features as all spreadsheet applications, which use a
collection of cells arranged into rows and columns to organize and manipulate data.
They can also display data as charts, histograms and line graphs.

Features of MS-Excel:

➢ MS-Excel allows us to sort data either in ascending or descending order.


➢ MS-Excel allows us to create different charts such as bar graph, pie-
charts, line graphs, etc.
➢ MS-Excel automatically edits the result if any changes are made in any
of the cells.

Steps to open MS-Excel:

i. Open your Computer.


ii. Click on windows tab and search for MS-Excel.
Alternatively,
i. Press Windows + R.
ii. After run command appears, type excel. iii. Your
Blank page will be opened.

Prepared By Purnika Baniya Page 8


Title 1: To Prepare Mark sheet Using MS-Excel

Procedure:
Step1: Turn on your computer. Press window + R button and type
Excel.
Step2: Choose a blank sheet.
Step3: Click on a cell and type Bhanubhakta Memorial college and
choose merge and center.
Step4: Then make columns on the headings and make different
headings.
Step5: Make table of those columns from “All border option”.
Step6: Fill the individual information.
Step7: Give the necessary formula of total and percentage.
Step8: Once you apply the formula then drag the small square box
to apply the same formula.
Step9: Save your document.

Prepared By Purnika Baniya Page 9


Output:

Formula:
Total :=SUM(C8:H8)
Percentage :=(I8/6)

Prepared By Purnika Baniya Page 10


Title 2: To Prepare Store Record sheet Using MS-
Excel

Procedure:
Step1: Turn on your computer. Press window + R button and type
Excel.
Step2: Choose a blank sheet.
Step3: Click on a cell and type the store’s name, address, contact
number, etc. and choose merge and center.
Step4: Then make columns on the headings and make different
headings.
Step5: Make table of those columns from “All border option”.
Step6: Fill the individual information.
Step7: Give the necessary formula of Amount, VAT, discount, bill
amount and grand total.
Step8: Once you apply the formula then drag the small square box
to apply the same formula.
Step9: Save your document.

Prepared By Purnika Baniya Page 11


Output:

Formula:
Amount: =C7*D7
Discount: =E7*5%
VAT: =E7*13%
Bill Amount: =E7-F7+G7
Grand Total: =SUM (H7:H16)

Prepared By Purnika Baniya Page 12


Title 3: To Prepare Pie Chart Using MS-Excel

Procedure:
Step1: Turn on your computer. Press window + R button and type
Excel.
Step2: Choose a blank sheet.
Step3: Click on a cell and fill all the data in the table for pie chat.
Step4: Then drag the information of the table and click on the insert
table to find the pie chart option.
Step5: Click on the option of pie chart and click on the design you
want and color it.
Step6: Save your document.

Prepared By Purnika Baniya Page 13


Output:

Prepared By Purnika Baniya Page 14


3. Presentation
PowerPoint (PPT) is a powerful, easy-to-use presentation
graphics software program which allows you to create
professional-looking electronic slide shows. PPT is used to
present information in an organized manner to an
individual or group. Using clip art, sound clips, movie clips,
graphs, organization charts, imported Web screens, and
many other features, you can easily create a presentation
that will impress your audience and convey your message
clearly and professionally.

Features of MS-PowerPoint:

➢ MS-PowerPoint allows us to create presentations using different designing


tools like word art, font designs etc.
➢ MS-PowerPoint allows you to add photos and videos.
➢ MS-PowerPoint allows you to apply animations in the slides.
➢ MS-PowerPoint allows you to apply transitional effect in the texts.
➢ MS-PowerPoint allows you to add clip arts, pie charts etc.

Steps to open MS-PowerPoint:


i. Open your Computer.
ii. Click on windows tab and search for MS-PowerPoint.

Alternatively,
i. Press Windows + R ii. After run command
appears, type PowerPoint.
iii. Your Blank page will be opened.

Prepared By Purnika Baniya Page 15


Title1: To Prepare a Power-Point Presentation

Procedure
Step1: Turn on the computer and open PowerPoint.
Step2: Click on blank slide and then add slide title and prepare your
presentation.
Step3: Click on new slide for your next slide and fill the required data and
information. If you want to add a video then you will find the video like
symbol to add video.
Step4: You can also add animation to your slide. For it click on animation and
then click on the necessary animation you like.
Step5: Press “F5” on your keyboard for viewing it.
Step6: Save your document safely.

Prepared By Purnika Baniya Page 16


Output

Prepared By Purnika Baniya Page 17


4. Web page
Designing
HTML stands for Hyper Text Markup Language.
It is used to design web pages using markup
language. HTML is the combination of Hypertext
and Markup language. Hypertext defines the link
between the web pages. Markup language is
used to define the text document within tag which defines the
Structure of web pages. Most of markup languages are human readable.
Language uses tags to define what manipulation has to be done on the text.
HTML is a markup language which is used by the browser to manipulate text,
images and other content to display it in required format. HTML was created
by Tim Berners-Lee in 1991.

Steps to open HTML:


i. Open your Computer.
ii. Click on windows tab and search for Notepad++ or Notepad.
iii. Alternatively, press Windows + R.
iv. After run command appears, type Notepad++ or Notepad.
v. Your Blank page will be opened.

Prepared by Purnika Baniya Page 18


Title1: To Prepare Heading Tag Using HTML

Procedure
<Html>
<Head><title> Heading tag </title>
</head>
<body bgcolor= "Blue">
<h1> Bhanubhakta Memorial College </h1>
<h2> Panipokhari </h2>
<h3> Kathmandu </h3>
<h4> Nepal. </h4>
<h5> <b>by purnika baniya "science" </b></h5>
</body>
</html>

Prepared by Purnika Baniya Page 19


Output

Prepared by Purnika Baniya Page 20


Title2: To Prepare Text Formatting Tag Using HTML

Procedure
<Html>
<Head><title>Using Text Formatting tag </title>
</head>
<body bgcolor= green>
<b> Bhanubhakta Memorial College </b><br>
<i> Panipokhari </i><br>
<u> Kathmandu </u><br>
<Big> Nepal. </big><br>
<Small> small</small><br>
H<sub>2</sub>O<br>
x<sup>2</sup>+y<sup>2</sup><br>
<Tt>typewriter font</tt><br>
<s> mo:mo</s><br>
<b> by purnika baniya "science"</b>
</body>
<Html>

Prepared by Purnika Baniya Page 21


Output

Prepared by Purnika Baniya Page 22


Title3: To Prepare Font Tag Using HTML

Procedure
<html>
<head><title>Using Font tag </title>
</head>
<Body>
<font color= "green" size="6" face="Arial">
A computer is a device that accepts information (in the form of digitalized data)
and manipulates it for some result based on a program, software, or sequence of
instructions on how the data is to be processed.
</font>
<b> by purnika baniya "science"</b>
</body>
</html>

Prepared by Purnika Baniya Page 23


Output

Prepared by Purnika Baniya Page 24


Title4: To Insert Image Using HTML

Procedure

<Html>
<Head><title> using image tag</title>
</head>
<Body>
<center> <img src ="my image.png" height=500px width= 450px alt=" image not
found" border= 6>
</img></center>
<CENTER><B><I>BY PURNIKA BANIYA</I></B></CENTER>
</body>
</html>

Prepared by Purnika Baniya Page 25


Output

Prepared by Purnika Baniya Page 26


Title5: To Prepare External hyperlink List Using
HTML

Procedure
<Html>
<Head><title>Using External Hyperlink List </title>
</head>
<Body>
<h1> To go to google<a href="www.google.com"> Click Here. </a></<h1><br>
<h2><b><i> by purnika baniya "science". </h2></i></b>
</Body>
</Html>

Prepared by Purnika Baniya Page 27


Output

Prepared by Purnika Baniya Page 28


Title6: To Prepare Internal hyperlink List Using
HTML

Procedure
<Html>

<Head><title>Using Internal Hyperlink List </title>

</head>

<Body>

<h1>Using Internal Hyperlink</h1><br>

<a href="#bottom" name="top"><font color="green" size="4"> Goto Bottom </font></a><br>

<h1>Computer is the wonderful and mastermind gift of the science to the whole human fraternity. It
can used to do any kind of works. It is very easy to handle by anyone and takes very less time to learn.
Because of its easiness and high work efficiency, it used in many fields like offices, banks, hotels,
educational institutions, shops, hospitals, commercial places, schools, colleges, training institutes,
military establishments, military, industries, etc. Many people buy laptop or desktop for their kids to
learn about required things in their schools or playing computerized video-games, etc. </h1><br><br>

<h1>Computer is a big dictionary and large storage device which we use to save any type of large
amount of data like information, study materials, projects, photos, images, video, audio, songs, clips,
games, and also many more. Computer is an electronic machine which is able to calculate and solve big
problems. It helps in enhancing our skill level and also get information easily. It is very simple data based
machine. Computer provides facility of many other tools like paint tool, text tool, etc. which are very
beneficial for the kids, children and students to use it more effectively.</h1><br><br>

<h1>we can use it for any big or small mathematical calculations very accurately. It used to forecast the
information about weather, in printing books, newspapers, diagnosing diseases, etc. Moreover
computer used to make online railway reservations, ticket booking, hotel or restaurant booking from
any place all over the world. It used by MNC companies for the accounting purpose, invoicing, pay rolls,
stock control, etc. </h1><br><br>

<a href="#top" name="bottom"><font color="green" size="4"> Goto Top </font></a>

<h2><b><i> by purnika baniya "science". </h2></i></b>

</Body>

</Html>

Prepared by Purnika Baniya Page 29


Output

Prepared by Purnika Baniya Page 30


Title7: To Prepare Table Using HTML

Procedure
<Html>
<Head><title>Inserting Table </title></head>
<Body>
<table border="1" cellpadding=20px cellspacing=15px>
<Caption> Table1: student records</caption>
<TR><Th> SN</Th><Th> Name</Th><Th> Address</Th>
</tr>
<TR>
<td> 1</td><td> Ram</td><td> Ktm</td>
</TR>
<TR>
<td> 2</td><td> Roshina</td><td> Pokhara</td>
</TR>
<TR>
<td> 3</td><td> Mohan</td><td> Lalitpur</td>
</TR>
<TR>
<td> 4</td><td> Asim</td><td> Chitwan</td>
</TR>
</table><b><i> by purnika baniya "science". </i></b>
</Body> </Html>

Prepared by Purnika Baniya Page 31


Output

Prepared by Purnika Baniya Page 32


Title8: To Prepare Order List Using HTML

Procedure
<Html>
<Head><title>Using Order List </title>
</head>
<Body>
<h1>Using order list. </h1>
<h2>Input devices</h2>
<ol type="I">
<li>Keyboard</li>
<li>Mouse</li>
<li>OCR</li>
<li>Scanner</li>
</ol>
<b><i> by purnika baniya "science"</i></b>
</Body>
</Html>

Prepared by Purnika Baniya Page 33


Output

Prepared by Purnika Baniya Page 34


Title9: To Prepare Unordered List Using HTML

Procedure
<Html>

<Head><title>Using Unorder List </title>


</head>
<Body>
<h1>Using unorder list. </h1>
<h2>output devices</h2>
<ul type="circle">
<li>Keyboard</li>
<li>Mouse</li>
<li>OCR</li>
<li>Scanner</li>
</ul>
<b><i> by purnika baniya "science".</i></b>
</Body>
</Html>

Prepared by Purnika Baniya Page 35


Output

Prepared by Purnika Baniya Page 36


Title10: To Prepare Form Using HTML

Procedure
<!DOCTYPE html>
<html>
<head>
<title>To Use Form Tag</title>
</head>
<body><form method="post" action="new.html" >
<fieldset>
<legend> login form </legend><br>
username:<input type="text" name="uname" placeholder="enter your
name"><br>
password:<input type="password" name="pwd" placeholder="enter your
password"><br>
<input type= "submit" value="submit">
<input type= "reset" value="close">
</fieldset>
</form>
</p><h2><b><i> by purnika baniya "science". </i></b></h2>
</body>
</html>

Prepared by Purnika Baniya Page 37


<!DOCTYPE html>
<html>
<head>
<title>Using Form tag2</title>
</head>
<body>
<H1>WELCOME TO MY PAGE!!!!!!!!</H1>
<b><i> by purnika baniya "science". </i></b>
</body>
</html>

Prepared by Purnika Baniya Page 38


Output

Prepared by Purnika Baniya Page 39


Title11: To Prepare Inline CSS Using HTML

Procedure
<!DOCTYPE html>
<html>
<head>
<title>inline css concept</title>
</head>
<body>
<h1 style="color:blue; text-align:left;">this is h1 heading</h1>
<p style="color: red;">this is first paragraph.</p>
<p style="color:purple;font-size:20px;">this is second paragraph</p>
<b><i> by purnika baniya "science". </i></b>
</body>
</html>

Prepared by Purnika Baniya Page 40


Output

Prepared by Purnika Baniya Page 41


Title12: To Prepare Internal CSS Using HTML

Procedure

<!DOCTYPE html>
<html>
<head>
<title>internal css concept</title>
<style>
h1
{color: yellow; text-align: left;
}
p
{color: blue; font-size:20px;
}
</style>
</head>
<body>
<h1>This is h1 heading</h1>
<p>This is the first paragraph.</p>
<h2><b><i> by purnika baniya "science". </i></b></h2>
</body> </html>

Prepared by Purnika Baniya Page 42


Output

Prepared by Purnika Baniya Page 43


Title13: To Prepare External CSS Using HTML

Procedure
<HTML>
<HEAD><TITLE>Using External CSS</TITLE>
<link rel="stylesheet" type="text/css" href="style.css">
</HEAD></BODY>
<h1>GENERATION OF COMPUTER</h1>
<p> Each generation of computers has brought significant advances in speed and
power to computing tasks. Learn about each of the five generations of computers
and major technology developments that have led to the computer technology
that we use today.
The history of computer development is a computer science topic that is often
used to refrence the different generations of computing devices. Each computer
generation is characterized by a major technological development that
fundamentally changed the way computers operate.</p>
<h2><b><i> by purnika baniya "science". </i></b></h2>
</body></html>
FOR STYLE.CSS
H1
{ text-align:center;color:black;font-size;40px;
}
P
{ text-align:left;color:green;font-size:35px;
}

Prepared by Purnika Baniya Page 44


Output

Prepared by Purnika Baniya Page 45


5. C Programming

C is a procedural programming language.


It was initially developed by Dennis
Ritchie in the year 1972. It was mainly
developed as a system programming
language to write an operating system.
The main features of the C language
include low-level memory access, a
simple set of Keywords, and a clean style,
these features make C language suitable for system programming like an
operating system or compiler development.
Many later languages have borrowed syntax/features directly or indirectly
from the C language. Like syntax of Java, PHP, JavaScript, and many other
languages are mainly based on the C language. C is a procedural programming
language. It was initially developed by Dennis Ritchie in the year 1972. It was
mainly developed as a system programming language to write an operating
system. The main features of the C language include low level memory access,
a simple set of keywords, and a clean style, these features make C language
suitable for system programming like an operating system or compiler
development.
Many later languages have borrowed syntax/features directly or indirectly
from the C language. Like syntax of Java, PHP, JavaScript, and many other
languages are mainly based on the C language.

Prepared by Purnika Baniya Page 46


Title1: Simple Program in C program.

Q.N.1:
/*WAP to find the sum of two numbers.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,sum;
printf("Enter any two numbers:");
scanf("%d%d",&a,&b);
sum = a+b;
printf("The sum is %d.\n",sum);
printf("***BY PURNIKA BANIYA***");
getch();
}
Output1:

Prepared by Purnika Baniya Page 47


Q.N.2
/*WAP to find the product of two numbers.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,multi;
printf("Enter any two numbers:");
scanf("%d%d",&a,&b);
multi= a*b;
printf("The product is %d.\n",multi);
printf("***BY PURNIKA BANIYA***");
getch();
}
Output2:

Prepared by Purnika Baniya Page 48


Q.N.3

/*WAP to find the area of a circle.*/


#include<stdio.h>
#include<conio.h>
int main()
{
int r,area;
printf("Enter any radius:");
scanf("%d",&r);
area= 3.142*r*r;
printf("The area of a circle is %d.\n",area);
printf("***BY PURNIKA BANIYA***");
getch();
}

Output3:

Prepared by Purnika Baniya Page 49


Q.N.4
/*WAP to find the area of a rectangle.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int l,b,area;
printf("Enter any length and breadth:");
scanf("%d%d",&l,&b);
area= l*b;
printf("The area of a rectangle is %d.\n",area);
printf("***BY PURNIKA BANIYA***");
getch();
}

Output4:

Prepared by Purnika Baniya Page 50


Q.N.5
/*WAP to find the Simple Interest.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int p,t,r,SI;
printf("Enter principal, time and rate:");
scanf("%d%d%d",&p,&t,&r);
SI= (p*t*r)/100;
printf("The Simple Interest is %d.\n",SI);
printf("***BY PURNIKA BANIYA***");
getch();
}

Output5:

Prepared by Purnika Baniya Page 51


Title2: I/O function in C program.

Q.N.1:
/*WAP to enter and print your name using unformatted I/O.*/
#include<stdio.h>
#include<conio.h>
int main()
{
char name[50];
printf("Enter your name:");
gets(name);
puts("Your name is:");
puts(name);
printf("***BY PURNIKA BANIYA***");
getch();
}

Output1:

Prepared by Purnika Baniya Page 52


Q.N.2:

/*WAP to print entered string 10 times using unformatted I/O function.*/


#include<stdio.h>
#include<conio.h>
int main()
{
int i;
char string[50];
printf("Enter any string:");
gets(string);
for(i=1; i<=10; i++)
{
puts(string);}
printf("***BY PURNIKA BANIYA***");
getch();
}
Output2:

Prepared by Purnika Baniya Page 53


Title3: If Statement in C program.

Q.N.1:
/*WAP to check if the number is even.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int n;
printf("Enter any number:");
scanf("%d",&n);
if(n%2==0)
{ printf("The number %d is even. \n",n);
}
printf("***BY PURNIKA BANIYA***");
getch();
} Output1:

Prepared by Purnika Baniya Page 54


Title3: If…Else Statement in C program.

Q.N.1:
/*WAP to check whether the input number is even or odd.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int n;
printf("Enter any number:");
scanf ("%d",&n);
if(n%2==0)
{
printf("The number %d is even. \n",n);
}
else
{
printf("The number %d is odd.\n",n);
}
printf("***BY PURNIKA BANIYA***");
getch();
}

Prepared by Purnika Baniya Page 55


Output1:

Q.N.2:
/*WAP to check whether the input number is positive or negative.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int n;
printf("Enter any number:");
scanf("%d",&n);
if(n>0)
{
printf("The number %d is positive. \n",n);
}

Prepared by Purnika Baniya Page 56


else
{
printf("The number %d is negative.\n",n);
}
printf("***BY PURNIKA BANIYA***");
getch();
}
Output2:

Q.N.3:
/*WAP to find the greater number among two numbers.*/
#include<stdio.h>
#include<conio.h>
int main()
{

Prepared by Purnika Baniya Page 57


int a,b;
printf("Enter any two number:");
scanf("%d%d",&a,&b);
if(a>b)
{
printf("The number %d is greater. \n",a);
}
else
{
printf("The number %d is greater.\n",b);
}
printf("***BY PURNIKA BANIYA***");
getch();
}
Output3:

Prepared by Purnika Baniya Page 58


Title4: If…else if Statement in C program.

Q.N.1:
/*WAP to find the greatest number among three numbers.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
printf("Enter any three numbers:");
scanf("%d%d%d",&a,&b,&c);
if(a>b && a>c)
{
printf("The number %d is greatest. \n",a);
}
else if (b>a && b>c)
{
printf("The number %d is greatest.\n",b);
}
else
printf("The number %d is greatest.\n",c);
printf("***BY PURNIKA BANIYA***");
getch();

Prepared by Purnika Baniya Page 59


Output1:

Q.N.2:
/*WAP to find if the input number is positive, negative or equal to zero.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int n;
printf("Enter any number:");
scanf("%d",&n);
if(n>0)
{
printf("The number %d is positive. \n",n);
}
else if (n<0)
{

Prepared by Purnika Baniya Page 60


printf("The number %d is negative.\n",n);
}
else
{
printf("The number %d is equal to zero.",n);
}
printf ("***BY PURNIKA BANIYA***");
getch();
}
Output2:

Q.N.3:
/*WAP to find greater than, less than or equals to of two numbers using if…else
if statement.*/
#include<stdio.h>
#include<conio.h>

Prepared by Purnika Baniya Page 61


int main()
{
int a,b;
printf("Enter any two numbers:");
scanf("%d%d",&a,&b);
if(a>b)
{
printf("%d is greater than %d. \n",a,b);
}
else if (b>a)
{
printf("%d is less than %d.\n",a,b);
}
else
{
printf("%d is equal to %d. \n",a,b);
}
printf ("***BY PURNIKA BANIYA***");
getch();
}

Prepared by Purnika Baniya Page 62


Output3:

Prepared by Purnika Baniya Page 63


Title5: Nested if…else Statement in C program.

Q.N.1:
/*WAP to find the largest number among the three numbers using nested if else
statement.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
printf("Enter any three numbers:");
scanf("%d%d%d",&a,&b,&c);
if(a>b)
{
if (a>c)
{
printf("%d is greatest. \n",a);
}
else
{
printf("%d is greatest. \n",c);
}
}
else

Prepared by Purnika Baniya Page 64


{
if(b>a)
{
printf("%d is greatest. \n",b);
}
else
{
printf("%d is greatest. \n",c);
}
}
printf ("***BY PURNIKA BANIYA***");
getch();
}

Output1:

Prepared by Purnika Baniya Page 65


Title6: Switch Case in C program.

Q.N.1:
/*WAP to display the name of the days of a week depending on the number
entered through the keyboard using switch case statement.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int n;
printf ("Enter any number from 1 to 7:");
scanf ("%d",&n);
switch(n)
{
case 1:
printf ("SUNDAY\n");
break;
case 2:
printf ("MONDAY\n");
break;
case 3:
printf ("TUESDAY\n");
break;
case 4:
printf ("WEDNESDAY\n");

Prepared by Purnika Baniya Page 66


break;
case 5:
printf ("THURSDAY\n");
break;
case 6:
printf ("FRIDAY\n");
break;
case 7:
printf ("SATURDAY\n");
break;
default:
printf ("The number is invalid.\n"); }
printf ("***BY PURNIKA BANIYA***");
getch(); }
Output1:

Prepared by Purnika Baniya Page 67


Q.N.2:
/*WAP TO find whether the input character is vowel or not*/
#include<stdio.h>
#include<conio.h>
int main()
{
char c;
printf ("Enter the character:");
scanf ("%c",&c);
switch(c)
{
case 'a' :
printf ("The character is vowel.\n");
break;
case 'e':
printf ("The character is vowel.\n");
break;
case 'i':
printf ("The character is vowel.\n");
break;
case 'o':
printf ("The character is vowel.\n");
break;
case 'u':

Prepared by Purnika Baniya Page 68


printf ("The character is vowel.\n");
break;
default:
printf ("The character is consonent.\n");
}
printf ("***BY PURNIKA BANIYA***");
getch();
}
Output2:

Prepared by Purnika Baniya Page 69


Title7: For Loop in C program.

Q.N.1:
/* WAP to input your name and print it 10 times*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
char c[25];
printf("Enter your name:");
scanf("%s",&c);
for (i=1; i<=10; i++)
{
printf("%s\n",c);
}
printf("***Coded By: Purnika Baniya ***");
getch();
}

Output1:

Prepared by Purnika Baniya Page 70


Q.N.2:
/* WAP to print it 1 to 20 times*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
for (i=1; i<=20; i++)
{ printf("%d\n",i);
}
printf("***Coded By: Purnika Baniya ***");
getch();
}
Output2:

Prepared by Purnika Baniya Page 71


Q.N.3:
/*WAP to print the sum of natural number up to nth term*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i,n,sum=0;
printf("Enter the nth term:");
scanf("%d",&n);
for (i=1; i<=20; i++)
{
sum= sum+i;
}
printf("The sum of natural number up to nth term is :%d\n",sum);
printf("***Coded By: Purnika Baniya ***");
getch();
}

Output3:

Prepared by Purnika Baniya Page 72


Title8: While Loop in C program.
Q.N.1:
/*WAP to print odd number from 1 to 20*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
i=1;
while(i<=20)
{
printf("%d\n",i);
i= i+2;
}
printf("***Coded By: Purnika Baniya ***");
getch(); }
Output1:

Prepared by Purnika Baniya Page 73


Q.N.2:
/*WAP to print even number from 1 to 20*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
i=2;
while(i<=20)
{
printf("%d\n",i);
i= i+2;
}
printf("***Coded By: Purnika Baniya ***");
getch();
}
Output2:

Prepared by Purnika Baniya Page 74


Q.N.3:
/*WAP to print the factorial of the number.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i,n,fact=1;
printf("Enter any number:");
scanf("%d",&n);
i=1;
while(i<=n)
{
fact= fact*i;
i++;
}
printf("The factorial number is %d.\n",fact);
printf("***Coded By: Purnika Baniya ***");
getch();
}

Output3:

Prepared by Purnika Baniya Page 75


Title9: Do…while Loop in C program.

Q.N.1:
/*WAP to display national examination 10 times*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
i=1;
do
{
printf("National Examination Board\n");
i++;
}
while(i<=10);
printf("***Coded By: Purnika Baniya ***");
getch();
}

Prepared by Purnika Baniya Page 76


Output1:

Q.N.2:
/*WAP to print odd numbers from 1 to 30.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
i=1;
do
{printf("%d\n",i);
i= i+2;}
while(i<=30);
printf("***Coded By: Purnika Baniya ***");
getch();
}

Prepared by Purnika Baniya Page 77


Output2:

Q.N.3:
/*WAP to display 5 9 13 17…….. 241 using do while loop*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
i=5;
do
{
printf("%d\t",i);
i= i+4;
}
while(i<=241);
printf("***Coded By: Purnika Baniya ***");
getch();
}

Prepared by Purnika Baniya Page 78


Output3:

Prepared by Purnika Baniya Page 79


Title11: Break Statement in C program.

Q.N.1:
/*WAP to demonstrate the use of break statement.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
for(i=1; i<=10; i++)
{ if(i==5)
break;
printf("%d\t",i);
}
printf("***BY PURNIKA BANIYA***");
getch(); }
Output1:

Prepared by Purnika Baniya Page 80


Prepared by Purnika Baniya Page 81
Title12: Continue Statement in C program.

Q.N.1:

/*WAP to demonstrate the use of continue statement.*/


#include<stdio.h>
#include<conio.h>
int main()
{
int i;
for(i=1; i<=10; i++)
{ if(i==5)
continue;
printf("%d\t",i);
}
printf("***BY PURNIKA BANIYA***");
getch(); }
Output1:

Prepared by Purnika Baniya Page 82


Prepared by Purnika Baniya Page 83
Title13: Array in C program.
Q.N.1:
/*WAP to input 5 array elements initialized in array and display the same
record.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i, n[5]={3,5,7,11,9};
printf("The given array elements are:\n");
for(i=0;i<5;i++)
{
printf("%d\n",n[i]);
}
printf("***BY PURNIKA BANIYA**");
getch();
}

Output1:

Prepared by Purnika Baniya Page 84


Q.N.2:
/*WAP to accept five subject marks and calculate the total.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i,total=0,sub[5];
printf("Enter the five subject marks:");
for(i=0;i<5;i++)
{
scanf("%d",&sub[i]);
total= total+sub[i];
}
printf("The total marks is :%d.\n",total);
printf("***BY PURNIKA BANIYA**");
getch();
}

Prepared by Purnika Baniya Page 85


Output2:

Q.N.3:
/*WAP to calculate total and average salary of 5 people using array.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i,total=0,avg,sal[5];
printf("Enter the salary of 10 people:");
for(i=0;i<5;i++)
{
scanf("%d",&sal[i]);
total= total+sal[i];

}
avg= total/5;
printf("The total marks %d. \n",total);
printf("average is %d.\n",avg);

Prepared by Purnika Baniya Page 86


printf("***BY PURNIKA BANIYA**");
getch();
}

Output3:

Q.N.4:
/*WAP to read the salary of 10 employees and count the no. of employees
getting salary between 5000 to 10000.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i, sal[10],count=0;
printf("Enter the salary of 10 employees:\n");
for(i=0;i<10;i++)
{
scanf("%d",&sal[i]);
}

Prepared by Purnika Baniya Page 87


for(i=0;i<10;i++)
{
if(sal[i]>=5000 && sal[i]<=10000)
{
count= count+1;
}
}
printf("the no. of employee getting salary between 5000 to 10000 are
%d.\n",count);
printf("***BY PURNIKA BANIYA**");
getch();
}

Output4:

Q.N.5
/*WAP to input 2X2 matrix and display into proper format.*/

Prepared by Purnika Baniya Page 88


#include<stdio.h>
#include<conio.h>
int main()
{
int i,j, a[2][2];
printf("Enter the 2X2 elements:\n");
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
scanf("%d",&a[i][j]);
}
}
printf("The 2X2 matrix elements are:\n");
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
printf("%d\t",a[i][j]);
}
printf("\n");
}
printf("***BY PURNIKA BANIYA**");
getch();

Prepared by Purnika Baniya Page 89


}

Output5:

Q.N.6:
/*WAP to add two matrixes using array.*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i,j, a[2][2],b[2][2],c[2][2];
printf("Enter the first 2X2 elements:\n");
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
scanf("%d",&a[i][j]);
}
}

Prepared by Purnika Baniya Page 90


printf("Enter the second 2X2 elements:\n");
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
scanf("%d",&b[i][j]);
}
}
printf("The output is:\n");
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
c[i][j]=a[i][j]+b[i][j];
printf("%d\t",c[i][j]);
}
printf("\n");
}
printf("***BY PURNIKA BANIYA**");
getch();
}

Ouptut6:

Prepared by Purnika Baniya Page 91


Prepared by Purnika Baniya Page 92
Title14: String in C program.

Q.N.1:
/*WAP TO FIND THE LENGTH OF A STRING.*/

#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char name[10];
int length;
printf("Enter the string:");
gets(name);
length=strlen(name);
printf("The length of string is: %d\n",length);
printf("***BY PURNIKA BANIYA***");
getch();
}
Output1:

Q.N.2

/*WAP TO REVERSE THE GIVEN STRING.*/

#include<stdio.h>

Prepared by Purnika Baniya Page 93


#include<conio.h>
#include<string.h>
int main()
{
char name[20];
printf("Enter the string:");
gets(name);
strrev(name);
printf("The reverse of string is: %s\n",name);
printf("***BY PURNIKA BANIYA***");
getch();
}
Ouput2:

Q.N.3:

/*WAP to demonstrate the strcpy() function.*/


#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char source[]={"FUNCTION"};
char target[10];
strcpy(target,source);
printf("The source of string is: %s\n",source);

Prepared by Purnika Baniya Page 94


printf("The target of string is: %s\n",target);
printf("***BY PURNIKA BANIYA***");
getch();
}
Output3:

Q.N.4:

/*WAP to demonstrate the strcat() function.*/

#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char NAME1[]={"HARE"};
char NAME2[]{"RAM"};
printf("The concatenate of string is:%s\n",strcat(NAME1,NAME2));
printf("***BY PURNIKA BANIYA***");
getch();
}

Output4:

Prepared by Purnika Baniya Page 95


Q.N.5:

/*WAP to demonstrate the strcmp() function.*/

#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
int x;
char NAME1[]={"THERE"};
char NAME2[]{"THEIR"};
x= strcmp(NAME1,NAME2);
if(x<0)
{
printf("NAME1 IS LESS THAN NAME2.\n");
}
else if (x>0)
{
printf("NAME1 IS GREATER THAN NAME2.\n");
}
else
{
printf("NAME1 IS equal to NAME2.\n");
}

Prepared by Purnika Baniya Page 96


printf("***BY PURNIKA BANIYA***");
getch();
}

Output5:

Q.N.6:

/*WAP to demonstrate the strlwr() function.*/

#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char string[10];
printf("Enter the string:");
gets(string);
printf("The lowercase of string is: %s \n",strlwr(string));
printf("***BY PURNIKA BANIYA***");
getch();
}

Ouput6:

Prepared by Purnika Baniya Page 97


Q.N.7:

/*WAP to demonstrate the strupr() function.*/

#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char string[10];
printf("Enter the string:");
gets(string);
printf("The uppercase of string is: %s \n",strupr(string));
printf("***BY PURNIKA BANIYA***");
getch();
}

Ouput7:

Prepared by Purnika Baniya Page 98


Prepared by Purnika Baniya Page 99
6. Conclusion
By preparing this project I came to know about different topics like Word
processing, MS-Excel, MS-power-point, and Web-page Designing. I learnt the
different features of Word, Excel and Web-page designing. Using Word, I learnt to
prepare my bio-data, prepare different mathematical symbols and prepare the
certificate and ID card. I also learnt to mail merge. Using Excel, I learnt to prepare
mark-sheet, salary-sheet, sales records, and pie chart along with bar graph. I also
learnt to prepare the power-point presentation. I also learnt to prepare the web
page. I came to know about the different facilities provided by web-page
designing. I felt very glad while preparing this report.

Prepared by Purnika Baniya Page 100


7. Bibliography

Dangi, Roshan (2022), a Text Book of Computer Science-XI, Heritage Publication

WEB REFERENCES:

1. https://www.google.com

2. https://www.wikipedia.org

3. https://w3schools.com

4. https://www.w3schools.com/html/html_computercode_elements.asp

Prepared by Purnika Baniya Page 101

You might also like