Answered step by step
Verified Expert Solution
Link Copied!

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 built-in Python functions and data structures can be used.
Create a function named find_longest_serving_employees that identifies the employee(s) 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 i.e., a person who joined in Jan 2023 and a person who joined in Dec 2023, both will have one year of service.
CSV file Example:
SNo FirstName LastName DepartmentName DateOfJoining
1 Will Bradshaw Biology 6/4/2016
2 Bentley Alvarado Mathematics 9/15/2020
3 Jayleen Burns ComputerScience 8/18/2006
4 Aaliyah Barber SocialScience 6/4/2000
5 Dixie Hester Biology 7/28/2011
6 Oswaldo Brooks English 3/27/2012

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions