The document provides 11 programming problems involving creating classes with encapsulation. Each problem involves creating a class with attributes like roll number, name, marks, etc. and member functions to set, get, display and input data. The main function is then to create objects of the class, input data and display it. The problems vary in terms of the number of objects created, the class used (Student, Product, Employee, Vehicle) and some involve finding highest/lowest values or filtering data.
The document provides 11 programming problems involving creating classes with encapsulation. Each problem involves creating a class with attributes like roll number, name, marks, etc. and member functions to set, get, display and input data. The main function is then to create objects of the class, input data and display it. The problems vary in terms of the number of objects created, the class used (Student, Product, Employee, Vehicle) and some involve finding highest/lowest values or filtering data.
The document provides 11 programming problems involving creating classes with encapsulation. Each problem involves creating a class with attributes like roll number, name, marks, etc. and member functions to set, get, display and input data. The main function is then to create objects of the class, input data and display it. The problems vary in terms of the number of objects created, the class used (Student, Product, Employee, Vehicle) and some involve finding highest/lowest values or filtering data.
1: Write a program with an encapsulation class Student(rollno,name,marks) with
functions to set, display, get and
input data. In main function , create 02 student objects, input and display their data. 2: Write a program with an encapsulation class Product(PId,Pname,Qty) with functions to set, display, get and input data. In main function , create 02 product objects, input and display their data. 3: Write a program with an encapsulation class Student(rollno,name,marks) with functions to set, display, get and input data. In main function , create 10 student objects, input and display their data. 4: Write a program with an encapsulation class Product(PId,Pname,Price) with functions to set, display, get and input data. In main function , create 10 product objects, input and display their data. 5: Write a program with an encapsulation class Student(rollno,name,marks) with functions to set, display, get and input data. In main function , create 10 student objects, input and display data of the student having the highest marks. 6: Write a program with an encapsulation class Employee(EId,Ename,Salary) with functions to set, display, get and input data. In main function , create 10 Employee objects, input and display their data. 7: Write a program with an encapsulation class Product(PId,Pname,Price) with functions to set, display, get and input data. In main function , create 10 product objects, input and display data of the product having the lowest price. 8: Write a program with an encapsulation class Student(rollno,name,marks) with functions to set, display, get and input data. In main function , create 10 student objects using pointers, input and display their data. 9: Write a program with an encapsulation class Product(PId,Pname,Price) with functions to set, display, get and input data. In main function , create 10 product objects using pointers, input and display their data. 10: Write a program with an encapsulation class Employee(EId,Ename,Salary) with functions to set, display, get and input data. In main function , create 10 Employee objects using pointers, input and display data of thr Employee having the highest salary. 11: Write a program with an encapsulation class Vehicle(VId,ModelName,Price) with functions to set, display, get and input data. In main function , create 10 Vehicle objects using pointers, input and display count of the Vehicles having price in the range of 900000 and 1500000 and ModelName starting with 'M'.