Академический Документы
Профессиональный Документы
Культура Документы
UNIVERSITY
(Estd. u/s 3 of UGC Act 1956)
Vellore - 632 014, Tamil Nadu, India
School of Information Technology and Engineering
Lab Exercises
CYCLE SHEET - II
Semester : First
ARRAYS
1) Read values into an one dimensional array and compute the sum of
their squares.
2) Enter elements into an array and reverse the order of the elements
in the array.
3) Read elements into an array. Write a Program to find duplicate
elements in the array and display the resultant array by removing
the duplicates.
4) Read n elements into an array. Compute the following searching
methods:
a. Linear Search
b. Binary Search
5) Read n elements into an array and perform the following Sorting
methods:
a. Bubble Sort
b. Insertion Sort
c. Selection Sort
6) Read a line of text into a character array and perform the following
operation:
a. Count the number of Upper case , Lower case, digits and
special characters.
b. Convert Upper case to Lower case and vice versa without
using string library functions.
c. Count the number of words, lines and characters in a given
text.
7) Write a program to copy m consecutive characters from String S1
beginning at position n into another string S2.
8) Read Two Matrix A and B. Compute the Matrix Addition and display
the resultant matrix.
9) Read Two Matrix A and B. Compute the Matrix Multiplication and
display the resultant matrix.
10) Read a Matrix A of size m * n and compute its transpose and
display the result.
11) Write a program to read in an array of names and sort them
in alphabetical order and display the result.
12) The Examination results of n students are tabulated as
follows:
-------------------------------------------------------------------------------
Register No | Subject1 | Subject2 | Subject3
-------------------------------------------------------------------------------
. | | |
. | | |
. | | |
-------------------------------------------------------------------------------
Functions
Structures
Calculate Bill Amount, which is Rent of Rs. 250 plus Re 0.80 for each
unit. Prepare the Bill and print it.
19) Design a structure student_record to contain name, date of
birth and total marks obtained.
Define a structure data type date containing three integer
members namely day, month and year to represent the date of birth.
Develop a program to read data for 10 students in a class and list
them rank-wise.
File Handling
Pointers
23) Write a C Program to perform arithmetic operation and
display the results along with its address.
24) Read two strings and perform string concatenation using
pointers.
25) Perform swapping of two numbers using call by reference
method.
********************