CSE101L Cyclesheets

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

VIT

UNIVERSITY
(Estd. u/s 3 of UGC Act 1956)
Vellore - 632 014, Tamil Nadu, India

School of Computing Science and Engineering

COMMON TO SCSE/SBST/SENSE/SELECT FIRST SEMESTER B.TECH


Course code: CSE101L-Computer Programming and Problem Solving Lab

CYCLE SHEET-1
(Date of Completion 20-8-2010)
Unit -II

1. Simple programs using I/O functions


a. To display “ VIT University “(Hint : Use printf statement)
b. To read two numbers and display the result of addition.
c. To perform arithmetic operations with a given set of numbers.
d. To find the sum and average of marks of 5 subjects.
e. To swap the values of 2 variables.
f. To display multiple lines using a single printf statement for using escape
sequences
2. Simple Arithmetic Operations
a. Write a ‘C’ program to compute area of circle.
b. Write a ‘C’ program to compute convert data from one form to other(Kilometer
to Meter, Fahrenheit to Celsius)
c. Write a ‘C’ program to swap two numbers without using third variable.
d. Program using Control structures the entered number is even or odd.
e. Checking whether a given year is leap year or not.
3. Programs using Control Structures.
a. Write a ‘C’ program to check whether the greatest number among the given three
numbers.
b. Write a ‘C’ program to calculate energy bill. Reading the Staring and ending
meter and charges are given below :
S.No No.of.Units Consumed Rate in (Rs.)
1 200-500 3.50
2 100-200 2.50
3 Less than 100 1.50
4 Greater than 500 5.00
c. Write a menu driven ‘C’ program to perform various arithmetic operations. (Hint
: Addition , Subtraction ,Multiplication & Division)
d. Write a ‘C’ program to evaluate the series: S = 1+1+1+1+1+….+N terms
e. Write a ‘C’ program to compute the sum of the series S = 1+2+3+4+…+N
f. Write a ‘C’ program to print Multiplication table
g. Write a ‘C’ program to print Fibonacci series
h. Write a ‘C’ program to check for Prime numbers
i. Write a ‘C’ program to check whether a number is Armstrong number, Perfect
number, Perfect square using switch case. (
j. Write a ‘C’ program to solve the series S = -1+3-11+43-171+….
k. Write a ‘C’ program to find sum of digits of an integer upto a single digit.
l. Write a ‘C’ program to convert decimal number into binary number.
m. Write a ‘C’ program to count numbers between 1 to 100 not divisible by 2, 3 and
5.
n. Write a ‘C’ program to compute the factorial of given number using do while
loop.
o. Write a ‘C’ program to compute summation sine series.
p. Write a ‘C’ program to display the series of number s as given below
1
21
321
4321
4321
321
21
1
CYCLE SHEET-2
(Date of Completion 24-9-2010)
Unit-III
ONE DIMENSIONAL ARRAY
1. Write a ‘C’ program to compute the sum and average of n numbers. (Hint : Use
single dimensional array for getting input)
2. Read an array of integers and search whether a given element is present or not and
also display the number of occurrences and position.
3. Write a ‘C’ program to read ‘n’ elements in an array and sort the numbers in an
array in descending order.
4. Write a ‘C’ program to find the kth smallest and k th largest element in an array.
5. Write a ‘C’ program to remove all duplicates from an ordered array.
6. C program to take inputs to an array by avoiding duplicates.
7. Write a ‘C’ program to array ordered reversal.
8. Write a ‘C’ program to partitioning array.

TWO DIMENSIONAL ARRAY


1. Write a ‘C’ program to find the sum of diagonal elements in a given a matrix.
2. Write a ‘C’ program to find transpose of a matrix.
3. Write a ‘C’ program to perform matrix operations(Addition, Subtraction,
Multiplication)
STRINGS
1. Write a ‘C’ program to count number of vowels, blank spaces and upper case
letters.
2. Write a ‘C’ program to read and sort the names in an array in ascending order.
3. Write a ‘C’ program to check the given string is a palindrome or not.
CYCLE SHEET-3
(Date of Completion 12-11-2010)
Unit –IV

1. Write a ‘C’ program to compute simple interest using various function prototypes.
2. Write a ‘C’ program for swapping of two numbers.
a. Call by value
b. Call by reference
3. Write a ‘C’ program to compute factorial of n numbers using recursive function.
Any program in the cycle sheet I & II can be implemented using function.
[Note * it is not compulsory for other school (SBST ,SELECT,SENSE)]

Unit –V
1. Write a ‘C’ program to store ‘n’ different book details using structures. Write the code to
search for the given author or book.
2.
a. Write a C program to store ‘n’ of student using structures.
b. Read three subject marks (M1.M2, M3) for the student, then calculate total mark and
average mark of each student.
c. Display the details of student who scored highest average mark (Hint : Details should have
following fields Reg No, Name, M1, M2, M3, Total and Average )
d. Display the details of student who scored highest mark in M2 (Hint : Details should have
following fields Reg No, Name, M1, M2, M3, Total and Average )
e. Display the details of student who scored lowest mark in M3 (Hint : Details should have
following fields Reg No, Name, M1, M2, M3, Total and Average )
f. Display the class average mark of each subject(Hint : Display the subject name and class
average mark)

PROGRAM MANGER(B.Tech-CSE) LAB COURSE CO-ORDINATORS


Dr.S.Margret Anouncia

You might also like