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

  1. 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.
  2. Write a C++ program to declare Struct. Initialize and display contents of member variables.
  3. Write a C++ program to declare a class. Declare pointer to class. Initialize and display the contents of the class member.
  4. Given that an EMPLOYEE class contains following members: data members: Employee number, Employee name, Basic, DA, IT, Net Salary and print data members.
  5. 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).
  6. Write a C++ to illustrate the concepts of console I/O operations.
  7. Write a C++ program to use scope resolution operator. Display the various values of the same variables declared at different scope levels.
  8. Write a C++ program to allocate memory using new operator.
  9. Write a C++ program to create multilevel inheritance. (Hint: Classes A1, A2, A3)
  10. Write a C++ program to create an array of pointers. Invoke functions using array objects.
  11. Write a C++ program to use pointer for both base and derived classes and call the member function. Use Virtual keyword.
  • Created
    Nov 30, 2020
  • Updated
    Dec 12, 2020
  • Views
    1,360