You are on page 1of 13

A PRACTICAL REPORT ON (MS-WORD , MS-EXCEL , C-PROGRAMMING

LANGUAGE , HTML & CSS) FOR THE PRACTICAL

“For the Practical Fulfillment of the Degree of Class-11 Computer


Science subjects”

SUBMITTED BY SUBMITTED TO
NAME: Shahil Ahamad Yuba Raj Khanal
CLASS: 11 ‘A’
ROLL NO: 35
--------
Signature

DEPARTMENT OF COMPUTER SCIENCE DEEP BOARDING HIGH SCHOL


Acknowledgement
I would like to express my sincere gratitude to all those who have contributed to
the successful completion of this computer project of class 11.

First and foremost, I would like to thank my computer teacher for guiding and
supporting me throughout the project. Her invaluable suggestions and feedback
helped me to improve my work and complete the project within the given
deadline.

I would also like to thank my parents for their constant encouragement and
support during this project. Their motivation and belief in me have been a
constant source of inspiration.

I am also grateful to my classmates for their cooperation and support. Their


constructive criticism and suggestions helped me to enhance the quality of the
project.

Lastly, I would like to thank the internet, various books, and other resources that
were instrumental in providing me with the necessary information and knowledge
required for this project.

Once again, thank you to everyone who has contributed to the successful
completion of this project.

DEPARTMENT OF COMPUTER SCIENCE DEEP BOARDING HIGH SCHOL


Bio-Data
Name : Shahil Ahamad
PHOTO
Date of Birth : 2006-10-19 (A.D)

Email : shahilahamad08@gmail.com

Address : Sukhanagar,Butwal-08,Rupandehil

Mobile : 9748703587

Father’s Name : Neeraj Miya

Mother’s Name : Safina Miya

Gender : Male

Religion : Islam

Qualification :

Institute Name Year of Passing Marks


Percentage
Butwal Madina 2078 75
School
Boarding School

DEPARTMENT OF COMPUTER SCIENCE DEEP BOARDING HIGH SCHOL


EduTech Software Developers
Amarpath , Butwal – 04 , Rupandehi

Salary Sheet for the Month of Chaitra , 2079


Service Monthly Yearly Yearly Monthly Net Monthly
S.N Name Position Year Salary Salary Tax Tax Tax
1 A Manager 7 30000 360000 46800 3900 26100
2 B Programmer 1 27000 324000 42120 3510 23490
3 C Accountant 6 15000 180000 23400 1950 13050
4 D Support Staff 2 8000 96000 12480 1040 6960

Mark-Sheet
Name English Nepali Math Science Total Percent Result Division

A 78 56 23 45 202 50.5 Fail Second

B 89 65 78 68 300 75 Pass First

C 78 98 89 75 340 85 Pass First

D 56 56 23 45 180 45 Fail Third

DEPARTMENT OF COMPUTER SCIENCE DEEP BOARDING HIGH SCHOL


• Switch-Case Statement :
The Switch Case Statement is a special decision maker that tests
whether an expression matches one of the number of signed
integer constant or character constant values , with expression
given inside the braces accordingly. Syntax switch(expression)
{
case constant_1:
statement_1 ;
break ;
.
. case
constant_n:
statement_n;
break; default:
statement_1;
}

DEPARTMENT OF COMPUTER SCIENCE DEEP BOARDING HIGH SCHOL


Example:
#include<stdio.h>
int main(){
int choice ;
printf("Enter the number of day:\n");
scanf("%d",&choice);
switch (choice){
case 1:
printf("The day is Sunday");
break;
case 2:
printf("The day is Monday");
break;
case 3:
printf("The day is Tuesday");
break;
case 4:
printf("The day is Wednesday");
break;
case 5:
printf("The day is Thursday");
break;
case 6:
printf("The day is Friday");
break;
case 7:
printf("The day is Saturday");
break;
default:
printf("INVALID NUMBER");
break;
}
return 0;
}
• ALGORITHM & FLOWCHART :

Q1. Write an algorithm and draw flowchart to input and height of the
cylinder & height of the cylinder and display the volume?
Algorithm :
Step 1: Start
Step 2: Input radius as ‘r’ and height as ‘h’
Step 3: Calculate volume=(22/7)*r*r*h
Step 4: Display Volume
Step 5: End
Flowchart :

Start

Read r , h

V=(22/7)*r*r*h

Display V

End
Q2. Write an algorithm & flowchart to input length , breadth & height of a box
and display the volume?
Algorithm :
Step 1: Start
Step 2: Input l , b & h
Step 3: Calculate V = l*b*h
Step 4: Display V
Step 5: End

Flowchart :
• C-Looping :
The computer can perform a set of instructions repeatedly . This involves repeating some
portion of a program either for a specified number of times or till a given condition is satisfied
number of times or till a given condition is satisfied . This repetitive operation is done by a loop
Control statement.

Its types are :


I. For statement
II. While statement
III. Do while statement

Loop Type Description

for loop first Initializes, then condition check, then executes the body and at last, the update is
done.

while loop first Initializes, then condition checks, and then executes the body, and updating can
be inside the body.

do-while do-while first executes the body and then the condition check is done.
loop

For loop :
Example
#include<stdio.h>
int main(){
int i ;
for(i=10 ; i>=0 ; i--){
printf("Hello World");
}
return 0;
}
While Loop :
Example:
#include<stdio.h>
int main(){
int i=0 ;
while (i<=10){
printf("Hello World");
i++;
}
return 0;
}

Do While Loop :
Example
#include<stdio.h>
#include<conio.h>
int main(){
int i=0 ;
do{
printf("Hello World");
i++;
}while(i<=10);
getch();
}
C-Array :
Q1.Write a C program to ask ten numbers from the user and
display them using array?
#include<stdio.h>
#include<conio.h>
int main()
{
int i , a[10];
for(i=0 ; i<10 ; i++){
printf("Enter the numbber\t");
scanf("%d",&a[i]);
}
printf("The nnumbers you entered are: \t");
for(i=0 ; i<10 ; i++){
printf("\n%d",a[i]);
}
getch();
}
Q2.Write a C program to copy source string to
destination string using string array?
#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char str1[30] , str2[30];
printf("Enter string to copy :\t");
scanf("%S",str1);
strcpy(str2,str1);
printf("The copied string is : %S",str2);
getch();
}

You might also like