0% found this document useful (0 votes)
39 views

Guidelines For CS (H) DSC04 Object Oriented Programming With C++

The document outlines the syllabus for the Object Oriented Programming with C++ course. It lists 5 units to be covered across 15 weeks, along with recommended textbooks and a sample practical list of 11 programming problems covering basic C++ concepts like arrays, strings, inheritance and file handling.

Uploaded by

mahak gupta
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Guidelines For CS (H) DSC04 Object Oriented Programming With C++

The document outlines the syllabus for the Object Oriented Programming with C++ course. It lists 5 units to be covered across 15 weeks, along with recommended textbooks and a sample practical list of 11 programming problems covering basic C++ concepts like arrays, strings, inheritance and file handling.

Uploaded by

mahak gupta
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Date: 04.04.

2023

BSc (H) Computer Science Semester – II


DSC 04: Object Oriented Programming with C++

S. Referenc
Unit Name Chapters Weeks
No. es

1, 2 [2]
1. Unit 1 Introduction to C++ Pg 10 – 17 [1] 1
Pg 20 – 22 [3]

3 (3.1 – 3.5, 3.9 – 3.13, 3.15, 3.18


– 3.22, 3.24 – 3.25)
Unit 2 Programming
2. 2–5
Fundamentals 4 (except 4.9 and 4.11)
11 (11.10)

5 (except 5.2, 5.15, 5.18)


Unit 3 Object Oriented 6 (except 6.8)
3. [2] 6–8
Programming 8
12

4. Unit 4 Pointers and References 9 9 – 11

Unit 5 Exception and File 13 (13.1 – 13.5)


5. 12 – 15
handling 11 (11.1 – 11.5)

Essential/recommended readings

1. Stephen Prata, C++ Primer Plus, 6th Edition, Pearson India, 2015.
2. E. Balaguruswamy, Object Oriented Programming with C++,8th edition, McGraw-Hill
Education, 2017.
3. D.S. Malik, C++ Programming: From Problem Analysis to Program Design, 6th
edition, Cengage Learning, 2022

Sample Practical List


1. Write a program to compute the sum of the first n terms of the following series:
1 1 1
S=1− 2
+ 3 −… n
2 3 n
The number of terms n is to be taken from the user through the command line. If the
command line argument is not found then prompt the user to enter the value of n.
2. Write a program to remove the duplicates from an array.
3. Write a program that prints a table indicating the number of occurrences of each
alphabet in the text entered as command line arguments.
4. Write a menu driven program to perform string manipulation (without using inbuilt
string functions):
a. Show address of each character in string
b. Concatenate two strings.
c. Compare two strings
d. Calculate length of the string (use pointers)
e. Convert all lowercase characters to uppercase
f. Reverse the string
g. Insert a string in another string at a user specified position
5. Write a program to merge two ordered arrays to get a single ordered array.
6. Write a program to search a given element in a set of N numbers.
7. Write a program to calculate GCD of two numbers.
8. Create a Matrix class. Write a menu-driven program to perform following Matrix
operations (exceptions should be thrown by the functions if matrices passed to them are
incompatible and handled by the main() function):
a. Sum
b. Product
c. Transpose
9. Define a class Person having name as a data member. Inherit two classes Student and
Employee from Person. Student has additional attributes as course, marks and year and
Employee has department and salary. Write display() method in all the three classes to
display the corresponding attributes. Provide the necessary methods to show runtime
polymorphism.
10. Create a Triangle class. Add exception handling statements to ensure the following
conditions: all sides are greater than 0 and sum of any two sides is greater than the third
side. The class should also have overloaded functions for calculating the area of a right
angled triangle as well as using Heron's formula to calculate the area of any type of
triangle.
11. Copy the contents of one text file to another file, after removing all whitespaces.

You might also like