DWARAKA DOSS GOVERDHAN DOSS VAISHNAV
EVENING COLLEGE (AUTONOMOUS)
ARUMBAKKAM, CHENNAI-600 106
DEPARTMENT OF
COMPUTER APPLICATIONS
Bachelor of Computer Applications
C++ PROGRAMMING LAB
,DWARAKA DOSS GOVERDHAN DOSS VAISHNAV EVENING
COLLEGE (AUTONOMOUS)
ARUMBAKKAM, CHENNAI-600 106
DEPARTMENT OF COMPUTER APPLICATIONS
C++ Programming Lab
Certified that this is a record work done by …………………………………….
whose Register no. ………………………… of I B.C.A., during the academic year
2021 – 2022.
Faculty In-charge Head of the Department
Submitted for practical examination held on ………….…………… at Dwaraka
Doss Goverdhan Doss Vaishnav College, Chennai-106.
Internal Examiner External Examiner
,Sl.
Date Program Name Page No Signature
No.
1. C++ Operators
Arithmetic Operators, Bitwise Operators, Ternary
a
Operator, sizeof Operator
2. Decision Making Statements
a Relation between two numbers using simple-if
Check whether the given number is positive, negative
b
or zero using if-else
c Largest of 3 given numbers using nested-if
d Print the result of a student using else-if ladder
Display the number of days in the given month using
e
switch-case
3. Loop Statements
Reverse the given number and find out the sum of
a
digits using while loop
Check whether the given number is prime or not
b
using do-while loop
c Generate Fibonacci Series using for loop
4 Mathematical Library Functions
5 Inline function
6 Function Overloading
7 Class and Objects
8 Passing Object to Function
9 Returning Object from Function
10 Constructor and Destructor
11 Static data members and member functions
12 Operator Overloading
13. Inheritance
a Single Inheritance
b Multilevel Inheritance
c Multiple Inheritance
14 Virtual Function
15 Command Line Arguments
, Ex. No: 1
Date:
PROGRAM USING OPERATORS
Aim: To write a C++ program to illustrate the usage of various operators.
Algorithm:
1. Start the program.
2. Read two integers num1 and num2.
3. Perform all arithmetic operators on them and print the result.
4. Perform bitwise AND, OR, One‟s complement, shift left and shift right.
5. Apply post increment and pre increment on those numbers num1 and num2 and print the
answer.
6. Apply the special operator sizeof() on the data types and check the bytes occupied.
7. Check the number num1 is odd or even by conditional or ternary operator.
8. Stop the program.
EVENING COLLEGE (AUTONOMOUS)
ARUMBAKKAM, CHENNAI-600 106
DEPARTMENT OF
COMPUTER APPLICATIONS
Bachelor of Computer Applications
C++ PROGRAMMING LAB
,DWARAKA DOSS GOVERDHAN DOSS VAISHNAV EVENING
COLLEGE (AUTONOMOUS)
ARUMBAKKAM, CHENNAI-600 106
DEPARTMENT OF COMPUTER APPLICATIONS
C++ Programming Lab
Certified that this is a record work done by …………………………………….
whose Register no. ………………………… of I B.C.A., during the academic year
2021 – 2022.
Faculty In-charge Head of the Department
Submitted for practical examination held on ………….…………… at Dwaraka
Doss Goverdhan Doss Vaishnav College, Chennai-106.
Internal Examiner External Examiner
,Sl.
Date Program Name Page No Signature
No.
1. C++ Operators
Arithmetic Operators, Bitwise Operators, Ternary
a
Operator, sizeof Operator
2. Decision Making Statements
a Relation between two numbers using simple-if
Check whether the given number is positive, negative
b
or zero using if-else
c Largest of 3 given numbers using nested-if
d Print the result of a student using else-if ladder
Display the number of days in the given month using
e
switch-case
3. Loop Statements
Reverse the given number and find out the sum of
a
digits using while loop
Check whether the given number is prime or not
b
using do-while loop
c Generate Fibonacci Series using for loop
4 Mathematical Library Functions
5 Inline function
6 Function Overloading
7 Class and Objects
8 Passing Object to Function
9 Returning Object from Function
10 Constructor and Destructor
11 Static data members and member functions
12 Operator Overloading
13. Inheritance
a Single Inheritance
b Multilevel Inheritance
c Multiple Inheritance
14 Virtual Function
15 Command Line Arguments
, Ex. No: 1
Date:
PROGRAM USING OPERATORS
Aim: To write a C++ program to illustrate the usage of various operators.
Algorithm:
1. Start the program.
2. Read two integers num1 and num2.
3. Perform all arithmetic operators on them and print the result.
4. Perform bitwise AND, OR, One‟s complement, shift left and shift right.
5. Apply post increment and pre increment on those numbers num1 and num2 and print the
answer.
6. Apply the special operator sizeof() on the data types and check the bytes occupied.
7. Check the number num1 is odd or even by conditional or ternary operator.
8. Stop the program.