OOP using C++ Lab Manual
Try this before starting of C++ :
Write a C program to develop a menu-driven Student Result Management System. The program should accept marks of students in multiple subjects, calculate total and percentage, determine pass/fail status and grade using decision-making statements, and display the result. Use functions for different operations and appropriate loops for repeated processing. Implement a menu using switch-case and provide an option to terminate the program.
S. NO. | PRACTICAL NAME |
1. | Design C++ classes with static members, methods with default arguments, and friend functions. (For example, design matrix and vector classes with static allocation, and a friend function to do matrix-vector multiplication). |
2. | Implement Matrix class with dynamic memory allocation and necessary methods. Give properconstructor, destructor, copy constructor, and overloading of the assignment operator. |
3. | Implement complex number class with necessary operator overloading and type conversions such as
integer to complex, double to complex, complex to double etc. |
4. | Overload the new and delete operators to provide a custom dynamic allocation of memory. |
5. | Develop C++ class hierarchy for various types of inheritances. |
6. | Design a simple test application to demonstrate dynamic polymorphism and RTTI. |
7. | Develop a template of the linked-list class and its methods. |
8. | Develop templates of standard sorting algorithms such as bubble sort, insertion sort and quick sort. |
9. | Design stack and queue classes with necessary exception handling. |
10. | Write a C++ program that randomly generates complex numbers (use previously designed Complexclass) and write them two per line in a file along with an operator (+, -, *, or /). The numbers are writtento file in the format (a + ib). Write another program to read one line at a time from this file, perform the specified operation.
|
| |
No comments:
Post a Comment