The complex ADT is used to represent complex numbers of the form c=a+ib, where a and b are real numbers. Implement the complex number ADT in C++ using a class.
The operations supported by this ADT are:ġ2.Implement the matrix ADT presented in the problem-11 using overloaded operators (>, +, -, *) and templates.ġ3. 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.ġ0.Write a C++ program to sort a list of names in ascending order.ġ1.Write a C++ program to implement the matrix ADT using a class. To find the factorial of a given integer.ĥ.Write a C++ program that uses a recursive function for solving Towers of Hanoi problem.Ħ.Write a C++ program that uses functionsĬ) To swap two reals. 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
1.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 and 1.Subsequent terms are found by adding the preceding two terms in the sequence.