Professional Documents
Culture Documents
Pca1 1
Pca1 1
SET 6
Problem Statement:
Develop a library management system that keeps track of books and their
information. Create a class named Book with the following attributes:
Tasks to be Performed:
User input must be taken from command line arguments in all the above cases.
PCA-1 Examination
Paper Name : Object Oriented Programming Lab
Date of Exam : 30th August, 2023
Semester : 5th
Paper Code : PCC-CS593
Academic Session : 2023-24
SET 5
Problem Statement:
You are tasked with designing a class Rectangle to represent rectangles in a 2D plane.
The class should have two private attributes: width and height, representing the
dimensions of the rectangle.
● A constructor that initializes the width and height of the rectangle based on
user input.
● A constructor that initializes the width of the rectangle (assumes height is 1).
● A constructor that initializes the height of the rectangle (assumes width is 1).
● A constructor that initializes the rectangle with no parameters (sets width and
height to 1).
● A constructor that takes a single parameter side and creates a square rectangle
with both width and height set to the value of side.
Additionally, the class should provide methods to calculate the area and perimeter of
the rectangle.
Tasks to be completed
User input must be taken from command line arguments in all the above cases.
PCA-1 Examination
Paper Name : Object Oriented Programming Lab
Date of Exam : 30th August, 2023
Semester : 5th
Paper Code : PCC-CS593
Academic Session : 2023-24
SET 7
Problem Statement:
You are tasked with creating a class named Converter that provides methods for
converting temperature values between Celsius and Fahrenheit scales.
Class Requirements: The class Converter should have the following methods:
Tasks to be completed:
SET 8
Problem Statement:
You are tasked with creating a class Calculator that provides various methods for
performing arithmetic operations. The class should support both constructor
overloading and method overloading to accommodate different data types.
● A default constructor.
● A constructor that takes two integers to initialize a specific operation range.
● A constructor that takes two double values to initialize a specific operation
range.
Tasks to be completed: