Answered step by step
Verified Expert Solution
Question
1 Approved Answer
employees.txt: John Smith Arthur Miller Eve Arden Ruth Meisner Roger Arnaz salaries.txt: 63000 52000 71000 65000 58000 I need to do this in Python IDLE,
employees.txt:
John Smith Arthur Miller Eve Arden Ruth Meisner Roger Arnaz
salaries.txt:
63000 52000 71000 65000 58000
I need to do this in Python IDLE, any help is appreciated!
Two Documents problem (50 points) - By mistake, the names and salaries of five employees of a company were placed on two separate text document files (employees.txt and salaries.txt). A program is needed to consolidate the data from these files into a new single text file. The consolidated final file should have: - A title on the first line: Employee Salaries - The names and salaries of the employees (an employee and his/her salary on each line) - The total of all salaries with the label: Total Salaries (on a separate line) - The average of all salaries with the label: Average Salary (on a separate line) - Create a Python program to read the data from the two initial files and to produce a final file with the required data. Use a loop (or loops) in your solutionStep 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