Display the names and salaries of all the employees
Create the following program using Python,you may use Replit for a free version of Python.
Use loops to input a list of employee names and salaries and store them in parallel arrays. End the input with a sentinel value. The salaries should be floating point numbers and Salaries should be input in even hundreds. For example, a salary of 36,510 should be input as 36.5 and a salary of 69,030 should be entered as 69.0. Find the average of all the salaries of the employees. Find the highest and the lowest of all salaries.
Display the following using proper labels:
1.Display the names and salaries of all the employees.
2. Display the average of all the salaries (for example, " The average of all salaries is $30000" )
3. Display the highest of all the salaries
4. Display the lowest of all the salaries
Please inculde header comments. If possible include step comments.
- Name of the submission - Employee Salaries
- Author of the submission - John Smith
- Summary/goal of the submission
- Variables used with a short description of the variable, as well as the format of the data (e.g. datatype)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images