0% found this document useful (0 votes)
2 views

Assignment 01 - Class and Object

The assignment requires the submission of C++ programs implementing various classes, including Circle, Rectangle, Person, Car, BankAccount, Triangle, Employee, Date, and Student. Each class should have private member variables and specific member functions for calculations or data management. The submission deadline is February 10, 2025, and the code should be zipped and named with the student's ID.

Uploaded by

shoumiksarker07
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Assignment 01 - Class and Object

The assignment requires the submission of C++ programs implementing various classes, including Circle, Rectangle, Person, Car, BankAccount, Triangle, Employee, Date, and Student. Each class should have private member variables and specific member functions for calculations or data management. The submission deadline is February 10, 2025, and the code should be zipped and named with the student's ID.

Uploaded by

shoumiksarker07
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment 01

Topic: Class and Object

Last date of Submission: 10th February 2025

You have to submit code in a zip file named by your ID.

1. Write a C++ program to implement a class called Circle that has private member variables for
radius. Include member functions to calculate the circle's area and circumference.

2. Write a C++ program to create a class called Rectangle that has private member variables for
length and width. Implement member functions to calculate the rectangle's area and perimeter.

3. Write a C++ program to create a class called Person that has private member variables for name,
age and country. Implement member functions to set and get the values of these variables.

4. Write a C++ program to create a class called Car that has private member variables for company,
model, and year. Implement member functions to get and set these variables.

5. Write a C++ program to implement a class called BankAccount that has private member variables
for account number and balance. Include member functions to deposit and withdraw money from
the account.

6. Write a C++ program to create a class called Triangle that has private member variables for the
lengths of its three sides. Implement member functions to determine if the triangle is equilateral,
isosceles, or scalene.

7. Write a C++ program to implement a class called Employee that has private member variables for
name, employee ID, and salary. Include member functions to calculate and set salary based on
employee performance.

8. Write a C++ program to implement a class called Date that has private member variables for day,
month, and year. Include member functions to set and get these variables, as well as to validate if
the date is valid.

9. Write a C++ program to implement a class called Student that has private member variables for
name, class, roll number, and marks. Include member functions to calculate the grade based on the
marks and display the student's information.

You might also like