21EC482 C++ Basics syllabus for EC



A d v e r t i s e m e n t

Module-1 Experiments 0 hours

Course objectives:

  • Understand object-oriented programming concepts, and apply them in solving problems.
  • To create, debug and run simple C++ programs.
  • Introduce the concepts of functions, friend functions, inheritance, polymorphism and function overloading.
  • Introduce the concepts of exception handling and multithreading.

 

Experiments

1 Write a C++ program to find largest, smallest & second largest of three numbers using inline functions MAX & Min.

2 Write a C++ program to calculate the volume of different geometric shapes like cube, cylinder and sphere using function overloading concept.

3 Define a STUDENT class with USN, Name & Marks in 3 tests of a subject. Declare an array of 10 STUDENT objects. Using appropriate functions, find the average of the two better marks for each student. Print the USN, Name & the average marks of all the students.

4 Write a C++ program to create class called MATRIX using two-dimensional array of integers, by overloading the operator == which checks the compatibility of two matrices to be added and subtracted. Perform the addition and subtraction by overloading + and – operators respectively. Display the results by overloading the operator <<. If (m1 == m2) then m3 = m1 + m2 and m4 = m1 – m2 else display error

5 Demonstrate simple inheritance concept by creating a base class FATHER with data members: First Name, Surname, DOB & bank Balance and creating a derived class SON, which inherits: Surname & Bank Balance feature from base class but provides its own feature: First Name & DOB. Create & initialize F1 & S1 objects with appropriate constructors & display the FATHER & SON details.

6 Write a C++ program to define class name FATHER & SON that holds the income respectively. Calculate & display total income of a family using Friend function.

7 Write a C++ program to accept the student detail such as name & 3 different marks by get_data() method & display the name & average of marks using display() method. Define a friend function for calculating the average marks using the method mark_avg().

8 Write a C++ program to explain virtual function (Polymorphism) by creating a base class polygon which has virtual function areas two classes rectangle & triangle derived from polygon & they have area to calculate & return the area of rectangle & triangle respectively.

9 Design, develop and execute a program in C++ based on the following requirements: An EMPLOYEE class containing data members & members functions: i) Data members: employee number (an integer), Employee_ Name (a string of characters), Basic_ Salary (in integer), All_ Allowances (an integer), Net_Salary (an integer). (ii) Member functions: To read the data of an employee, to calculate Net_Salary & to print the values of all the data members. (All_Allowances = 123% of Basic, Income Tax (IT) =30% of gross salary (=basic_ Salary_All_Allowances_IT).

10 Write a C++ program with different class related through multiple inheritance & demonstrate the use of different access specified by means of members variables & members functions.

11 Write a C++ program to create three objects for a class named count object with data members such as roll_no & Name. Create a members function set_data ( ) for setting the data values & display ( ) member function to display which object has invoked it using „this‟ pointer.

12 Write a C++ program to implement exception handling with minimum 5 exceptions classes including two built in exceptions.

 

Course outcomes (Course Skill Set):

At the end of the course the student will be able to:

1. Write C++ program to solve simple and complex problems

2. Apply and implement major object-oriented concepts like message passing, function overloading, operator overloading and inheritance to solve real-world problems.

3. Use major C++ features such as Templates for data type independent designs and File I/O to deal with large data set.

4. Analyze, design and develop solutions to real-world problems applying OOP concepts of C++

 

Assessment Details (both CIE and SEE)

  • The weightage of Continuous Internal Evaluation (CIE) is 50% and for Semester End Exam (SEE) is 50%.
  • The minimum passing mark for the CIE is 40% of the maximum marks (20 marks).
  • A student shall be deemed to have satisfied the academic requirements and earned the credits allotted to each course.
  • The student has to secure not less than 35% (18 Marks out of 50) in the semester-end examination (SEE).

 

Continuous Internal Evaluation (CIE):

CIE marks for the practical course is 50 Marks.

The split-up of CIE marks for record/ journal and test are in the ratio 60:40.

  • Each experiment to be evaluated for conduction with observation sheet and record write-up. Rubrics for the evaluation of the journal/write-up for hardware/software experiments designed by the faculty who is handling the laboratory session and is made known to students at the beginning of the practical session.
  • Record should contain all the specified experiments in the syllabus and each experiment write-up will be evaluated for 10 marks.
  • Total marks scored by the students are scaled downed to 30 marks (60% of maximum marks).
  • Weightage to be given for neatness and submission of record/write-up on time.
  • Department shall conduct 02 tests for 100 marks, the first test shall be conducted after the 8th week of the semester and the second test shall be conducted after the 14th week of the semester.
  • In each test, test write-up, conduction of experiment, acceptable result, and procedural knowledge will carry a weightage of 60% and the rest 40% for viva-voce.
  • The suitable rubrics can be designed to evaluate each student’s performance and learning ability. Rubrics suggested in Annexure-II of Regulation book
  • The average of 02 tests is scaled down to 20 marks (40% of the maximum marks).

The Sum of scaled-down marks scored in the report write-up/journal and average marks of two tests is the total CIE marks scored by the student.

 

Semester End Evaluation (SEE):

SEE marks for the practical course is 50 Marks. SEE shall be conducted jointly by the two examiners of the same institute, examiners are appointed by the University

  • All laboratory experiments are to be included for practical examination.
  • (Rubrics) Breakup of marks and the instructions printed on the cover page of the answer script to be strictly adhered to by the examiners. OR based on the course requirement evaluation rubrics shall be decided jointly by examiners.
  • Students can pick one question (experiment) from the questions lot prepared by the internal /external examiners jointly.
  • Evaluation of test write-up/ conduction procedure and result/viva will be conducted jointly by examiners.
  • General rubrics suggested for SEE are mentioned here, writeup-20%, Conduction procedure and result in -60%, Viva-voce 20% of maximum marks. SEE for practical shall be evaluated for 100 marks and scored marks shall be scaled down to 50 marks (however, based on course type, rubrics shall be decided by the examiners)
  • Change of experiment is allowed only once and 15% Marks allotted to the procedure part to be made zero.
  • The duration of SEE is 03 hours Rubrics suggested in Annexure-II of Regulation book

 

Suggested Learning Resources:

1. Object oriented programming in TURBO C++, Robert Lafore, Galgotia Publications, 2002

2. The Complete Reference C++, Herbert Schildt, 4th Edition, Tata McGraw Hill, 2003.

3. Object Oriented Programming with C++, E Balaguruswamy, 4th Edition, Tata McGraw Hill, 2006.

Last Updated: Tuesday, January 24, 2023