Course - CS 120 Computer Programming Lab
Course - CS 120 Computer Programming Lab
Search courses
HOME
Announcements
SYLLABUS
CYCLE OF EXPERIMENTS
CYCLE 1
Decision making, Branching and Looping
1. Number is odd or even (if else)
2. Roots of a Quadratic Equation (else if ladder)
3. Print the day of a week depending on the given number between 1 and 7, Assume 1 Sunday, 2Monday 7Saturday. (Using
switch)
4. Reverse of a number (using goto)
5. Fibonacci Series (using for)
6. Strong number or not
7. Perfect numbers between 2 and 100
8. Print patterns
CYCLE II
ARRAYS and STRINGS
1. Linear Search
2. Insertion and Deletion from an Array (Menu driven)
3. Binary Search
3. Bubble Sort
4. Matrix Addition, Subtraction, Multiplication and Transpose (Menu driven)
5. Operations on Strings (With String handling Functions)
6. Operations on Strings (Without String handling Functions)
7. Sorting of Names (Selection Sort)
CYCLE III
FUNCTIONS
2 3
1. Evaluate Exponential Series (1 + x + (x / 2!) + (x / 3!) + ….)
2. Evaluate Sine Series (x (x3 / 3!) + (x5 / 5!) …….)
3. LCM and GCD of two numbers (Using Recursion)
4. Reverse of an Integer Array (By passing Array to a Function)
5. Replace a character with another character in a String (By passing String to a Function)
CYCLE IV
STRUCTURES AND UNIONS
1. Ranklist of Students
2. Salary Sheet of Employees (Using Functions)
3. Book details in a Library
CYCLE V
POINTERS
1. Swap two numbers (Using Function)
2. Largest value in an array
3. Generate Electricity Bill (Using Structure)
CYCLE VI
FILES
1. Merge two text files.
2. Read time and display greetings according to time.
3. Sort a list of names (Using array of pointers)