0% found this document useful (0 votes)
5 views113 pages

Project Sample

This project report by Aryan Gc for Class XI at Global School of Science covers various computer applications including Microsoft Word, Excel, PowerPoint, and HTML. It details procedures for tasks such as creating bio-data, tables, letters, and presentations, as well as basic web page design. The report includes acknowledgments, teacher recommendations, and approval sheets, reflecting the educational requirements for the project.

Uploaded by

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

Project Sample

This project report by Aryan Gc for Class XI at Global School of Science covers various computer applications including Microsoft Word, Excel, PowerPoint, and HTML. It details procedures for tasks such as creating bio-data, tables, letters, and presentations, as well as basic web page design. The report includes acknowledgments, teacher recommendations, and approval sheets, reflecting the educational requirements for the project.

Uploaded by

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

A PROJECT REPORT OF

Computer Science

A PROJECT WORK SUBMITTED FOR THE PARTIAL FULFILLMENT OF THE REQUIREMENT IN MATHEMATICS OF
CLASS XI

Name:Aryan Gc

Class: 11

Section: M1

Roll No: 11

NEB registration No:

Submitted To

Department Of Computer Science

Global School of Science

Mid-Baneshwor Kathmandu, Nepal


Submission date:
ACKNOWLEDGEMENT

I am very pleased to dedicate this work to all the people and institution that provide me
moral and technical support and guidance for the successful completion of this project. I
would like to tank Department of Mathematics, Global School of Science for introducing
me to the topic as well as for the all support, useful comments, remarks and
encouragement through the learning process of this project. Special thank subject
teacher Mr. Milan Bhandari Sir for continuous motivation, support and
encouragement to complete this process. In addition, I would like to thank
Mr.Roshan Dangi (Head of the department of Computer Science, Global School of
Science) for comments and encouragement during completion of this project.

Subject Teacher's Recommendation


I have supervised the project work report entitled “……………………………………………”
which was submitted by the student named Aryan Gc. The project report follows the procedure and format

requirements set by the Department of Computer Science and are being submitted as partial fulfillment of the

internal evaluation requirements for grade XI. Therefore, I recommend this report for final evaluation.

Signature………..

Name of Subject Teacher: Milan Bhandari

Date:
APPROVAL SHEET
We have examined the project report entitled “………………………………………” presented by Aryan Gc as the project
report of class XI section M1 we hereby certify that the project report is acceptable.

Name: Name:

Signature: Signature:

Subject teacher Head of department


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.
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.
BIO-DATA
NAME : Aryan Gc
DOB : 2008-10-04

Address : Bhaktapur,balkot
Contact no : 9827328905
E-mail : [email protected]

Father’s name: Kuldeep Gc Photo


Mother’s name: pramila adhikari
Nationality : Nepali
Sex : Male

Qualification:
SCHOOL Board GPA
FIS BLE 3.2
FIS SEE 3.7
GSS NEB Running
Title 2: To Prepare table using Hierarchy
1. Open Microsoft Word.

Start a new document or open an existing one.

2. Go to the "Insert" tab.

3. Click on "SmartArt."

4. Select "Hierarchy" from the left panel.

5. Choose a layout you like and click "OK.".

6. Click on the text boxes in the chart to enter names, titles, or


descriptions.

7. Use the "SmartArt Design" tab (which appears when the SmartArt is
selected) to: o Add more boxes (click "Add Shape") o

Promote/Demote positions o Change colors or styles

8. Resize or move the hierarchy as needed.

6
Title 3: To prepare letter using mail merge.
Step 1: Prepare Your Data
• Create an Excel spreadsheet with the details you'll be
merging.

o Example columns: First Name, Last Name, Address, City, .

• Save and close the Excel file.


• Step 2: Open a New Word Document
• Step 3: Start the Mail Merge
Go to the “Mailings” tab on the Ribbon.

Click “Start Mail Merge” > Choose “Letters.”

Step 4: Select Recipients


Step 5: Write Your Letter
Step 6: Preview the Letter

WELCOME!! WELCOME!!
Dear friend
<<Name>>
<<Address>>

I would like to invite u to my birthday party. Come and we shall enjoy with all of my and your
friends………..................................................................

………………………………………………………………………………….
………………………………………………………………………………….
Your presence will make the day even more special. Looking forward for the day we reunite.

Program details: :
Venue: Tinkune
Date: 2081-01-20
Time: 3:00 pm Sharp

Your friend:
Title 4: To prepare mathematical expression using

Msord

Go to the Insert tab.

Click Equation (on the right side of the ribbon) or press Alt + =

on your keyboard.

A placeholder will appear. Type your expression using:

• Keyboard (e.g., x2 for x squared, \frac{a}{b} for a fraction)

• The equation toolbar to insert symbols and structures (fractions,

integrals, matrices, etc.)

Click outside the equation box when you're done.


Output: ax2+bx+c=0 ,a2+b2=c2

Sn

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, piecharts, 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.

TITLE 1: To Prepare Marksheet 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 Global School of Science 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, percentage, division and
Result.
Step8: Once you apply the formula then drag the small square box
to apply the same formula.
Step9: Save your document.

OUTPUT:
FORMULA:

Sum: = SUM(C8:G8)
Percentage: =H9/5
Division: =IF(AND(I9>=90),"Distinction",IF(AND(I9>=75),"First
Division",IF(AND(I9>=65),"SecondDivision",IF(AND(I9>=35
), " Third Division",IF(AND(I9>=0), "Fail")))))
Result: =
IF(AND(C9>=40,D9>=40,E9>=40,F9>=40),"Pass","Fail")

TITLE 2: To Prepare Salary Sheet Using Ms-Excel


Procedure
Step 1: Open Microsoft Excel and start a new blank workbook.
Step 2: Rename the sheet as "Salary Sheet".
Step 3: Create column headings like Employee ID, Name,
Designation, etc
Step 4: Enter employee data under each column.
Step 5: Use formulas to calculate Gross Salary and Net Salary.
Step 6: Apply currency formatting and style the sheet with
borders and bold headers.

Step 7: Optionally, add totals at the bottom using the SUM


function.

Step 8: Save the file with an appropriate name and location.


OUTPUT:
FORMILA:

1. Service tax = D11*1%


2. Income tax =
IF(AND(D11*12<200000),D11*0%,IF(AND(D11*12>=200000,D11*12<30
0000),D11*15%,IF(AND(D11*12>=300000),D11*20%)))
3. Net Salary = D11-G11
4. Total tax = D11*1%
TITILE 3: To prepare routine using MS-excel
1. Open Excel
• Launch Microsoft Excel.
• Create a new blank workbook.
2. Set Up Your Headers
• In the top row, label the days of the week across columns. For example: o B1: Monday,
C1: Tuesday, ..., H1: Sunday
• In the first column (Column A), list the time slots vertically. For example:
o A2: 7:00 AM, A3: 8:00 AM, ..., A24: 10:00 PM
3. Format the Table
• Adjust column width and row height for readability.
• Use borders to create a grid:
o Select your table > Right-click > Format Cells > Border tab > Apply all borders.
4. Enter Your Routine Tasks
• Fill in the table cells with activities (e.g., "Gym", "Work", "Study", "Lunch").
• Use color coding to visually separate different types of tasks:
o Select a cell or range > Home > Fill Color (paint bucket icon)
5. Add Conditional Formatting (Optional)
• Go to Home > Conditional Formatting to highlight certain times or recurring tasks.
6. Merge Cells (for Multi-Hour Activities)
• If an activity spans multiple time slots, merge the relevant cells:
o Select the cells > Right-click > Merge & Center.
7. Save Your Routine
• File > Save As > Choose a name and location.
• Save as .xlsx for editing or .pdf if you want to print/share it.
OUTPUT:

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.
18
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.

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 powerpnt.

iii. Your Blank page will be opened


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


Output:
Title2: 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
4.Web page Designing
HTML (HyperText Markup Language) is the
standard language used for creating and designing
web pages. It forms the backbone of the World Wide
Web, allowing developers to structure content in a way
that browsers can interpret and display. HTML is made
up of two key components: HyperText and Markup
Language.
HyperText refers to the system of linking text and
other media through hyperlinks, enabling users to navigate from one
page or resource to another across the internet. This interconnected
structure is what gives the web its fluid and dynamic nature.
Markup Language, on the other hand, involves the use of tags to
annotate text and define how elements should be displayed. These
tags are enclosed within angle brackets (e.g., <p>, <h1>, <img>)
and tell the browser how to format and present the content. Most
markup languages, including HTML, are human-readable, meaning
that people can understand and write them without complex tools or
knowledge.
HTML allows the embedding of various elements such as text, images,
videos, links, and forms, making it possible to create rich and
interactive websites. It does not function as a programming language
but rather as a descriptive language that structures and formats
content.
The first version of HTML was created by Tim Berners-Lee in 1991,
laying the foundation for the modern internet. Since then, it has
evolved through multiple versions, with HTML5 being the latest major
standard, bringing new capabilities like audio and video embedding,
canvas graphics, and improved support for mobile devices.
In summary, HTML is an essential tool in web development, enabling
browsers to interpret and present content to users in a meaningful and
visually organized way.
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.

TITLE 1: TO USE Heading TAG IN HTML


<html>

<head><title> HEADINH TAG</head></title>

<body>

<h1> GLOBAL </h1>

<h2>GLOBAL<h2>

<h3> GLOBAL</h3>

<h4> GLOBAL</h4>

</body>

</html>
OUTPUT:

26

TITLE 2: TO USE TEXT FORMATTING TAG.


<html>
<head>
<title>Text Formatting Example</title>
</head>
<body>
<h1>Text Formatting Tags in HTML</h1>

<p><b>This text is bold.</b></p>


<p><i>This text is italic.</i></p>
<p><u>This text is underlined.</u></p>
<p><mark>This text is highlighted .</mark></p>
<p><small>This is smaller text.</small></p>
<p><del>This text is deleted.</del></p>
<p>This is H<sub>2</sub>O using subscript</p>
<p>This is x<sup>2</sup> + y<sup>2</sup> using superscript</p>
</body>
</html>
OUTPUT:

TITLE 3: TO USE FONT TAG.


<html>
<head>
<title>Font Tag Example</title>
</head>
<body>
<h1>Using the font Tag in HTML</h1>

<p><font face="Arial" size="4" color="blue">This text is in Arial, size


4, and blue.</font></p> <p><font face="Courier New" size="5"
color="green">This text is in Courier New, size 5, and
green.</font></p>
<p><font face="Times New Roman" size="3" color="red">This text is in
Times New Roman, size 3, and red.</font></p>

<p><font size="6" color="#FF5733">This is a large orange-colored text


using hex color code.</font></p>
</body>
</html>
OUTPUT:

TITLE 3: USING TABLE TAG IN HTML.


<html>
<head><titile></title></head>
<body>
<u><h1 align="center"> DAILY CLASS ROUTINE </h1></u>
<table cellspacing="0" cellpadding="5" border="1" align="center"
bgcolor="lavender">
<tr>
<th>Time/days</th>
<th>10:00-11:00</th>
<th>11:00-12:00</th> <th>12:00-
01:00</th>

</tr>
<tr>
<td>Sunday</td>
<td colspan="2">Computer Network</td>
<td>Math</td>
</tr>
<tr>
<td> Monday</td>
<td> HTML</td>
<td colspan="2"> Break</td>
</tr>
<tr>
<td>Tuesday</td>
<td>Communication english</td>
<td>Math</td>
<td> Break</td>
</tr>
</table>
</body>

</html>

OUTPUT:

TITLE 4: Using Form tag in html.


<html>
<head>
<title>User Information Form</title>
</head>
<body>
<h2>User Information Form</h2>
<form action="/submit_form" method="post" enctype="multipart/form-
data">
<label for="username">Username:</label>
<input type="text" id="username" name="username"
required><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password"
required><br><br>
<label for="address">Address:</label>
<input type="text" id="address" name="address" required><br><br>
<label for="country">Country:</label>
<select id="country" name="country" required>
<option value="usa">USA</option>
<option value="uk">UK</option>
<option value="india">India</option>
<option value="canada">Canada</option>
</select><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required><br><br>
<label for="gender">Gender:</label>
<input type="radio" id="male" name="gender" value="male" required>
<label for="male">Male</label>
<input type="radio" id="female" name="gender"

value="female" required> <label

for="female">Female</label><br><br>

<label for="hobbies">Hobbies:</label><br>

<input type="checkbox" id="hobby1" name="hobbies" value="reading">


<label for="hobby1">Reading</label><br>
<input type="checkbox" id="hobby2" name="hobbies"
value="travelling">
<label for="hobby2">Travelling</label><br>
<input type="checkbox" id="hobby3" name="hobbies" value="music">
<label for="hobby3">Music</label><br><br>
<label for="photos">Attach Photos:</label>

<input type="file" id="photos" name="photos"


accept="image/*"><br><br>
<label for="stream">Stream:</label>
<input type="text" id="stream" name="stream" required><br><br>
<input type="submit" value="Submit">
<input type="reset" value="Clear">
</form>
</body>
</html>
OUTPUT:
TITLE 5: USING LIST TAG
<html>
<head>
<title>HTML List Tags Example</title>
</head>
<body>
<h1>Types of Lists in HTML</h1>

<h2>Unordered List of Hobbies</h2>


<ul>
<li>Reading</li>
<li>Traveling</li>
<li>Photography</li>
<li>Gardening</li>
</ul>

<h2>Ordered List of Daily Routine</h2>


<ol>
<li>Wake up</li>
<li>Exercise</li>
<li>Have breakfast</li>
<li>Start work/study</li>
</ol>

<h2>Description List of Programming Languages</h2>


<dl>
<dt>HTML</dt>
<dd>Used to structure web content.</dd> <dt>CSS</dt>
<dd>Used to style and layout web pages.</dd>

<dt>JavaScript</dt>
<dd>Used to create interactive effects within web browsers.</dd>
</dl>
</body>
</html>
OUTPUT:

36
TITLE 6: USING INTERNAL HYPERLINK.
<html>
<head>
<title>Internal Hyperlinks Example</title>
</head>
<body>
<h1>Welcome to My Webpage</h1>

<p>Use the links below to jump to different sections of this page:</p>

<ul>
<li><a href="#about">About Me</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
</ul>

<hr>

<h2 id="about">About Me</h2>


<p>Hello! I'm a web developer who enjoys building interactive and

user-friendly websites.</p> <p><a href="#top">Back to

Top</a></p>
<h2 id="projects">Projects</h2>
<p>Here are a few of my favorite projects:</p>
<ul>
<li>Portfolio Website</li>
<li>Weather App</li>
<li>To-Do List</li>
</ul>
<p><a href="#top">Back to Top</a></p>

<h2 id="contact">Contact</h2>
<p>You can reach me at: <strong>[email protected]</strong></p>
<p><a href="#top">Back to Top</a></p>

<a id="top"></a>
</body>
</html>
OUTPUT:

38

TITLE 7: USING EXTERNAL HYPERLINK.


<html>
<head>
<title>External Hyperlinks Example</title>
</head>
<body>
<h1>Useful External Links</h1>
<p>Click the links below to visit some popular websites:</p>

<ul>
<li><a href="https://www.google.com" target="_blank">Visit
Google</a></li>
<li><a href="https://www.wikipedia.org" target="_blank">Visit
Wikipedia</a></li>
<li><a href="https://www.github.com" target="_blank">Visit
GitHub</a></li>
<li><a href="https://www.w3schools.com" target="_blank">Learn
HTML at W3Schools</a></li>
</ul>

<p>These links open in a new tab using the <code>target="_blank"</code>


attribute.</p>
</body>
</html>
OUTPUT:
TITLE 8: TO input image using HTML
<html>
<head>
<title>Image Example</title>
</head>
<body>
<h1>My Image</h1>
<img src="C:\Users\aryan Don\Downloads\all\Screenshot (9).png"
alt="Description of image" width="300">
</body>
</html>

OUTPUT:
TITLE 9: To Insert Video using HTML
<html>
<head>
<title>Video Example</title>
</head>
<body>
<h1>My Video</h1>
<video width="640" height="360" controls>
<source src="C:\Users\Samriddha Don\Downloads\mumm.mp4"
type="video/mp4">
Your browser does not support the video tag.
</video>
42

</body>
</html>
Output:
TITLE 10: Using in line CSS
<html>
<head>
<title>Inline CSS Example</title>
</head>
<body style="background-color: #f0f8ff; font-family: Arial, sans-serif;">

<h1 style="color: navy; text-align: center;">Welcome to My Page</h1>

<p style="color: #333; font-size: 18px; line-height: 1.6; padding: 10px;">


This is a simple paragraph styled using inline CSS. You can change
colors, fonts, spacing, and more directly within the tag.
</p>

<button style="background-color: #4CAF50; color: white; padding: 10px


20px;
border: none; border-radius: 5px; cursor: pointer;">
Click Me
</button>

</body>
</html>
OUTPUT:
TITLE 11: USING INTERNAL CSS.
<!DOCTYPE html>
<html>
<head>
<title>Internal CSS Example</title>
<style>

body {

background-color: #f0f0f0;

font-family: Verdana, sans-serif;

margin: 20px; }h1 {

color: darkblue;

text-align: center;

p{

font-size:

18px;

color: #444;

padding: 10px;
}
button

{ background-color:

#28a745;

color: white;

border: none;

padding: 10px 20px;

font-size: 16px;

border-radius: 5px;

cursor: pointer;

}
button:hover

{ background-color:

#218838;

}
</style>
</head>
<body>
<h1>Welcome to My Styled Page</h1>
46

<p>This page uses internal CSS for styling. It makes your HTML look much
cleaner compared to inline styles.</p>
<button>Click Me</button>
</body>
</html>

OUTPUT:
TITLE 12:USING EXTERNAL CSS:
body {
font-family: Arial,
sans-serif;
background-color:
#f0f8ff; margin: 0;
padding: 0;
}
header {
background-color: #4CAF50;
color: white;
padding: 20px;
text-align: center;
}
main
{ padding
: 20px;
}
section { background-
color: white; padding:
15px; margin-top: 10px;
border-radius: 10px; box-
shadow: 0 0 10px
rgba(0,0,0,0.1);
}
footer
{ background-
color: #333;
color: white;
text-align: center;
padding: 10px;
}
<html>
<head>
<meta charset="UTF-8">
<title>My Styled Page</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Welcome to My Website</h1>
<p>This page is styled using an external CSS file.</p>
</header>
<main>
<section>
<h2>About Me</h2>
<p>I love web development and design.</p>
</section>
</main>
<footer>
<p>&copy; 2025 MyWebsite</p>
</footer>
</body>
</html>
5. C Programming
C is a powerful, general-purpose
procedural programming language that
has played a foundational role in the
development of modern computing. It
was initially developed by Dennis Ritchie
at Bell Labs in 1972, primarily as a system
programming language for writing
operating systems. In fact, much of the
UNIX operating system was originally written in C.
One of the key strengths of the C language is its ability to access low-level
memory directly, which gives programmers more control over hardware
resources. It features a simple set of keywords, a clean and concise syntax,
and a structured programming approach. These characteristics make it
particularly suitable for system-level programming, such as the
development of operating systems, compilers, embedded systems, and
device drivers.
Over the decades, C has had a significant influence on many modern
programming languages. Languages like C++, Java, C#, JavaScript, and PHP
have borrowed heavily from C’s syntax and core concepts. This influence has
made C an important language to learn, especially for those who want to
understand how software interacts with hardware or how high-level
languages are built on top of lower-level operations.
In addition to its performance and efficiency, C’s widespread use and long-
standing presence in the industry have made it a go-to language for many
developers, both beginners and professionals. Despite the emergence of
many newer languages, C remains relevant today due to its speed,
portability, and flexibility.
In summary, C is not just a programming language—it's a cornerstone in the
history of computer science, and its legacy continues to shape the
development of software and programming practices around the world.
TILTLE 1: TO print “welcome to C programming”

#include<stdio.h>

int main ()

{
printf("Welcome to C programming\n");
printf(“Aryan-M1”);

return 0;
}

Title 2: To add two numbers.


#include<stdio.h>
int main()
{
int a=5,b=8,c;
c=a+b;
printf("Sum is %d",c);
return 0;

Title 3: To add two numbers given by user.


#include<stdio.h>
int main()

{ int a,b,c;
printf("enter the value");
scanf("%d%d",&a,&b);
c=a+b;

printf("Sum is %d\n",c);

return 0;

TITLE 3: WAP to find remainder of two number


#include<stdio.h>

int main()

{ int a,b,c;

printf("enter the value");


scanf("%d%d",&a,&b);
c=a%b;

printf("remainder is %d\n",c);

return 0;

TITLE 4: WAP to find the multiplication of three numbers where


the numbers are entered through keyboard
#include<stdio.h>

int main()

{
int a,b,c,d;
printf( "enter the value\n");
scanf("%d%d%d",&a,&b,&c);
d=a*b*c;
printf("Multiplication is %d\n",d);
return 0;
}

TITLE 5: WAP TO DISPLAY SQUARE OF A NUMBER


#include<stdio.h>

int main()

{ int a,b;

printf("Enter a number\n");
scanf("%d",&a);

b=a*a;

printf("Square = %d\n",b);
return 0;

TITLE 6:
/*WAP TO DISPLAY Perimeter OF A Circle using constant*/
#include<stdio.h>
#define pi 3.1495926

int main()

{
int a,b;
printf("Enter radius of a circle \n");
scanf("%d",&a);
b=2*pi*a;
printf("Perimeter = %d\n",b);
return 0 ;
}

TITLE 7: WAP TO DISPLAY AVERAGE OF 3 NUMBERS


#include<stdio.h>

int main()

{
int a,b,c,d,e;
printf("Enter three numbers\n");
scanf("%d%d%d",&a,&b,&c);
e=a+b+c; d=e/3;

printf("Average = %d\n",d);

return 0;

}
TITLE 8: Converting Celsius to Fahrenheit.
#include <stdio.h>
int main()
{
float celsius, fahrenheit;
printf("Enter temperature in Celsius: ");
scanf("%f", &celsius);
fahrenheit = (celsius * 9 / 5) + 32;
printf("%.2f Celsius = %.2f Fahrenheit\n",
celsius,fahrenheit);
return 0;
}
TITLE 9: To Calculate Simple Interest.

#include <stdio.h>

int main() {

float principal, rate, time, interest;


printf("Enter principal, rate and time: ");
scanf("%f %f %f", &principal, &rate, &time);
interest = (principal * rate * time) / 100;
printf("Simple Interest = %.2f\n", interest);

return 0;
}
TITLE 11: USING IF STATEMENT
#include <stdio.h>

int main()

int number; printf("Enter a number:


");

scanf("%d", &number); if (number >


0)

printf("The number is positive.\n");

}
else { printf("The number is
negative.\n");

}
printf(“Aryan-M1”); return 0;

}
TITLE 12: USING IF ELSE STATEMENT.
#include <stdio.h>
int main() {
int number;
printf("Enter a number: ");
scanf("%d", &number);
if (number % 2 == 0)

printf("The number is even.\n");

}
else
{
printf("The number is odd.\n");
}
return 0;

TITILE 13:
#include <stdio.h>
int main() {
int number;
printf("Enter a number:
"); scanf("%d",
&number);
if (number % 3 == 0) {
printf("The number is divisible by 3.\n");
} else {
if (number % 5 == 0) {
printf("The number is divisible by 5.\n");
} else {
printf("The number is not divisible by 3 or 5.\n");
}
}
return 0;

TITLE 14: Using IF else-if Statement To know the grade.


#include <stdio.h>
int main() {
int marks;

printf("Enter your marks (0-100): ");


scanf("%d", &marks);

if (marks >= 90)


{ printf("Grade: A\
n"); } else if (marks >=
80) { printf("Grade:
B\n"); } else if (marks
>= 70)
{ printf("Grade: C\
n"); } else if (marks >=
60) { printf("Grade:
D\n"); } else {

printf("Grade: F\n");

return 0;

}
OUTPUT:

TITLE 15: To know the day of the week.


#include <stdio.h>
int main()
{ int day;

printf("Enter a number (1-7): ");


scanf("%d", &day);

if (day == 1) {
printf("Sunday\n");
}

else if (day == 2)

printf("Monday\n");

else if (day == 3)

printf("Tuesday\n");

else if (day == 4)
{ printf("Wednesday\
n");

else if (day == 5)

printf("Thursday\n");

else if (day == 6)

printf("Friday\n");

} else if (day == 7)

printf("Saturday\n");

} else
{
printf("Invalid day number.\n");
}
return 0;

TITLE 16: Temperature Description.


#include <stdio.h>
int main() {
int temp;
printf("Enter temperature in Celsius: ");
scanf("%d", &temp);

if (temp >= 35)

printf("HOT DAMN\n");

else if (temp >= 20)

printf("It's warm.\n");

else if (temp >= 10)

printf("It's cool.\n");

}
else

{ printf("It'scold!\
n");

}
return 0;
}

TITLE 17: To check if the number is –ve,+ve or 0 OR


even or odd using nested if else.
#include <stdio.h>

int main()
{
int number;
printf("Enter a number: ");
scanf("%d", &number);

if (number > 0)
{
printf("The number is positive.\n");

if (number % 2 == 0)
{
printf("It is even.\n");
}
else
{
printf("It is odd.\n");
}
}
else if (number < 0)
{
printf("The number is negative.\n");

if (number % 2 == 0)
{
printf("It is even.\n");
}
else
{
printf("It is odd.\n");
}
}
else
{
printf("The number is zero.\n");
}

return 0;
}

TITLE 18: SIMPLE CALCULATOR:


#include <stdio.h>
int main() {

char operator;
float num1, num2;

printf("Enter an operator (+, -, *, /): ");


scanf(" %c", &operator);
printf("Enter two numbers: ");
scanf("%f %f", &num1, &num2);

switch(operator) {
case '+':

printf("Result: %.2f\n", num1 + num2); break;

case '-':

printf("Result: %.2f\n", num1 - num2); break;

case '*':

printf("Result: %.2f\n", num1 * num2); break;

case '/':

if (num2 != 0)
printf("Result: %.2f\n", num1 / num2);
else

printf("Division by zero is not allowed.\n");


break;
default: printf("Invalid operator.\n");
}
return 0;
}

TITLE 19: To check vowel or consonant.


#include <stdio.h>

int main()

char ch;

printf("Enter a lowercase letter: ");

scanf(" %c", &ch); // Note the space before %c to avoid reading newline
switch(ch)

case 'a':

case 'e':

case 'i':

case 'o':

case 'u':

printf("The character is a vowel.\n");

break;

default:

printf("The character is a consonant.\n");

return 0;

};
TITLE 20: To Know the Number of days in a month.
#include <stdio.h>

int main()
{
int month;

printf("Enter month number (1-12): ");


scanf("%d", &month);

switch(month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
printf("This month has 31 days.\n");
break;
case 4:
case 6:
case 9:
case 11:
printf("This month has 30 days.\n");
break;
case 2:
printf("This month has 28 or 29 days (depending on
leap year).\n");
break;
default:
printf("Invalid month number.\n");
}
return 0;
}
TITLE 21: To print n natural number.
#include <stdio.h>
int main() {
int n;
printf("Enter the value of N: "); scanf("%d", &n);
for (int i = 1; i <= n; i++)
{
printf("%d ", i);
}
return 0;
}
TITLE 22: To calculate factorial of given number.
#include <stdio.h>

int main()
{
int num;
int factorial = 1;
printf("Enter a number: ");
scanf("%d", &num);

for (int i = 1; i <= num; i++)


{
factorial *= i;
}

printf("Factorial of %d is %d\n", num, factorial);


printf("Aryan Gc - M1\n");

return 0;

}
TITLE 23: To print multiplication table of a number.
#include <stdio.h>
int main() { int
num;

printf("Enter a number to print its multiplication table: ");

scanf("%d", &num); for (int i = 1; i <= 10; i++) {


printf("%d x %d = %d\n", num, i, num * i);
}
printf("Aryan Gc-M1\n");

return 0;

}
TITLE 24: Palindrome of a number.
#include <stdio.h>

int main() {

int num, reversed = 0, digit;


printf("Enter a number: ");
scanf("%d", &num);

while (num != 0) {

digit = num % 10;

reversed = reversed * 10 + digit;


num /= 10;
}
printf("Reversed number is %d\n", reversed);
return 0;
}

TITLE 25: To print multiples of a number up to


100.
#include <stdio.h>
int main() {
int num, i = 1;
printf("Enter a number: ");
scanf("%d", &num);
printf("Multiples of %d up to 100:\n", num);
while (num * i <= 100)

printf("%d ", num * i); i++;

}
return 0;

}
TITLE 26: Sum of first n natural numbers.
#include <stdio.h>
int main() {
int n, sum = 0, i = 1;
printf("Enter a number: ");
scanf("%d", &n);
while (i <= n)

{ sum += i;
i++;

}
printf("Sum of first %d natural numbers is %d\n", n, sum);
return 0;

TITLE 27: Add all numbers until user enters


zero.
#include <stdio.h>
int main() {
int num, sum = 0;
do {

printf("Enter a number (0 to stop): ");


scanf("%d", &num);

sum += num;

while (num != 0);

printf("Sum of all numbers: %d\n", sum);


return 0;

}
TITLE 28: To print ‘n‘ even number.
#include <stdio.h>

int main()

int n, i = 2;
printf("Enter the value of N: ");
scanf("%d", &n);
printf("Even numbers from 1 to %d:\n", n);
do {

printf("%d ", i);


i += 2;
}
while
(i <= n);
return 0;

TITLE 29: To print Fibonacci series.


#include <stdio.h>

int main() {
int n, a = 0, b = 1, count = 0, next;
printf("Enter the number of terms: ");
scanf("%d", &n);
printf("Fibonacci Series: ");
do {
printf("%d ", a);
next = a + b;
a = b; b = next;
count++;

while (count < n);

return 0;

}
TITLE 30: Program using Break statement.
#include <stdio.h>
int main() {

int i = 1;

while (1)

if (i % 3 == 0 && i % 7 == 0) {
printf("The first number divisible by both 3 and 7 is:
%d\n", i);
break;
}
i++;

}
return 0;

}
TITLE 31: To print odd number using continue.
#include <stdio.h>
int main() {

int n;

printf("Enter the value of N: ");


scanf("%d", &n);

printf("Odd numbers from 1 to %d:\n", n);


for (int i = 1; i <= n; i++)

if (i % 2 == 0)

{ continue;

}
printf("%d ", i);
}
return 0;

}
TITLE 32: To input a positive number.
#include <stdio.h>
int main() {

int num;

start:

printf("Enter a positive number: ");


scanf("%d", &num);

if (num < 0) {

printf("That's not a positive number. Try again!\n");


goto start;

}
printf("You entered: %d\n", num);
return 0;

}
TITLE 33: Store and print array elements.
#include <stdio.h>
int main() {

int arr[5], i;
printf("Enter 5
integers:\n");
for(i = 0; i < 5; i++)
{

scanf("%d",
&arr[i]);

}
printf("You entered:\n");
for(i = 0; i < 5; i++)

{ printf("%d ", arr[i]);

}
return 0;

}
TITLE 34: To find sum of array elements.

#include <stdio.h>

int main()

{
int arr[5], sum = 0, i;
printf("Enter 5 integers:\n");
for(i = 0; i < 5; i++)

scanf("%d", &arr[i]);
sum += arr[i];

}
printf("Sum of elements = %d\n", sum);
return 0;

}
TITLE 35: To find the greatest integers.
#include <stdio.h>

int main()

{ int arr[5], max, i;


printf("Enter 5 integers:\n");
for(i = 0; i < 5; i++)

scanf("%d", &arr[i]);

} max = arr[0];

for(i = 1; i < 5; i++)

if(arr[i] > max)

max = arr[i];

}
}
printf("Maximum element = %d\n", max);

return 0;

}
96
TITLE 36: To reverse the entered elements using array.
#include <stdio.h>
int main() {

int arr[5], i;
printf("Enter 5 integers:\n");
for(i = 0; i < 5; i++)
{
scanf("%d", &arr[i]);
}
printf("Reversed array:\n");
for(i = 4; i >= 0; i--)
{
printf("%d ", arr[i]);
}
return 0;
}
TITLE 37: To count the numbers of odd and even number.
#include <stdio.h>

int main()

int arr[5], i, even = 0, odd = 0;


printf("Enter 5 integers:\n");
for(i = 0; i < 5; i++)

{ scanf("%d", &arr[i]);
if(arr[i] % 2 == 0)
even++;

else odd++;

printf("Even numbers: %d\n", even);


printf("Odd numbers: %d\n", odd);
return 0;

TITLE 38: To search for entered array.


#include <stdio.h>

int main()
{
int arr[5], i, key, found = 0;
printf("Enter 5 integers:\n");
for(i = 0; i < 5; i++)
{
scanf("%d", &arr[i]);
}

printf("Enter the number to search: ");


scanf("%d", &key);

for(i = 0; i < 5; i++)

if(arr[i] == key)

found = 1;
break;

}
}
if(found)
printf("Element found at position %d\n", i + 1);
else

printf("Element not found.\n");


printf("Name: Aryan GC M1\n");
return 0;
}
TITLE 39: To compare two strings.
else
printf("Strings are not equal.\n");
#include <stdio.h>
printf
#include <string.h>
Return 0;
int main() {
}
char str1[100], str2[100];
printf("Enter first string: ");
gets(str1);
printf("Enter second string: ");
gets(str2);
if(strcmp(str1, str2) == 0)
printf("Strings are equal.\n");

You might also like