Saras Jadhav

F.E. PPS Unit 5 Practical 8 solution

Practical 8: Create Class EMPLOYEE for Storing Details and Functions for Employee Count. Problem Statement Create Class EMPLOYEE for Storing Details and Functions for Employee Count. Define function members to compute: Total number ofemployees. Count of male and female employees. Employees with salary greater than 10,000. Employees with designation “Asst Manager”. Solution Code class Employee: …

F.E. PPS Unit 5 Practical 8 solution Read More »

F.E. PPS Unit 5 Practical 6 solution

Practical 6: Program to illustrate the difference between public and private variables. Problem Statement Write a Python program to illustrate the difference between public and private variables. Solution Code class Employee: def __init__(self, name, salary): self.name = name # Public variable self.__salary = salary # Private variable def display(self): print(f”Name: {self.name}, Salary: {self.__salary}”) # Creating …

F.E. PPS Unit 5 Practical 6 solution Read More »

F.E. PPS Unit 5 Practical 4 solution

Practical 4: Program to differentiate between class variables and object variables Problem Statement Write a Python program to differentiate between class variables and object variables. Solution Code class Employee: company_name = “TechCorp” # Class variable def __init__(self, name): self.name = name # Object variable # Creating objects emp1 = Employee(“Alice”) emp2 = Employee(“Bob”) # Accessing …

F.E. PPS Unit 5 Practical 4 solution Read More »

Tech Amplifier Final Logo