Assume you have fixed width, comma separated records Example: "22113344, Jane White ,22/04/2020,1234.56" id : 8 chars na
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Assume you have fixed width, comma separated records Example: "22113344, Jane White ,22/04/2020,1234.56" id : 8 chars na
Assume you have fixed width, comma separated records Example: "22113344, Jane White ,22/04/2020,1234.56" id : 8 chars name: 25 chars starting date: 10 chars (delimiter/) salary: 7 chars In your program create a list of employees (a list of staff records) 1. write a function which lists the employees who started working at least two years ago 2. write a function which changes the salary for a given employee (i.e. id of the employee will be given and the new salary) Call your functions to test their functionality in any way you want. SUBMIT ONLY ONE .py FILE
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!