The document discusses various C++ concepts like arrays, strings, classes, constructors, destructors, inheritance, polymorphism, templates, exception handling and file handling. It provides 25 programming problems covering these topics and asks to write programs to implement array operations, string manipulation functions, classes to represent bank accounts and shopping lists, inheritance between student and result classes, operator and function overloading, exception handling and file I/O.
The document discusses various C++ concepts like arrays, strings, classes, constructors, destructors, inheritance, polymorphism, templates, exception handling and file handling. It provides 25 programming problems covering these topics and asks to write programs to implement array operations, string manipulation functions, classes to represent bank accounts and shopping lists, inheritance between student and result classes, operator and function overloading, exception handling and file I/O.
10. Write a program to multiply two matrices A and B of order m x n. Write a program to replace the value of 11. diagonal elements of a square matrix of order n x n by zero. Write a program to implement the following functions in an array 12. a) Insertion of an element. b) Deletion of element. Write a program to show the use of 13. string manipulation functions : strcpy(), strlen(), strcat(), strrev(), strlwr(). Classes Define a class to represent a blank account. Include the following numbers: a. Data Members : Name of Depositor, Account Number, Type of Account, Balance Amount in Account. b. Member Functions: To assign initial values, to deposit an amount, to withdraw an amount after checking the amount , to display the balance 14. along with account details. Write a program to test all the functions defined in the class. Make a suitable function inline show the understanding of inline functions. Write a program using class to process Shopping List for a Departmental Store. 15. The list includes details such as the Code No and Price of each item and perform the operations like Adding, Deleting Items to the List and Printing the Total value of a Order. Write a program to implement friend 16. function for calculating income ta for objects of two different classes. Constructors & destructors Write a program to implement the 17. concepts of constructions and destructor. Demonstrate the use of different types of constructors. Inheritance Bca -204(c++ labs) Roll no. 1323539
Write a program to design a student class
representing student roll no. and a test class (derived class of student) representing the scores of the student in 18. various subjects. The test class should be inherited by a result class having the functionality to add the scores and display the result card for student. Write a program to design a student class representing student roll no. and a test class (derived class of student) representing the scores of the student in various subjects and a sports class to represent the score of sports. The test 19. class should be inherited by a result and sports class having the functionality to add the scores and display the result card for student Polymorphism 20. Write a program for overloading +, -, * and / operator for class implementing complex numbers 21. Write a program to implement the concept of function overloading. Write a program to implement the 22. concept of function overriding. Exception handing and templates 23. Write to implement Bubble Sort using templates. Write a program to implement exception 24. handling for divide by zero exception. File handling 25. Write a program to implement file read and write operations