Implement the class "complex" for performing arithmetic with complex numbers.
Implement a class "rational" for performing arithmetic operations with fractions.
Implement a class "Huge" integer for performing addition and subtraction of huge integers.
Write a program to simulate the Bank Account that allows operations like deposit, withdrawal, interest computation & showing current balance. Create a new account with opening balance as specified by bank. Compute interest on the minimum balance available in the account between 10th and the last day of every month. Don't allow the users of the class to manipulate the balance and minimum balance directly.
Define a class "Set" and write a program to implement the various set operations like insert, union, intersection, difference and complement.
Implement the above programs using Operator Overloading.
Implement a "String" class and write a program that reads set of strings, print them, sort them, print the sorted list, print the duplicates, print the frequency of each alphabet in all the names, print all substrings of each name (Use Operator Overloading).
Implement a C++ program consisting of Two base classes and One derived class. The base class BASIC_INFO contains the data members Name, Roll_no, and Sex. An another base class ACADEMIC_FIT contains the data members Course, Semester and Rank. The derived class FINANCIAL_ASSIT contains the data member Amount decides the data members of the base classes. The derived class has been declared as an array of class objects. The member functions are used to get information of the derived class from the keyboard and display the contents of the array of the class objects on the screen.
Write a c++ program to implement the above multipath inheritance, declaring the base class (i.e. Student) as virtual. Take functions as get_data () and put_data () and data members as required.
Create a class "Shape" Use this class to store two double type values that could be used to compute the area of figures. Derive three specific classes called triangle, rectangle and circle from the base class Shape. Add to the base class, a member function get_data() to initialize base class data members and another member function display_area() to compute and display the area of figures. Make display_area() as virtual function and redefine this function in the derived classes to suit their requirements.
Write a c++ program to read a set of numbers upto N, where N is defined by the user and print the contents of the array in the reverse order using class templates.
Write a c++ program to perform the following using the function template concepts:
to read set of integers
to read set of floating point numbers
to read set of double numbers individually
Find out the average of the non-negative numbers and also calculate the deviation of the numbers separately.
Implement "Vector" class Template along with exception handling and write a function template to sort elements in the Vector.
Implement a C++ program to define two classes. The base class FATHER and the derived class SON, having a protected data member of F_Age and S_Age respectively, and defining parameterized constructor in which you have to throw an exception based on the condition that F_Age > S_Age. Handle the exceptions for both the classes separately in main function. Use base class pointer variable to handle the functions of both the classes.
Implement a C++ program to read an array of class object of student_info such as name, age, sex, height and weight from the keyboard and to store them on a specified file using read() and write() functions. Again, the same file is opened for reading and displaying the contents of the file on the screen.