Question: Write a program that reads the employees.txt file that hold the information of employees in this order: -Name of the employee -Age of the employee

Write a program that reads the "employees.txt" file that hold the information of employees in this order:

-Name of the employee

-Age of the employee

-Salary of the employee

written in new line for each of the employees. Here is the input file: employees.txt

Your program reads these information into different lists for each information, (e.g. name in names list) and print out/display the following information:

- The lists for names, ages and salaries of the employees

-Name of the employee that earns the least

-Name of the employee that earns the most

-Youngest employee name and salary

-Oldest employee name and salary

The python code of your program with .py file must be submitted.

Employees.txt:

Jack

22

1500

Jane

32

1800

John

23

1600

Lizzy

26

1850

Hugh

45

3000

Gina

35

1900

James

42

1700

Ken

40

6000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!