SlideShare a Scribd company logo
29
CS8261 C PROGRAMMING LABORATORY L T P C
0 0 4 2
OBJECTIVES:
 To develop programs in C using basic constructs.
 To develop applications in C using strings, pointers, functions, structures.
 To develop applications in C using file processing.
LIST OF EXPERIMENTS:
1. Programs using I/O statements and expressions.
2. Programs using decision-making constructs.
3. Write a program to find whether the given year is leap year or Not? (Hint: not every centurion
year is a leap. For example 1700, 1800 and 1900 is not a leap year)
4. Design a calculator to perform the operations, namely, addition, subtraction, multiplication,
division and square of a number.
5. Check whether a given number is Armstrong number or not?
6. Given a set of numbers like <10, 36, 54, 89, 12, 27>, find sum of weights based on the
following conditions.
 5 if it is a perfect cube.
 4 if it is a multiple of 4 and divisible by 6.
 3 if it is a prime number.
Sort the numbers based on the weight in the increasing order as shown below
<10,its weight>,<36,its weight><89,its weight>
7. Populate an array with height of persons and find how many persons are above the average
height.
8. Populate a two dimensional array with height and weight of persons and compute the Body
Mass Index of the individuals.
9. Given a string ―a$bcd./fg‖ find its reverse without changing the position of special characters.
(Example input:a@gh%;j and output:j@hg%;a)
10. Convert the given decimal number into binary, octal and hexadecimal numbers using user
defined functions.
11. From a given paragraph perform the following using built-in functions:
a. Find the total number of words.
b. Capitalize the first word of each sentence.
c. Replace a given word with another word.
12. Solve towers of Hanoi using recursion.
13. Sort the list of numbers using pass by reference.
14. Generate salary slip of employees using structures and pointers.
15. Compute internal marks of students for five different subjects using structures and functions.
16. Insert, update, delete and append telephone details of an individual or a company into a
telephone directory using random access file.
17. Count the number of account holders whose balance is less than the minimum balance using
sequential access file.
Mini project
18. Create a ―Railway reservation system‖ with the following modules
 Booking
 Availability checking
 Cancellation
 Prepare chart
TOTAL: 60 PERIODS

More Related Content

What's hot (20)

DOC
C program to add two numbers
mohdshanu
 
PPTX
CS151 Functions lecture
Rudy Martinez
 
PDF
Calculus of variations
effectivelearning
 
DOC
Comp 122 lab 3 lab report and source code
pradesigali1
 
PPTX
CSC – 184 Programming C
ABIR A HAPZU
 
PPTX
Operations research
geethannadurai
 
PDF
Write declarations for each of the following variables: a. amounts is a...
licservernoida
 
PPT
Core 3 Functions 2
davidmiles100
 
PDF
PROPERTIES OF ARITHMETIC OPERATIONS
maryjoy61828
 
PDF
Pcd201516
sheikhmoidin
 
PPTX
Sequential circuit multiplier
Subhram
 
PDF
Functions in Economics Part-I.pdf
Dr. Subhash Unhale
 
PDF
Functions in Economics Part II.pdf
Dr. Subhash Unhale
 
DOCX
New microsoft office word document (2)
Thirupathinaidu Kakumani
 
PPTX
Sequential multiplication
Taqwa It Center
 
DOCX
c++ Question
Hamza4467
 
PDF
Test solutions of computer languages
manish katara
 
PPTX
Operator in c
ankush9927
 
PPT
C your C
Sabith Byari
 
PDF
[Question Paper] Introduction To C++ Programming (Revised Course) [January / ...
Mumbai B.Sc.IT Study
 
C program to add two numbers
mohdshanu
 
CS151 Functions lecture
Rudy Martinez
 
Calculus of variations
effectivelearning
 
Comp 122 lab 3 lab report and source code
pradesigali1
 
CSC – 184 Programming C
ABIR A HAPZU
 
Operations research
geethannadurai
 
Write declarations for each of the following variables: a. amounts is a...
licservernoida
 
Core 3 Functions 2
davidmiles100
 
PROPERTIES OF ARITHMETIC OPERATIONS
maryjoy61828
 
Pcd201516
sheikhmoidin
 
Sequential circuit multiplier
Subhram
 
Functions in Economics Part-I.pdf
Dr. Subhash Unhale
 
Functions in Economics Part II.pdf
Dr. Subhash Unhale
 
New microsoft office word document (2)
Thirupathinaidu Kakumani
 
Sequential multiplication
Taqwa It Center
 
c++ Question
Hamza4467
 
Test solutions of computer languages
manish katara
 
Operator in c
ankush9927
 
C your C
Sabith Byari
 
[Question Paper] Introduction To C++ Programming (Revised Course) [January / ...
Mumbai B.Sc.IT Study
 

Similar to Cs8261 cp lab syllabus (20)

PDF
I PUC CS Lab_programs
Prof. Dr. K. Adisesha
 
DOCX
JAVA practical Exam Questions (1).docx
Lucky Ally
 
PPT
C-Programming Fundamentals of C (1).ppt
ssuserc13e6a
 
PPT
C-Programming Chapter 1 Fundamentals of C.ppt
NagarathnaRajur2
 
PPT
C-Programming Chapter 1 Fundamentals of C.ppt
NagarathnaRajur2
 
PPT
C-Programming Chapter 1 Fundamentals of C.ppt
Mehul Desai
 
PDF
Mmt 001
sujatam8
 
PPTX
C programming assignment presentation file
santoshkumarhpu
 
DOCX
Chapter 8Exercise1.Design an application that accept.docx
tiffanyd4
 
DOCX
C_Lab Manual_Part A.docx
Pandiya Rajan
 
PDF
c++ referesher 1.pdf
AnkurSingh656748
 
PDF
C - Programming Assignment 1 and 2
Animesh Chaturvedi
 
DOCX
Sample Lab Manual Word Edited aaaaaaaaaaaaaaa
XEON14
 
PDF
C++ Lab Maual.pdf
Thejeswara Reddy
 
PDF
C++ Lab Maual.pdf
ShivamParjapati2
 
RTF
Cse cpl manual-2016
Rajendra khatana
 
PDF
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
ANJALAI AMMAL MAHALINGAM ENGINEERING COLLEGE
 
PPTX
C and C++ programming basics for Beginners.pptx
renuvprajapati
 
DOCX
EN3085 Assessed Coursework 1 1. Create a class Complex .docx
gidmanmary
 
I PUC CS Lab_programs
Prof. Dr. K. Adisesha
 
JAVA practical Exam Questions (1).docx
Lucky Ally
 
C-Programming Fundamentals of C (1).ppt
ssuserc13e6a
 
C-Programming Chapter 1 Fundamentals of C.ppt
NagarathnaRajur2
 
C-Programming Chapter 1 Fundamentals of C.ppt
NagarathnaRajur2
 
C-Programming Chapter 1 Fundamentals of C.ppt
Mehul Desai
 
Mmt 001
sujatam8
 
C programming assignment presentation file
santoshkumarhpu
 
Chapter 8Exercise1.Design an application that accept.docx
tiffanyd4
 
C_Lab Manual_Part A.docx
Pandiya Rajan
 
c++ referesher 1.pdf
AnkurSingh656748
 
C - Programming Assignment 1 and 2
Animesh Chaturvedi
 
Sample Lab Manual Word Edited aaaaaaaaaaaaaaa
XEON14
 
C++ Lab Maual.pdf
Thejeswara Reddy
 
C++ Lab Maual.pdf
ShivamParjapati2
 
Cse cpl manual-2016
Rajendra khatana
 
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
ANJALAI AMMAL MAHALINGAM ENGINEERING COLLEGE
 
C and C++ programming basics for Beginners.pptx
renuvprajapati
 
EN3085 Assessed Coursework 1 1. Create a class Complex .docx
gidmanmary
 
Ad

Recently uploaded (20)

PDF
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
PDF
Tesia Dobrydnia - An Avid Hiker And Backpacker
Tesia Dobrydnia
 
PDF
Python Mini Project: Command-Line Quiz Game for School/College Students
MPREETHI7
 
PPTX
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
PPT
FINAL plumbing code for board exam passer
MattKristopherDiaz
 
PDF
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
PDF
CLIP_Internals_and_Architecture.pdf sdvsdv sdv
JoseLuisCahuanaRamos3
 
PDF
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
PDF
Authentication Devices in Fog-mobile Edge Computing Environments through a Wi...
ijujournal
 
PPT
SF 9_Unit 1.ppt software engineering ppt
AmarrKannthh
 
PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
PPTX
CST413 KTU S7 CSE Machine Learning Neural Networks and Support Vector Machine...
resming1
 
PDF
How to Buy Verified CashApp Accounts IN 2025
Buy Verified CashApp Accounts
 
PDF
Decision support system in machine learning models for a face recognition-bas...
TELKOMNIKA JOURNAL
 
DOCX
Engineering Geology Field Report to Malekhu .docx
justprashant567
 
PDF
LLC CM NCP1399 SIMPLIS MODEL MANUAL.PDF
ssuser1be9ce
 
PPT
دراسة حاله لقرية تقع في جنوب غرب السودان
محمد قصص فتوتة
 
PDF
June 2025 - Top 10 Read Articles in Network Security and Its Applications
IJNSA Journal
 
PDF
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
PDF
PRIZ Academy - Process functional modelling
PRIZ Guru
 
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
Tesia Dobrydnia - An Avid Hiker And Backpacker
Tesia Dobrydnia
 
Python Mini Project: Command-Line Quiz Game for School/College Students
MPREETHI7
 
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
FINAL plumbing code for board exam passer
MattKristopherDiaz
 
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
CLIP_Internals_and_Architecture.pdf sdvsdv sdv
JoseLuisCahuanaRamos3
 
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
Authentication Devices in Fog-mobile Edge Computing Environments through a Wi...
ijujournal
 
SF 9_Unit 1.ppt software engineering ppt
AmarrKannthh
 
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
CST413 KTU S7 CSE Machine Learning Neural Networks and Support Vector Machine...
resming1
 
How to Buy Verified CashApp Accounts IN 2025
Buy Verified CashApp Accounts
 
Decision support system in machine learning models for a face recognition-bas...
TELKOMNIKA JOURNAL
 
Engineering Geology Field Report to Malekhu .docx
justprashant567
 
LLC CM NCP1399 SIMPLIS MODEL MANUAL.PDF
ssuser1be9ce
 
دراسة حاله لقرية تقع في جنوب غرب السودان
محمد قصص فتوتة
 
June 2025 - Top 10 Read Articles in Network Security and Its Applications
IJNSA Journal
 
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
PRIZ Academy - Process functional modelling
PRIZ Guru
 
Ad

Cs8261 cp lab syllabus

  • 1. 29 CS8261 C PROGRAMMING LABORATORY L T P C 0 0 4 2 OBJECTIVES:  To develop programs in C using basic constructs.  To develop applications in C using strings, pointers, functions, structures.  To develop applications in C using file processing. LIST OF EXPERIMENTS: 1. Programs using I/O statements and expressions. 2. Programs using decision-making constructs. 3. Write a program to find whether the given year is leap year or Not? (Hint: not every centurion year is a leap. For example 1700, 1800 and 1900 is not a leap year) 4. Design a calculator to perform the operations, namely, addition, subtraction, multiplication, division and square of a number. 5. Check whether a given number is Armstrong number or not? 6. Given a set of numbers like <10, 36, 54, 89, 12, 27>, find sum of weights based on the following conditions.  5 if it is a perfect cube.  4 if it is a multiple of 4 and divisible by 6.  3 if it is a prime number. Sort the numbers based on the weight in the increasing order as shown below <10,its weight>,<36,its weight><89,its weight> 7. Populate an array with height of persons and find how many persons are above the average height. 8. Populate a two dimensional array with height and weight of persons and compute the Body Mass Index of the individuals. 9. Given a string ―a$bcd./fg‖ find its reverse without changing the position of special characters. (Example input:a@gh%;j and output:j@hg%;a) 10. Convert the given decimal number into binary, octal and hexadecimal numbers using user defined functions. 11. From a given paragraph perform the following using built-in functions: a. Find the total number of words. b. Capitalize the first word of each sentence. c. Replace a given word with another word. 12. Solve towers of Hanoi using recursion. 13. Sort the list of numbers using pass by reference. 14. Generate salary slip of employees using structures and pointers. 15. Compute internal marks of students for five different subjects using structures and functions. 16. Insert, update, delete and append telephone details of an individual or a company into a telephone directory using random access file. 17. Count the number of account holders whose balance is less than the minimum balance using sequential access file. Mini project 18. Create a ―Railway reservation system‖ with the following modules  Booking  Availability checking  Cancellation  Prepare chart TOTAL: 60 PERIODS