UNIT 1 UNIT 2 UNIT 3 UNIT 4 UNIT 5 UNIT 6 UNIT 7 UNIT 8
Home Online Quiz Lab Programs Previous Questions Resources Glossary Syllabus Faculty Team

Latest News

Lesson PPTs have been uploaded to Resources Section.


Teaching material,Tutorials and Practice problems of all UNIT's are added.


ebooks have been uploaded to Resources Section.


LAB PROGRAMS

Week-wise Lab Programs:

Week 1
Week 2
Week 3
Week 4
Week 5
Week 6
Week 7
Week 8
Week 9
Week 10
Week 11
Week 12
Week 13
Week 14
Week 15
Week 16
Week 17
Week 18
Week 19
Week 20
Week 21
Week 22
Week 23
Week 24


WEEK 1


  1. Write a C program to find the sum of individual digits of a positive integer.
  2. A Fibonacci Sequence is defined as follows: the first and second terms in the sequence are 0 and 1. Subsequent terms are found by adding the preceding two terms in the sequence. Write a C program to generate the first n terms of the sequence.
  3. Write a C program to generate all the prime numbers between 1 and n, where n is a value supplied by the user.

TOP


WEEK 2


  1. Write a C program to calculate the following Sum:
    Sum=1-x2/2! +x4/4!-x6/6!+x8/8!-x10/10!
  2. Write a C program to find the roots of a quadratic equation.

TOP


WEEK 3


  1. Write C programs that use both recursive and non-recursive functions
    1. To find the factorial of a given integer.
    2. To find the GCD (greatest common divisor) of two given integers.
    3. To solve Towers of Hanoi problem.

TOP


WEEK 4


  1. The total distance travelled by vehicle in 't' seconds is given by distance= ut+1/2at2 where 'u' and 'a' are the initial velocity (m/sec.) and acceleration (m/sec2). Write C program to find the distance travelled at regular intervals of time given the values of 'u' and 'a'. The program should provide the flexibility to the user to select his own time intervals and repeat the calculations for different values of 'u' and 'a'.
  2. Write a C program, which takes two integer operands and one operator form the user, performs the operation and then prints the result. (Consider the operators +,-,*, /, % and use Switch Statement)

TOP


WEEK 5


  1. Write a C program to find both the largest and smallest number in a list of integers.
  2. Write a C program that uses functions to perform the following:
    1. Addition of Two Matrices.
    2. Multiplication of Two Matrices.

TOP


WEEK 6


  1. Write a C program that uses functions to perform the following operations:
    1. To insert a sub-string in to given main string from a given position.
    2. To delete n Characters from a given position in a given string.
  2. Write a C program to determine if the given string is a palindrome or not.

TOP


WEEK 7


  1. Write a C program that displays the position or index in the string S where the string T begins, or -1 if S doesn't contain T.
  2. Write a C program to count the lines, words and characters in a given text.

TOP


WEEK 8


  1. Write a C program to generate Pascal's triangle.
  2. Write a C program to construct a pyramid of numbers.

TOP


WEEK 9


  1. Write a C program to read in two numbers, x and n, and then compute the sum of this geometric progression:

    1+x+x2+x3+................+xn

    For example: if n is 3 and x is 5, then the program computes 1+5+25+125.
    Print x, n, the sum
    Perform error checking. For example, the formula does not make sense for negative exponents - if n is less than 0. Have your program print an error message if n<0, then go back and read in the next pair of numbers of without computing the sum. Are any values of x also illegal ? If so, test for them too.

TOP


WEEK 10


  1. 2's complement of a number is obtained by scanning it from right to left and complementing all the bits after the first appearance of a 1. Thus 2's complement of 11100 is 00100. Write a C program to find the 2's complement of a binary number.
  2. Write a C program to convert a Roman numeral to its decimal equivalent.

TOP


WEEK 11


  1. Write a C program that uses functions to perform the following operations:
    1. Reading a complex number
    2. Writing a complex number
    3. Addition of two complex numbers
    4. Multiplication of two complex numbers
    (Note: represent complex number using a structure.)

TOP


WEEK 12


  1. Write a C program which copies one file to another.
  2. Write a C program to reverse the first n characters in a file.
    (Note: The file name and n are specified on the command line.)

TOP


WEEK 13


  1. Write a C program that uses functions to perform the following operations on singly linked list.:
    1. Creation
    2. Insertion
    3. Deletion
    4. Traversal

TOP


WEEK 14


  1. Write a C program that uses functions to perform the following operations on doubly linked list.:
    1. Creation
    2. Insertion
    3. Deletion
    4. Traversal in both ways

TOP


WEEK 15


  1. Write C programs that implement Stack (its operations) using
    1. Arrays
    2. Pointers

TOP


WEEK 16


  1. Write C programs that implement Queue (its operations) using
    1. Arrays
    2. Pointers

TOP


WEEK 17


  1. Write a C program that uses Stack operations to perform the following:
    1. Converting infix expression into postfix expression
    2. Evaluating the postfix expression

TOP


WEEK 18


  1. Write a C program that uses functions to perform the following:
    1. Creating a Binary Tree of integers
    2. Traversing the above binary tree in preorder, inorder and postorder.

TOP


WEEK 19


  1. Write C programs that use both recursive and non recursive functions to perform the following searching operations for a Key value in a given list of integers :
    1. Linear Search
    2. Binary Search

TOP


WEEK 20


  1. Write C programs that implement the following sorting methods to sort a given list of integers in ascending order:
    1. Bubble Sort
    2. Quick Sort

TOP


WEEK 21


  1. Write C programs that implement the following sorting methods to sort a given list of integers in ascending order:
    1. Insertion Sort
    2. Merge Sort.

TOP


WEEK 22


  1. Write C programs to implement the Lagrange interpolation and Newton- Gregory forward interpolation.

TOP


WEEK 23


  1. Write C programs to implement the linear regression and polynomial regression algorithms.

TOP


WEEK 24


  1. Write C programs to implement Trapezoidal and Simpson methods.

TOP













Copyright (c) Aditya Engineering Colleges, Surampalem. All rights reserved.
Development Team