KEMBAR78
Gitm | PDF | Class (Computer Programming) | Matrix (Mathematics)
0% found this document useful (0 votes)
7 views1 page

Gitm

The document outlines the CSCI1121 Programming with C++ Lab course, which includes a weekly schedule, objectives, and a series of programming assignments focused on object-oriented principles, virtual functions, templates, and exception handling. Students will complete various tasks such as swapping values, checking palindromes, demonstrating inheritance, and handling exceptions. The course aims to equip students with practical skills in C++ programming and understanding of key concepts in object-oriented programming.

Uploaded by

smr.uasc2018
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Gitm

The document outlines the CSCI1121 Programming with C++ Lab course, which includes a weekly schedule, objectives, and a series of programming assignments focused on object-oriented principles, virtual functions, templates, and exception handling. Students will complete various tasks such as swapping values, checking palindromes, demonstrating inheritance, and handling exceptions. The course aims to equip students with practical skills in C++ programming and understanding of key concepts in object-oriented programming.

Uploaded by

smr.uasc2018
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CSCI1121: PROGRAMMING WITH C++ LAB

Hours per week: 2 Continuous Evaluation:100 marks


Credits: 1

Objectives: To make the students to understand the features of object oriented principles and
familiarize them with virtual functions, templates and exception handling. Be able to write a
C++ program to solve a well specified problem.

1. Write a program that contains a function to exchange (swap) values of two arguments by
using pointers and References parameters.
2. Write a program to check the given string is palindrome or not using a private member
function.
3. Write a program to Demonstrate Inline Function.
4. Write a program to add corresponding elements of two 2-D matrices using friend function.
Create two classes each capable of storing one 2-D matrix. Declare the matrices under
private access specifier and access them outside the class.
5. Write a program for finding area of different geometric shapes (Circle, Rectangle and Cube)
using function overloading.
6. Write a Program to generate Fibonacci Series by using Constructor to initialize the Data
Members.
7. Write a program to demonstrate a copy constructor.
8. Write a Program to demonstrate Constructors in derived class using friend function.
9. Write a program to demonstrate single inheritance distinguishing public and private
derivation.
10. Write a program to illustrate the implementation of both Multilevel and Multiple (Hybrid)
inheritance.
11. Write a program to reverse of a string using operators.
12. Write a program to find transpose of a given matrix of mxn size using unary operator
overloading.
13. Write a program to add two matrices of mxn size using binary operator overloading.
14. Write a program to demonstrate the usage of virtual functions.
15. Write a program to find average marks of the subjects of a student. Throw multiple
exceptions and define multiple catch statements to handle division by zero as well as array
index out of bounds exceptions.
Reference Book:
1. Object Oriented Programming in C++ by E. Balaguruswamy, 4rd Edition, Tata
McGraw Hill Publication.
2 .Let Us C++ by Yashavant P.Kanetkar,2ndEdition, BPB Publications,
Course Outcomes:
Upon completion of the course, the student is able to
● Demonstrate of classes and objects.(L2)
● Develop the concepts of inheritance and polymorphism.(L6)
● Develop constructors and destructors, friend function.(L6)
● Implement Operator overloading, Virtual functions, Exception Handling.(L6)

You might also like