Question
Given an employee file from some company, the semantics of each row are: employee ID, employee name, age, and salary. 142519864,Susan Martin,39,56990 242518965,James Smith,68,27099 141582651,Mary
Given an employee file from some company, the semantics of each row are: employee ID, employee name, age, and salary. 142519864,Susan Martin,39,56990
242518965,James Smith,68,27099
141582651,Mary Johnson,44,94011
011564812,John Williams,35,74098
254099823,Patricia Jones,28,42783
356187925,Robert Brown,28,35431
489456522,Linda Davis,26,25971
287321212,Michael Miller,62,131072
Write a Python program that returns a new employee list with salary updated: if an employee is younger than 40, raise his or her salary by 5%; otherwise raise the salary by 10%. Refer to lecture notes or exercises and solutions from http://www.python-course.eu/python3_lambda.php for help, if needed.
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