Professional Documents
Culture Documents
ComputerProject Grade 11 Neb
ComputerProject Grade 11 Neb
ComputerProject Grade 11 Neb
CONGRATULATIONS
Dear Ram,
Congratulations on your outstanding achievement! Becoming the top scorer in the
board exams is no small feat, and your hard work and dedication have truly paid off.
May this success be the stepping stone to a bright future filled with even greater
accomplishments. Keep shining, keep striving, and keep making us proud!
Warm regards,
Rajendra Prasad Joshi
Experience
2015–2019
IT Engineer• Senior Developer • Esewa
2019–2020
IT Engineer• HOD • Daraz
2020–2023
It Engineer• Senior Engineer • Meta
Mid-Baneshwor
Kathmandu,44600 I have had worked on plenty of tech giants as a
software engineer as you can already see on the above
column.
9867354321
Education
education@rolex. Stepping Stone English School, Dhangadhi, Kailali
com.np I have scored 3.55 as grade point average on the recent
SEE
examination conducted by NEB.
Communication
• Excellent written and verbal communication skills
• Confident, articulate, and professional speaking
abilities (and experience).
mrx.com.np
Leadership
• Able to lead others in high-demand situations
• Coaching, guiding, or tacking
• Delegating tasks or responsibilities
• Demonstrated leadership.
HAPPY
BIRTHDA
Y 7`O
MONDAY, 1 APRIL
EVENING
BASUKI
CLOCK IN THE
MARG, BANESHWOR
4
Program 4: Report card of student’s result
Section: O1
Date: 05/04/2024
Teacher’s Feedback:
_______________________________________________________________________________
_______________________________________________________________________________
5
MS EXCEL
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:
1) MS-Excel allows us to sort data either in ascending or
descending order.
2) MS-Excel allows us to create different charts such as bar graph,
pie-
charts, line graphs, etc.
3) MS-Excel automatically edits the result if any changes are made
in any of the cells.
Formula:
Total: =SUM (B2:G2)
Percentage: =H2/600*100
Remark: =IF(AND(B2>=40, C2>=40, D2>=40, E2>=40),"Pass”,
“Fail")
FORMULA USED:
CONSUMED = C2 - D2
FORMULA USED
NET SALARY : = C2 - D2
Features of MS-PowerPoint:
1. MS-PowerPoint allows us to create presentations using
different designing
tools like word art, font designs etc.
2. MS-PowerPoint allows you to add photos and
videos.
3. MS-PowerPoint allows you to apply animations in the slides.
4. MS-PowerPoint allows you to apply transitional effect in the
texts.
5. MS-PowerPoint allows you to add clip arts, pie charts etc.
Alternatively,
i. Press Windows + R
ii. After run command appears, type PowerPoint.
iii. Your Blank page will be opened.
Rajendra Prasad Joshi Sec : O1 10
Program 1: Presentation on mathematics
Characteristics:
1. Markup language
2. Platform-Independent
3. Text-Based-Format
4. Semantics
5. Extensible
6. Integration with other technologies
1. Heading tag
18
Rajendra Prasad Joshi Sec : O1
<!DOCTYPE html>
<html>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</body>
</html>
19
Rajendra Prasad Joshi Sec : O1
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Font tag
20
Rajendra Prasad Joshi Sec : O1
<!DOCTYPE html>
<head>
<title>Document</title>
</head>
<body>
<font face="Cursive" size="6"> Did you see it ? </font>
</body>
</html>
Inserting Image
<!DOCTYPE html>
<html>
<body>
<h2>Watch Out</h2>
<img
src="https://media.istockphoto.com/id/637696304/photo/
patan.jpg?s=612x612&w=is&k=20&c=wesFCvNKd9X0yQ6
jdGuAG-mqMICB1dI_B21Ac9PwWFY="
alt="W3Schools.com" >
</body>
</html>
21
Rajendra Prasad Joshi Sec : O1
<!DOCTYPE html>
<head>
<title>Document</title>
</head>
<body>
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
</video>
22
Rajendra Prasad Joshi Sec : O1
</body>
</html>
Hyperlink
<!DOCTYPE html>
<html>
<body>
<h1>HTML Links</h1>
<p><a href="https://www.youtube.com/">Visit
Youtube</a></p>
</body>
</html>
23
Rajendra Prasad Joshi Sec : O1
HTML Table
<!DOCTYPE html>
<html>
<style>
table, th, td {
border:1px solid black;
}
</style>
<body>
<table style="width:100%">
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
24
Rajendra Prasad Joshi Sec : O1
</tr>
<tr>
<td>Mega</td>
<td>Maria Anders</td>
<td>Nepal</td>
</tr>
<tr>
<td>Derex</td>
<td>Harry Bing</td>
<td>USA</td>
</tr>
</table>
</body>
</html>
LIST TAG
<!DOCTYPE html>
<html>
<body>
25
Rajendra Prasad Joshi Sec : O1
<ol>
<li>Lamborghini</li>
<li>Ferrari</li>
<li>Mercedes-Benz</li>
</ol>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
</html>
26
Rajendra Prasad Joshi Sec : O1
HTML Form
<!DOCTYPE html>
<html>
<body>
<h2>HTML Forms</h2>
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"
value="Elon"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname"
value="Musk"><br><br>
<input type="submit" value="Submit">
</form>
27
Rajendra Prasad Joshi Sec : O1
</body>
</html>
CSS
<!DOCTYPE html>
28
Rajendra Prasad Joshi Sec : O1
<html>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
body {background-color: black;}
h1 {color: yellow;}
p {color: red;}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
29
Rajendra Prasad Joshi Sec : O1
style.css
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head> body {
<body> background-color: powderblue;
}
h1 {
<h1>Using External CSS</h1> color: blue;
}
<p>MRX</p> p{
color: red;
</body> }
</html>
style.css
C programming
30
Rajendra Prasad Joshi Sec : O1
Simple Program
1. //First C program
#include <stdio.h>
31
Rajendra Prasad Joshi Sec : O1
int main() {
printf("Hello World!");
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
int main() {
double num1, num2, sum;
printf("Enter first number: ");
scanf("%lf", &num1);
printf("Enter second number: ");
scanf("%lf", &num2);
sum = num1 + num2;
printf("Sum = %.2lf\n", sum);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
32
Rajendra Prasad Joshi Sec : O1
#include <stdio.h>
int main() {
double radius, area, circumference;
const double PI = 3.14159;
Output:
int main() {
double length, width, area;
33
Rajendra Prasad Joshi Sec : O1
scanf("%lf", &width);
area = length * width;
printf("Area of the rectangle: %.2lf\n", area);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
int main() {
int a, b, temp;
printf("Enter two integers: ");
scanf("%d %d", &a, &b);
printf("Before swapping: a = %d, b = %d\n", a, b);
temp = a;
a = b;
b = temp;
printf("After swapping: a = %d, b = %d\n", a, b);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
34
Rajendra Prasad Joshi Sec : O1
int main() {
double principal, rate, time, simple_interest;
int main() {
double base, height, area;
35
Rajendra Prasad Joshi Sec : O1
return 0;
}
Output:
I/O function in C
36
Rajendra Prasad Joshi Sec : O1
int main() {
int num;
printf("Enter an integer: ");
scanf("%d", &num);
printf("You entered: %d\n", num);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
int main() {
char str[100];
printf("Enter a string: ");
fgets(str, sizeof(str), stdin);
printf("You entered: ");
fputs(str, stdout);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
output:
37
Rajendra Prasad Joshi Sec : O1
int main() {
char ch;
printf("Enter a character: ");
ch = getchar();
printf("You entered: ");
putchar(ch);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
IF
In C programming, the if statement is a fundamental control
structure used for decision-making. It allows you to execute a
block of code conditionally based on the evaluation of a boolean
expression.
int main() {
int num;
38
Rajendra Prasad Joshi Sec : O1
if (num % 2 == 0) {
printf("%d is even.\n", num);
}
if (num % 2 != 0) {
printf("%d is odd.\n", num);
}
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
If … else statement
In C programming, the if-else statement is a powerful control
structure that allows you to execute different blocks of code based
on the evaluation of a boolean expression.
int main() {
int num;
if (num >= 0) {
printf("%d is a positive number.\n", num);
39
Rajendra Prasad Joshi Sec : O1
} else {
printf("%d is a negative number.\n", num);
}
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
int main() {
int num1, num2;
output:
40
Rajendra Prasad Joshi Sec : O1
int main() {
int age;
Output:
If…else if statement
41
Rajendra Prasad Joshi Sec : O1
int main() {
int num1, num2, num3;
return 0;
}
Output:
int main() {
int num;
if (num > 0) {
42
Rajendra Prasad Joshi Sec : O1
printf("Positive number\n");
} else if (num < 0) {
printf("Negative number\n");
} else {
printf("Zero\n");
}
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
int main() {
int age;
printf("Enter your age: ");
scanf("%d", &age);
43
Rajendra Prasad Joshi Sec : O1
printf("Invalid age\n");
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
output:
1. #include <stdio.h>
int main() {
int age;
char gender;
44
Rajendra Prasad Joshi Sec : O1
output:
Switch case
In C programming, the switch statement provides a way to control
flow based on the value of a variable or expression. It's an
alternative to using multiple if-else statements when you have
multiple conditions to evaluate against the same variable.
45
Rajendra Prasad Joshi Sec : O1
int main() {
char ch;
printf("Enter a character: ");
scanf(" %c", &ch);
switch(ch) {
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'A':
case 'E':
case 'I':
case 'O':
case 'U':
printf("%c is a vowel.\n", ch);
break;
default:
printf("%c is a consonant.\n", ch);
}
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
output:
46
Rajendra Prasad Joshi Sec : O1
int main() {
char operator;
double num1, num2, result;
switch(operator) {
case '+':
result = num1 + num2;
printf("Result: %.2lf\n", result);
break;
case '-':
result = num1 - num2;
printf("Result: %.2lf\n", result);
break;
case '*':
result = num1 * num2;
printf("Result: %.2lf\n", result);
break;
case '/':
if (num2 != 0) {
result = num1 / num2;
printf("Result: %.2lf\n", result);
} else {
printf("Error: Division by zero\n");
}
break;
default:
printf("Invalid operator\n");
}
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
47
Rajendra Prasad Joshi Sec : O1
Output:
int main() {
int day;
printf("Enter a number (1-7): ");
scanf("%d", &day);
switch(day) {
case 1:
printf("Sunday\n");
break;
case 2:
printf("Monday\n");
break;
case 3:
printf("Tuesday\n");
break;
case 4:
printf("Wednesday\n");
break;
case 5:
printf("Thursday\n");
break;
case 6:
printf("Friday\n");
48
Rajendra Prasad Joshi Sec : O1
break;
case 7:
printf("Saturday\n");
break;
default:
printf("Invalid input\n");
}
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
Output:
}
output:
FOR loop
int main() {
printf("Numbers from 1 to 5:\n");
for (int i = 1; i <= 5; ++i) {
printf("%d\n", i);
}
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
Output:
}
49
Rajendra Prasad Joshi Sec : O1
int main() {
int num;
int factorial = 1;
output:
int main() {
int num;
printf("Enter a number: ");
scanf("%d", &num);
50
Rajendra Prasad Joshi Sec : O1
output:
While loop
int main() {
int count = 5;
printf("Countdown from 5 to 1:\n");
while (count >= 1) {
printf("%d\n", count);
count--;
51
Rajendra Prasad Joshi Sec : O1
}
printf("Blast off!\n");
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
int main() {
int sum = 0, num = 1;
Output:
52
Rajendra Prasad Joshi Sec : O1
int main() {
int num = 2;
Output:
Do…while loop
53
Rajendra Prasad Joshi Sec : O1
int main() {
int sum = 0, num = 1;
do {
sum += num;
num++;
} while (num <= 50);
printf("Sum of numbers from 1 to 50: %d\n", sum);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
output:
int main() {
int num = 1;
54
Rajendra Prasad Joshi Sec : O1
num += 2;
} while (num <= 10);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
} Output:
int main() {
int num, factorial = 1, i = 1;
do {
factorial *= i;
i++;
} while (i <= num);
output:
55
Rajendra Prasad Joshi Sec : O1
BREAK STATEMENT
int main() {
for (int i = 1; i <= 10; ++i) {
printf("%d\n", i);
if (i == 5) {
break;
}
}
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
output:
Continue STATEMENT
56
Rajendra Prasad Joshi Sec : O1
int main() {
for (int i = 1; i <= 10; ++i) {
if (i % 2 != 0) {
continue;
}
printf("%d\n", i);
}
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
Output:
Go to statement
57
Rajendra Prasad Joshi Sec : O1
#include <stdio.h>
int main() {
int num = 1;
start:
printf("Current value of num: %d\n", num);
num++;
if (num <= 5) {
goto start;
}
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
output:
ARRAY
58
Rajendra Prasad Joshi Sec : O1
int main() {
int numbers[] = {10, 20, 30, 40, 50};
int sum = 0;
output:
int main() {
int numbers[] = {10, 20, 30, 40, 50};
int max = numbers[0];
59
Rajendra Prasad Joshi Sec : O1
output
int main() {
int numbers[] = {10, 20, 30, 40, 50};
output:
int main() {
int numbers[] = {10, 21, 30, 45, 50};
60
Rajendra Prasad Joshi Sec : O1
return 0;
}
output:
int main() {
int numbers[] = {10, 20, 30, 40, 50};
int sum = 0;
61
Rajendra Prasad Joshi Sec : O1
6. //Reverse string
#include <stdio.h>
#include <string.h>
int main() {
char str[] = "Hello";
int length = strlen(str);
int main() {
int numbers[] = {10, 20, 30, 20, 40, 20, 50};
int target = 20;
int count = 0;
62
Rajendra Prasad Joshi Sec : O1
}
}
printf("Number of occurrences of %d: %d\n", target, count);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
String Function
1. //String length
#include <stdio.h>
#include <string.h> Output:
int main() {
char str[] = "Hello, World!";
int length = strlen(str);
printf("Length of the string: %d\n", length);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
63
Rajendra Prasad Joshi Sec : O1
int main() {
char source[] = "Hello";
char destination[20];
strcpy(destination, source);
printf("Copied string: %s\n", destination);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
int main() {
char str1[] = "Hello";
char str2[] = " World!";
strcat(str1, str2);
printf("Concatenated string: %s\n",
str1);
printf("\n***Coded By:Rajendra
Prasad Joshi***");
return 0;
}
int main() {
char str1[] = "Hello";
char str2[] = "Hello";
if (strcmp(str1, str2) == 0) {
64
Rajendra Prasad Joshi Sec : O1
printf("Strings are
equal.\n");
} else {
printf("Strings are not
equal.\n");
}
printf("\n***Coded
By:Rajendra Prasad Joshi***");
return 0;
}
int main() {
char str[] = "Hello, World!";
for (int i = 0; i < strlen(str); ++i) {
if (str[i] >= 'a' && str[i] <= 'z') {
str[i] -= 32; // Convert to uppercase
} else if (str[i] >= 'A' && str[i] <= 'Z') {
str[i] += 32; // Convert to lowercase
}
}
printf("Modified string: %s\n", str);
printf("\n***Coded By:Rajendra Prasad Joshi***");
return 0;
}
output:
65
Rajendra Prasad Joshi Sec : O1
#include <string.h>
int main() {
char str[100];
char substring[100];
int main() {
char str[20] ;
int count = 0;
printf("Enter a string: ");
scanf("%s",&str);
66
Rajendra Prasad Joshi Sec : O1
Conclusion
67
Rajendra Prasad Joshi Sec : O1
BIBLIOGRAPHY:
WEB REFERENCES:
1. https://www.google.com
2. https://www.wikipedia.org
3. https://w3schools.com
68