You are on page 1of 13

PROJECT IN CPROGRAMMING LANGUAGE

A PROJECTWORK SUBMITTED TO NEB FOR THE PARTIAL FULFILMENT


OF THE REQUIREMENT IN COMPUTER OF CLASS XI

Submitted By:
Aadarsh Kharal
Class: 11
Roll Number: 1
Section: H

Submitted to:
Shanker Bhandari
Faculty of Computer Science
Tilottama Campus
2079/12/10
1|Page
Letter of Approval

I confirm that the project work titled "Project in C


Programming Language" has been prepared in
compliance with the standards and regulations of
our campus. As a result, I strongly endorse the
project report to undergo further examination and
evaluation.

Signature: Signature:
Mr. Shankar Prasad Bhandari Mr.
(Supervisor) (Name of external Examiner)
Tilottama Campus

2|Page
Declaration
In order to partially satisfy the requirements for
the 10+2 National Examination Board award, I
thus certify that the project report named
"PROJECT IN C PROGRAMMING LANGUAGE"
was done by me at Tilottama Campus in Nepal
under the guidance of Mr. Shankar Prasad
Bhandari. The report is entirely my own
creation, and all sources referenced in it have
received the appropriate recognition. All
sources of information, data, or works used in
this project that were created by other people
are properly acknowledged and listed in the
reference section.

….........................
Name: Aadarsh Kharal
Grade: XI‘H’
Roll no: 1
Date: 2079/12/10
3|Page
Acknowledgement
This project report has been prepared as part of the
partial fulfillment of the requirements for the 10+2
level under the subject of "Computer Science mini-
project work." It has been a tremendous pleasure
for us to have the opportunity to apply theoretical
knowledge in practical sector, which was offered by
the National Examination Board.
I want to take this opportunity to express my
heartfelt appreciation to our supervisor, Mr.
Shankar Prasad Bhandari, as well as to my teachers
for their assistance with my project work and for
providing me with support, direction, and
encouragement throughout the report. In addition,
I want to convey my appreciation to all of my
friends, elders, and relatives who helped me in
some way to do this project work.

Aadarsh Kharal
Science XI“H”
Tilottama-Campus
4|Page
TABLE OF CONTENTS

Title page 1
Recommendation 2
Declaration 3
Acknowledgement 4
Table of contents 5
System Requirements 6
System Design 7
System Coding 8
System Testing and Output 11
System Implementation 13
Reference 13

5|Page
SYSTEM-REQUIREMENTS

 Hardware Requirements
1. Device name: LAPTOP-SDS50S55
2. Processor: i5-9300H CPU
3. Installed RAM: 8.00GB
4. System type: 64-bitOS, x64-based processor

 Software Requirements
1. Windows 11 Operating System
2. Dev-C++ for C-Programming
3. MinGW Compiler for C-Program Compiling
4. Word-2016 for Report Preparation

6|Page
System Design

7|Page
System Coding:
#include <stdio.h>

#include <string.h>

int main() {

int choice, a, b, term, c, outer, n, num, z, rev, d, loop, vow, con, matrix1[3][3], matrix2[3][3], sum[3][3],
row, col;

char name[50];

xyz:

printf("Enter your choice: \n");

printf("Enter 1 for Fibonacci series upto 10th term \n");

printf("Enter 2 for Displaying multiplication table upto 10th term of given number \n");

printf("Enter 3 to reverse the given number and check whether it is palindrome or not \n");

printf("Enter 4 for Displaying the total number of vowel and consonant in given word\n");

printf("Enter 5 for matrix addition 3x3 order matrix\n");

scanf("%d", &choice);

Switch (choice){

Case 1:

a=0; b=1;

term=1;

while(term<=10) {

printf("%d \t",a);

c=a+b;

a=b;

b=c;

term++; }

break;

case 2:

printf("Enter the number for multiplication table :\t");

scanf("%d",&n);

for(outer=1;outer<=10;outer++) {

8|Page
printf("%dx%d=%d \n",n,outer,n*outer);}

break;

case 3:

printf("Enter any number : \t");

scanf("%d",&num);

z=num; rev=0;

while(num!=0) {

d = num%10;

rev=rev*10+d;

num=num/10; }

printf("Reverse order is %d \n",rev);

if(z==rev) {

printf("The number is palindrome");

} else {

printf("The number is not palindrome");}

break;

case 4:

printf("Enter your word: ");

scanf("%s",name);

strlwr(name);

vow=0; con=0;

for(loop=0;loop<strlen(name);loop++) {

if (name[loop]=='a'||name[loop]=='e'||name[loop]=='i'||name[loop]=='o' ||name[loop]=='u') {

vow=vow+1;

} else {

con=con+1; }}

printf("The total number of vowels in %s is %d. \n",name,vow);

printf("The total number of consonants in %s is %d. \n",name,con);

break;

case 5:

9|Page
int matrix1[3][3], matrix2[3][3], sum[3][3],i,j;

printf("Enter the elements of first matrix:\n");

for (i = 0; i < 3; i++) {

for (j = 0; j < 3; j++) {

printf("Enter the elements of [%d][%d]:\t",i,j);

scanf("%d", &matrix1[i][j]); }}

printf("Enter the elements of second matrix:\n");

for (i = 0; i < 3; i++) {

for (j = 0; j < 3; j++) {

printf("Enter the elements of [%d][%d]:\t",i,j);

scanf("%d", &matrix2[i][j]); }}

for (i = 0; i < 3; i++) {

for (j = 0; j < 3; j++) {

sum[i][j] = matrix1[i][j] + matrix2[i][j]; }}

printf("\nSum of matrices is:\n");

for (i = 0; i < 3; i++) {

for (j = 0; j < 3; j++) {

printf("%d ", sum[i][j]); }

printf("\n");}

default:

printf("Your selection is wrong!!");

printf(“If you want to continue press ‘1’ ”);

scanf(“%d”,&option);

if(option==1) goto xyz;

break;

} }

10 | P a g e
System Testing
Output Screen:

Case 1:

Case 2:

Case 3:

11 | P a g e
Case 4:

Case 5:

Default:

12 | P a g e
System Implementation:
Systems implementation is the process of
defining how the information system should
be built (i.e., physical system design),
ensuring that the information system is
operational and used, ensuring that the
information system meets quality standard
(i.e., quality assurance).

References:
 Computer Science Grade XI-Advance Saraswati’s
Publication
 www.google.com

13 | P a g e

You might also like