Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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 solution

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

Advances In Database Technology Edbt 88 International Conference On Extending Database Technology Venice Italy March 14 18 1988 Proceedings Lncs 303

Authors: Joachim W. Schmidt ,Stefano Ceri ,Michele Missikoff

1988th Edition

3540190740, 978-3540190745

More Books

Students also viewed these Databases questions

Question

Social media (SM) is by its very nature static. True False

Answered: 1 week ago

Question

Describe the appropriate use of supplementary parts of a letter.

Answered: 1 week ago