Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are provided with a CSV file named employeeInfo.csv containing data about employees. Your task is to write a Python program to analyze this data.
You are provided with a CSV file named employeeInfo.csv containing data about employees. Your task is to write a Python program to analyze this data. You cannot use libraries like pandas; only builtin Python functions and data structures can be used.
Create a function named findlongestservingemployees that identifies the employees with the longest tenure in years in the company. The function should return a list of tuples, each tuple containing the first name, last name, and the tenure in years of an employee. Consider the DateOfJoining field for calculating the tenure. The month and day of joining are irrelevant ie a person who joined in Jan and a person who joined in Dec both will have one year of service.
CSV file Example:
SNo FirstName LastName DepartmentName DateOfJoining
Will Bradshaw Biology
Bentley Alvarado Mathematics
Jayleen Burns ComputerScience
Aaliyah Barber SocialScience
Dixie Hester Biology
Oswaldo Brooks English
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started