06-02-2013, 04:07 PM
OBJECT ORIENTED PROGRAMMING USING C++
OBJECT ORIENTED.pdf (Size: 126.56 KB / Downloads: 15)
RATIONALE
Object orientation is a new approach to understand the complexities of the real world. In contrast
to the earlier approaches like procedural etc, object orientation helps to formulate the problems in a
better way giving high reliability, adaptability and extensibility to the applications. The students are
already familiar with this concept of programming in C which is the basic for C++. This course
offers the modern programming language C++ that shall help the students to implement the
various concept of object orientation practically. The students will be able to programme in the
object oriented technology with the usage of C++.
LIST OF PRACTICALS
1. Write a function using variables as arguments to swap the values of a pair of integers
2. An election is contested by five candidates. The candidates are numberd 1 to 5 & voting is
done by marking the candidate number on the ballot paper. Write a program to read the
ballot & count the votes cast for each candidate using an array, variable count. In case, a
number read is out side the range 1 to 5, the ballot should be considered as a ' spoilt
ballot' and the program should also count the number of spoilt ballot.
3. Write a program to read a matrix of size m*n from the keyboard and display the same on
the screen.