0% found this document useful (0 votes)
15 views1 page

BSC - It Oop Prac Assi2

The document outlines a practical assignment for a BSc (IT) course focusing on Object Oriented Programming in C++. It includes a series of tasks requiring the creation of C++ classes and functions to perform various operations such as calculating sums, checking prime numbers, and demonstrating concepts like function overloading and nested classes. All programs must be implemented using classes and objects.

Uploaded by

Khushali Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

BSC - It Oop Prac Assi2

The document outlines a practical assignment for a BSc (IT) course focusing on Object Oriented Programming in C++. It includes a series of tasks requiring the creation of C++ classes and functions to perform various operations such as calculating sums, checking prime numbers, and demonstrating concepts like function overloading and nested classes. All programs must be implemented using classes and objects.

Uploaded by

Khushali Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

GLS University

Faculty of Computer Applications and Information Technology


BSc (IT) Dual Specialization
Semester - II
241601201 Object Oriented Programming
Practical Assignment – 2 (Unit 2)

1 Write a C++ class to find the sum of individual digits of a positive integer.
Create a class employee with name, salary, age as member, use get_data() and show()
2
functions. Display details of 3 manager employees.
3 Write a C++ class to make inline function to find odd/even.

4 Write a C++ class to check Prime number using member Function.

5 Write a C++ class to find a factorial using member Function.

6 Write a C++ program to make inline function to find positive/ negative number.
Write a program that makes use of default arguments in Function. Define currency class
which contains rupees and paisa as data members. Write a function named getCurrency()
7
which get the value of rupees and paisa. Write a function named calculateCurrency() which
convert rupees into paisa and display the paisa amount on a terminal.
Write a C++ program (using function overloaded) to sum 5 integer values, or 5 long values, or
8
5 double values.
Write a C++ program to calculate the area of circle, rectangle and square using function
9
overloading.
Write a C++ Program to create a class employee to print the detail of employees using
10
objects.
Create a class paper with width and height as data member. Create function outside a class
11
that finds out area and perimeter of that paper Pass object as argument.
12 Write a static function setcount() that increments the counter every time the function is called.

13 Write a C++ program to demonstrate the nested class.


Write a C++ program to demonstrate the constant member function using get and set the
14
value.
15 Write a C++ program to find the smallest element from an array.

Note : All the Programs should be implement using Class and Object.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy