#include <iostream>
#include <string>
using namespace std;

// Class declaration
class Student {
private:
    int empCode;
    string name;
    string dept;
    string designation;
    int age;
    float salary;

public:
    // Constructor to initialize the object
    Student(int code, string empName, string empDept, string empDesignation, int empAge, float empSalary) {
        empCode = code;
        name = empName;
        dept = empDept;
        designation = empDesignation;
        age = empAge;
        salary = empSalary;
    }

    // Function to display Emp Code and Name if Salary > 50,000
    void display() {
        if (salary > 50000) {
            cout << "Emp Code: " << empCode << ", Name: " << name << endl;
        }
    }
};

int main() {
    // Creating 3 objects of Student class
    Student emp1(101, "Alice", "IT", "Manager", 30, 60000);
    Student emp2(102, "Bob", "HR", "Executive", 28, 45000);
    Student emp3(103, "Charlie", "Finance", "Analyst", 35, 70000);

    cout << "Employees with salary more than ₹50,000:" << endl;
    emp1.display();
    emp2.display();
    emp3.display();

return 0;
}
