0% found this document useful (0 votes)
63 views143 pages

Cs Lab Practical

This document is a record of programming experiments submitted by Shameidha M.S. for their CS202 Programming Laboratory course. It contains a table of contents listing 10 experiments conducted between July 2020-September 2021. Each experiment involves programs on topics like basic C, branching statements, control structures, arrays, functions, strings, structures, pointers, and file operations. A bonafide certificate verifies this is a genuine record of practical work completed by the student.

Uploaded by

Imchaul
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)
63 views143 pages

Cs Lab Practical

This document is a record of programming experiments submitted by Shameidha M.S. for their CS202 Programming Laboratory course. It contains a table of contents listing 10 experiments conducted between July 2020-September 2021. Each experiment involves programs on topics like basic C, branching statements, control structures, arrays, functions, strings, structures, pointers, and file operations. A bonafide certificate verifies this is a genuine record of practical work completed by the student.

Uploaded by

Imchaul
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

DEPARTMENT OF COMPUTER SCIENCE AND

ENGINEERING

PUDUCHERRY TECHNOLOGICAL UNIVERSITY


PUDUCHERRY – 605014

B.TECH – II SEMESTER
RECORD FOR

CS202 PROGRAMMING LABORATORY

SUBMITTED BY: SHAMEIDHA M.S

REGISTER NUMBER: 20CS1104

SUBMITTED TO

PUDUCHERRY TECHNOLOGICAL UNIVERSITY


PUDUCHERRY – 605 014
JUNE 2021

1
PUDUCHERRY TECHNOLOGICAL UNIVERSITY
PUDUCHERRY – 605 014.

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

BONAFIDE CERTIFICATE

Certified that this is a bonafide record of practical work done by


SHAMEIDHA M.S FIRST YEAR in SECOND SEMESTER B.Tech class COMPUTER

SCIENCE ENGINEERING Department in the CS202 Programming laboratory

during the year 2020-21.

Staff in Charge Head of the Department

Submitted for the University Examination held on

Internal Examiner External Examiner

2
TABLE OF CONTENTS

S.NO DATE NAME OF THE EXERCISE/ EXPERIMENT PAGE.NO REMARKS

1 10.7.2021 Study of compilation and execution of simple


1
programs
2 10.7.2021 Basic C Programs
a. Arithmetic Operations 4
b. Area and Circumference of a circle 8
c. Swapping with and without Temporary Variables
12
3 17.7.2021 Programs using Branching statements
a. To check the number as Odd or Even 20
b. Greatest of Three Numbers 24
c. Counting Vowels 28
d. Grading based on Student’s Mark 32
4 24.7.2021 Programs using Control Structures
a. Computing Factorial of a number 36
b. Fibonacci Series generation 40
c. Prime Number Checking 44
d. Computing Sum of Digit 48
5 31.7.2021 Programs using Arrays
a. Sum of ‘n’ numbers 52
b. Sorting an Array 56
c. Matrix Addition, Subtraction, Multiplication and
60
Transpose
6 7.8.2021 Programs using Functions
a. Computing nCr 68
b. Factorial using Recursion 72
c. Call by Value and Call by Reference 76
7 14.8.2021 Programs using String Operations
a. Palindrome Checking 84
b. Searching and Sorting Names 89
8 21.8.2021 Programs using Structure
a. Student Information System 94
b. Employee Pay Slip Generation 100
c. Electricity Bill Generation 105
9 28.8.2021 Programs using Pointers
a. Pointer and Array 111
b. Pointers as argument and return value 115
c. Pointer and Structure 123
10 4.9.2021 Programs using File Operation
a. Counting No. of Lines, Characters and Blank Spaces
127
b. Content copy from one file to another 131
c. Reading and Writing Data in File 135

You might also like