0% found this document useful (0 votes)
75 views

Course - CS 120 Computer Programming Lab

The document outlines the cycles of experiments for a Computer Programming Lab course. The cycles cover topics like decision making, branching and looping, arrays and strings, functions, structures and unions, pointers, and files. Some example experiments listed include determining if a number is odd or even, calculating the Fibonacci series, performing linear and binary searches on arrays, adding and sorting matrices, evaluating exponential and sine series using functions, generating a student ranklist using structures, and merging text files.

Uploaded by

Indu Krishnan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

Course - CS 120 Computer Programming Lab

The document outlines the cycles of experiments for a Computer Programming Lab course. The cycles cover topics like decision making, branching and looping, arrays and strings, functions, structures and unions, pointers, and files. Some example experiments listed include determining if a number is odd or even, calculating the Fibonacci series, performing linear and binary searches on arrays, adding and sorting matrices, evaluating exponential and sine series using functions, generating a student ranklist using structures, and merging text files.

Uploaded by

Indu Krishnan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

AMARTHYA VISHNU V1822

Search courses

 HOME

Home    ACADEMIC    2018 ­ 2022 Batch    Batch A    Semester II    18_CS120

Announcements

SYLLABUS

CS120 Computer Programming Lab

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, 2­Monday ­­­­­­­­7­Saturday. (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)

You might also like