Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Store a list of employee names and salaries in two arrays (one for the names, and a second one for the salaries), using loops sort

Store a list of employee names and salaries in two arrays (one for the names, and a second one for the salaries), using loops sort them ascending by salary. Output a formatted list of the original arrays. Output a formatted list of the arrays sorted by salary. (Note: you cannot use any python sort functions, you must write your own using loops.

In python

end result to look like this:

Unsorted:

Albert: $92300.00

Andy: $94200.00

Bill: $81800.00

Carl: $75400.00

David: $61300.00

Edward: $53900.00

Frank: $41200.00

George: $32300.00

Harry: $29400.00

Sorted by Salary:

Harry: $29400.00

George: $32300.00

Frank: $41200.00

Edward: $53900.00

David: $61300.00

Carl: $75400.00

Bill: $81800.00

Albert: $92300.00

Andy: $94200.00

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

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions