Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018)

Similar documents
Lesson Plan for Even semester Govt. Polytechnic Education Society, Lisana (Rewari) Name of the Faculty: Sh. Praveen Kumar Discipline:

Object Oriented Programming 2012

Seth Jai Parkash Polytechnic, Damla

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE1303. B.Tech. Year - II

Object Oriented Programming

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe

Syllabus of C++ Software for Hands-on Learning: This course offers the following modules: Module 1: Getting Started with C++ Programming

B.C.A 2017 OBJECT ORIENTED PROGRAMMING USING C++ BCA303T MODULE SPECIFICATION SHEET

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C

C++ (Non for C Programmer) (BT307) 40 Hours

Preface to the Second Edition Preface to the First Edition Brief Contents Introduction to C++ p. 1 A Review of Structures p.

Week. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical

3 rd What is hacking? Attacker, phreaker etc. parameters of firewall.

Object Oriented Programming with c++ Question Bank

KLiC C++ Programming. (KLiC Certificate in C++ Programming)

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. COURSE CURRICULUM COURSE TITLE: OBJECT ORIENTED PROGRAMMING (Code: )

CHOICE BASED CREDIT SYSTEM (With effect from )

VALLIAMMAI ENGINEERING COLLEGE

MaanavaN.Com CS1203 OBJECT ORIENTED PROGRAMMING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

S Y B Voc Software Development Syllabus

Object Oriented Programming Using C ++ Page No. : 1. ASSIGNMENT SHEET WITHOUT USING OBJECT AND CLASSES

END TERM EXAMINATION

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

PROGRAMMING IN C AND C++:

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT

CGS 2405 Advanced Programming with C++ Course Justification

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++

The Foundation of C++: The C Subset An Overview of C p. 3 The Origins and History of C p. 4 C Is a Middle-Level Language p. 5 C Is a Structured

SAURASHTRA UNIVERSITY

Absolute C++ Walter Savitch

B.Sc II Year Computer Science (Optional)

Get Unique study materials from

CERTIFICATE IN WEB PROGRAMMING

Short Notes of CS201

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

Object Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year

SCHEME FOR FOURTH SEMESTER (COMPUTER ENGINEERING)

CS201 - Introduction to Programming Glossary By

10CS36: Object Oriented Programming with C++

Object Oriented Programming. Solved MCQs - Part 2

3D Graphics Programming Mira Costa High School - Class Syllabus,

OBJECT ORIENTED PROGRAMMING. Ms. Ajeta Nandal C.R.Polytechnic,Rohtak

Data type of a pointer must be same as the data type of the variable to which the pointer variable is pointing. Here are a few examples:

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. COURSE CURRICULUM COURSE TITLE: OBJECT ORINTED PROGRAMMING (Code: )

An Object Oriented Programming with C

DEPARTMENT OF COMPUTER APPLICATIONS B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER LESSON PLAN SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

Revised time table of BCA (2011 admission) record submission

More C++ : Vectors, Classes, Inheritance, Templates

B. V. Patel Institute of Business Management, Computer & Information Technology

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY OBJECT ORIENTED PROGRAMMING QUESTION BANK UNIT I 2 MARKS

VIRTUAL FUNCTIONS Chapter 10

LESSION PLAN. Topic Practical Day Topic

Tentative Teaching Plan Department of Software Engineering Name of Teacher Dr. Naeem Ahmed Mahoto Course Name Computer Programming

More C++ : Vectors, Classes, Inheritance, Templates. with content from cplusplus.com, codeguru.com

Rani Durgavati Vishwavidyalaya Jabalpur (M.P.) (UICSA) Master of Computer Application (MCA) Practical List of. MCA III SEM Session -2010

Lesson Plan for Even semester

Lesson Plan. Week Theory Practical. Lecture Day Topic(including assignment Test) Practical Day

Week 8: Operator overloading

CoSci 440 SYLLABUS Programming in C++ INSTRUCTOR Mari Rettke cell SECTION : and 13345

Interview Questions of C++

What is Polymorphism? Quotes from Deitel & Deitel s. Why polymorphism? How? How? Polymorphism Part 1

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Polymorphism Part 1 1

+2 Volume II OBJECT TECHNOLOGY OBJECTIVE QUESTIONS R.Sreenivasan SanThome HSS, Chennai-4. Chapter -1

LESSON PLAN B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER

Ch02. True/False Indicate whether the statement is true or false.

CS250 Final Review Questions

M.C.A DEGREE EXAMINATION,NOVEMBER/DECEMBER 2010 Second Semester MC 9222-OBJECT ORIENTED PROGRAMMING (Regulation 2009)

Introduction to Programming Using Java (98-388)

Paytm Programming Sample paper: 1) A copy constructor is called. a. when an object is returned by value

Data Structures using OOP C++ Lecture 3

Advanced C++ Programming Workshop (With C++11, C++14, C++17) & Design Patterns

Intro to OOP Visibility/protection levels and constructors Friend, convert constructor, destructor Operator overloading a<=b a.

Cpt S 122 Data Structures. Course Review Midterm Exam # 2

STRUCTURE AND SYLLABUS APPROVED IN THE BOARD OF STUDIES MEETING ON 2001 TO BE EFFECTIVE FROM THE ACADEMIC YEAR

MAN4A OBJECT ORIENTED PROGRAMMING WITH C++ Unit I - V

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

Learning Objectives. C++ For Artists 2003 Rick Miller All Rights Reserved xli

Compulsory course in Computer Science

CS304 Object Oriented Programming Final Term

Programming for Problem Solving 105A L T P Credit Major Minor Total Time


XII- COMPUTER SCIENCE VOL-II MODEL TEST I

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions.

Jh fouk;d egkfo ky;] xkmjokjk RANI DURGAVATI VISHWAVIDYALAYA, JABALPUR BACHLOR OF COMPUTER APPLICATION BCA SYLLABUS THIRD SEMESTER

Object Oriented Programming

22316 Course Title : Object Oriented Programming using C++ Max. Marks : 70 Time: 3 Hrs.

Lecture 18 Tao Wang 1

Contents. 2 Introduction to C++ Programming,

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University)

COURSE OUTLINES FACULTY OF ELECTRICAL ENGINEERING UNIVERSITI TEKNOLOGI MARA SHAH ALAM

Savitribai Phule Pune University, Pune Second Year of Computer Engineering (2015 Course) : Object Oriented Programming Lab Teaching Scheme

STRUCTURING OF PROGRAM

OBJECT ORIENTED DATA STRUCTURE & ALGORITHMS

Data Abstraction. Hwansoo Han

Operations of E-commerce Credit cardtransaction Secure Hypertext Transfer Protocol (SHTP) Teaching/Quiz

Transcription:

Lesson Plan Name of the Faculty Discipline Semester :Mrs. Reena Rani : Computer Engineering : IV Subject: OBJECT ORIENTED PROGRAMMING USING C++ Lesson Plan Duration :15 weeks (From January, 2018 to April,2018) Work Load (Lecture /Practical) per week (in hours): Lectures 03, Practical 06) Week Theory Practical Lecture Day Topic (Including Assignment/ Test) Practical Day 1 st 1 st Unit 1: Introduction and Features 1 Fundamentals of object oriented programming procedure oriented programming Vs. object oriented programming (OOP) Topic 1 st Write a function using variables as arguments to swap the values of a pair of integers 2 nd Object oriented programming concepts Classes, reusability, encapsulation, inheritance, polymorphism, dynamic binding, message passing, Data Hiding 2 nd Write a function using variables as arguments to swap the values of a pair of integers. 3 rd Benefits of OOPs and its Application 3 rd Consider a shopping list of items for which we place an order with a dealer every month. The list includes such as the code number and price of each item.we would like to perform operations such as adding an item to the list, deleting an item from the list and printing the total value of the order. 4 th Consider a shopping list of items for which we place an order with a dealer every month. The list includes such as the code number and price of each item.we would like to perform operations such as adding an item to the list, deleting an item from the list and printing the total value of the order. 2 nd 1 st Unit 2: Language Constructs Review of constructs of C used in C++: variables, types and type declarations, user defined data types 2 nd increment and decrement operators, relational and logical operators 3 rd if then else clause; conditional expressions, input and output statement 1 st 1. Write a program to read name, roll no,internal external marks using classes and display the same on the screen. 2 nd 1. Write a program to read name, roll no,internal external marks using classes and display the same on the screen. 2. 3 rd Write a program of swapping of numbers by accessing private numbers using friend function. 4 th Write a program of swapping of numbers by accessing private numbers using friend function. 3 rd 1 st loops, switch case, arrays, structure, unions, functions, pointers; preprocessor directives and Header Files 1 st Define a class to represent a bank account using constructor including the following members:- Data members i) For Single Customer ii) For n Customers a) Name of the depositors b) Account number c) Type of account d) Balance amount in the account Member function - To assign initial values - To deposit an amount - To withdraw an amount after checking the balance

- To display the name and balance. 2 nd Scope Resolution Operator Managing Console I/O Operations; C++ Stream 3 rd Unformatted and Formatted Console I/O 2 nd Define a class to represent a bank account using constructor including the following members:- Data members i) For Single Customer ii) For n Customers a) Name of the depositors b) Account number c) Type of account d) Balance amount in the account Member function - To assign initial values - To deposit an amount - To withdraw an amount after checking the balance - To display the name and balance. 3 rd Create 2 classes OM and DB which store the value of distance. DM store distances in Meters and cm and DB in feet and inches. Write a program that can read values for the class objects and add 1 object OM with another object of DB. Use a friend function to carry out the addition operation the object that stores the results may be a DM object or a DB object, depending upon the units in which the results are required. The display should be in the format of feet and inches or meters and cms depending on the object on display. 4 th Create 2 classes OM and DB which store the value of distance. DM store distances in Meters and cm and DB in feet and inches. Write a program that can read values for the class objects and add 1 object OM with another object of DB. Use a friend function to carry out the addition operation the object that stores the results may be a DM object or a DB object, depending upon the units in which the results are required. The display should be in the format of feet and inches or meters and cms depending on the object on display. 4 th 1 st Revision of Unit 1 and Unit 2 1 st A book shop maintains the inventory of books that are being sold at the shop the list includes details such as author, title and publisher and stock position. Whenever a customer wants the book, the sales person inputs the title and author and the system search the list and display whether it is available ornot. If it is not, a appropriate message is displayed, if it is, then the system displays the book details and requests for the number of copies require. If the requested are available, the total cost of the required copies is displayed: otherwise the message" Required copies not in stock"is displayed. Design a system using a class called books with suitable member functions and constructors. Use new operator in constructor to allocate memory space require. 2 nd Unit 3: Classes and Objects Creation, accessing class members, Private Vs Public 2 nd A book shop maintains the inventory of books that are being sold at the shop the list includes details such as author, title and publisher and stock position. Whenever a customer wants the book, the sales person inputs the title and author and the system search the list and display whether it is available ornot. If it is not, a appropriate message is displayed, if it is, then the system displays the book details and requests for the number of copies require. If the requested are available, the total cost of the required copies is displayed: otherwise the message" Required

copies not in stock"is displayed. Design a system using a class called books with suitable member functions and constructors. Use new operator in constructor to allocate memory space require. 3 rd Constructor and Destructor with and without Arguments, Objects 3 rd Previous program Continued 4 th Previous program Continued 5 th 1 st Dynamic memory Allocation with new and Delete Operator 1 st Define a class string that could work as a user defined string type include constructors that will enable us to create an.un-initialized string String s1; :/ string with length 0 And also to initialize an object with string constant at the time of creation like String s2("well done");. Include a function that adds two strings to make a third string. 2 nd Revision 2 nd Define a class string that could work as a userdefined string type include constructors that will enable us to create an.un-initialized string String s1; :/ string with length 0 And also to initialize an object with string constant at the time of creation like String s2("well done");. Include a function that adds two strings to make a third string. 3 rd Revision 3 rd Previous program Continued 6 th 1 st Unit 4: Member Function 1 st Create a class float that contains 2 float data member. Over load all the 4 arithmetic operators so that do operate on the objects of float. 2 nd Method definition 2 nd Create a class float that contains 2 float data member. Over load all the 4 arithmetic operators so that do operate on the objects of float. 3 rd Inline Implementation, Constant member functions 7 th 1 st Static Function, This Pointer 1 st Programming Exercise on Hybrid Inheritance 2 nd Friend Function and its Characteristics 2 nd Programming Exercise on Hybrid Inheritance 3 rd Revision 8 th 1 st Unit 5: Overlaoding Member Function Introduction to Operator Overloading, Need of operator overloading 1 st Define 2 classes POLAR and RECTANGLE to represent points in the POLAR and RECTANGLE systems. Use conversion routines to convert from one system to the other. 2 nd prefix and postfix, overloading binary operators instream/outstream operator overloading 3 rd Constructor Overloading, Type Conversion, Rules of Operator Overloading 2 nd Define 2 classes POLAR and RECTANGLE to represent points in the POLAR and RECTANGLE systems. Use conversion routines to convert from one system to the other.

9 th 1 st Comparison between Function Overloading and overriding 2 nd Unit 6: Inheritance Definition of inheritance, Types of inheritance; Single inheritance, hierarchical inheritance, multiple inheritance, hybrid inheritance 3 rd protected data, private data, public/data, inheriting constructors and destructors 1 st Previous Program Continued 2 nd Previous Program Continued 3 rd Create a base class called shape. use this class to store two double type values that could be used to compute the area of fig. Derive the specific class called TRIANGLE and RECTANGLE from the data shape. Add to base class, a member function get - data ( ) to initialize base class data members and another member and another member function display area( ) to compute and display the area of the fig.. Make display area ( ) as a virtual function and redefine function in the derived classes to suit their requirements, Using these 3 classes design a program that will accept dimension of RECTANGLE or TRIANGLE interactivity and display the area. Remember the 2 values given as input will be treated as length of 2 sides in the case of rectangle and as base and height in the case of triangles and used as follows: Area of rectangle = x*y Area of triangle = 1/2 *x*y 4 th Create a base class called shape. use this class to store two double type values that could be used to compute the area of fig. Derive the specific class called TRIANGLE and RECTANGLE from the data shape. Add to base class, a member function get - data ( ) to initialize base class data members and another member and another member function display area( ) to compute and display the area of the fig.. Make display area ( ) as a virtual function and redefine function in the derived classes to suit their requirements, Using these 3 classes design a program that will accept dimension of RECTANGLE or TRIANGLE interactivity and display the area. Remember the 2 values given as input will be treated as length of 2 sides in the case of rectangle and as base and height in the case of triangles and used as follows: Area of rectangle = x*y Area of triangle = 1/2 *x*y 10 th 1 st constructor for virtual base classes, constructors and destructors of derived classes, and virtual functions 2 nd size of a derived class, order of invocation, 1 st Previous Program Continued 2 nd Previous Program Continued 3 rd Revision 11 st 1 st Unit 7:Polymorphism and Virtual Functions 1 st Previous Program Continued Importance of virtual function, function call binding 2 nd virtual functions 2 nd Previous Program Continued 3 rd implementing late binding 12 th 1 st need for virtual functions, abstract base classes 1 st Exercise on file handling 2 nd pure virtual functions, 2 nd Exercise on file handling 3 rd virtual destructors 3 rd Exercise on file handling

13 th 1 st Revision 1 st Exercise on file handling 2 nd Unit 8: File and Stream Components of a file, different operation of the file 3 rd communication in files, creation of file streams 2 nd Exercise on file handling 3 rd Exercise on file handling 14 th 1 st stream classes, headerfiles, updating of file, 1 st Exercise on file handling 2 nd opening and closing a file 2 nd Exercise on file handling 3 rd file modes and filepointers and their manipulations 15 th 1 st functions manipulation of file pointers, detecting end-of-file. 3 rd Exercise on file handling 1 st Revision 2 nd Revision 2 nd Revision 3 rd Revision 3 rd Revision 4 th Revision