CPP-Practical-EXAM

CPP Practical Questions---->

1-A- Create Matrix class. Write a menu-driven program to perform following Matrix operations: a) Sum b) Product c) Transpose B- Rewrite Matrix class of Q8 with exception handling. Exceptions should be thrown by the functions if matrices passed to them are incompatible and handled by main() function.

2- Create a class Student containing fields for Roll No., Name, Class, Year and Total Marks. Write a program to store 5 objects of Student class in a file. Retrieve these records from file and display them.

3- Create a class Triangle. Include overloaded functions for calculating area. Overload assignment operator and equality operator.