Note: This syllabus is common for
- R18 - B.TECH II Year I Sem. - CSE, IT
CS309PC: C++ PROGRAMMING LAB
B.Tech. II Year I Sem. L T/P/D C
0 0/2/0 1
Prerequisites: A course on “Programming for Problem Solving”.
Course Objectives
- Introduces object-oriented programming concepts using the C++ language.
- Introduces the principles of data abstraction, inheritance and polymorphism;
- Introduces the principles of virtual functions and polymorphism
- Introduces handling formatted I/O and unformatted I/O
- Introduces exception handling
Course Outcomes
- Ability to develop applications for a range of problems using object-oriented programming techniques
LIST OF EXPERIMENTS
- Write a C++ Program to display Names, Roll No., and grades of 3 students who have appeared in the examination. Declare the class of name, Roll No. and grade. Create an array of class objects. Read and display the contents of the array.
- Write a C++ program to declare Struct. Initialize and display contents of member variables.
- Write a C++ program to declare a class. Declare pointer to class. Initialize and display the contents of the class member.
- Given that an EMPLOYEE class contains following members: data members: Employee number, Employee name, Basic, DA, IT, Net Salary and print data members.
- Write a C++ program to read the data of N employee and compute Net salary of each employee (DA=52% of Basic and Income Tax (IT) =30% of the gross salary).
- Write a C++ to illustrate the concepts of console I/O operations.
- Write a C++ program to use scope resolution operator. Display the various values of the same variables declared at different scope levels.
- Write a C++ program to allocate memory using new operator.
- Write a C++ program to create multilevel inheritance. (Hint: Classes A1, A2, A3)
- Write a C++ program to create an array of pointers. Invoke functions using array objects.
- Write a C++ program to use pointer for both base and derived classes and call the member function. Use Virtual keyword.
-
CreatedNov 30, 2020
-
UpdatedDec 12, 2020
-
Views1,517