Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions