Friday, 12 July 2013

List of Programs According to the Core Structure (Syllabus of JNTU)

  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 and1.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.
  4. Write C++ programs that use both recursive and non-recursive functions
    a) To find the factorial of a given integer.
    b) To find the GCD of two given integers.
    c) To find the nth Fibonacci number.
  5. Write a C++ program that uses a recursive function for solving Towers of Hanoi problem.
     
  6. Write a C++ program that uses functions
    a) To swap two integers.
    b) To swap two characters.
    c) To swap two reals.
    Note: Use overloaded functions.

     
  7. Write a C++ program to find both the largest and smallest number in a list of integers.
  8. Write a C++ program to sort a list of numbers in ascending order. 
  9. Write a C++ program that uses function templates to solve problems-7&8.
  10. Write a C++ program to sort a list of names in ascending order.
  11. Write a C++ program to implement the matrix ADT using a class. The operations
    supported by this ADT are:
    a) Reading a matrix.                        c) Addition of two matrices.
    b)Printing a matrix.                         d)Multiplication of two matrices.
  12. Implement the matrix ADT presented in the problem-11 using overloaded operators
    (<<, >>, +, *) and templates.

No comments:

Post a Comment