- Write a C++ program to find the sum of individual digits of a positive integer.
- 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.
- Write a C++ program to generate all the prime numbers between 1 and n ,where n is a value supplied by the user.
- 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. - Write a C++ program that uses a recursive function for solving Towers of Hanoi problem.
- 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.
- Write a C++ program to find both the largest and smallest number in a list of integers.
- Write a C++ program to sort a list of numbers in ascending order.
- Write a C++ program that uses function templates to solve problems-7&8.
- Write a C++ program to sort a list of names in ascending order.
- 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. - Implement the matrix ADT presented in the problem-11 using overloaded operators
(<<, >>, +, *) and templates.
To help all of my juniors to improve their knowledge in cpp(C++). My main intention is to make all my Juniors to feel free with Programming language. Especially for those who are not from computers background .
Friday, 12 July 2013
List of Programs According to the Core Structure (Syllabus of JNTU)
Subscribe to:
Posts (Atom)