Write a program that opens a file called employee_data.txt. Then reads the age of each employee. Calculates average age. Program generates an output file called Average.txt. Then prints the following the output file
Company name is ACME.
Average age of employee = xyz years.
These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.file = open('employee_data.txt','r')
line = file.readline()
sum = 0;
units = 0;
while line != '':
units += 1
age = int( line.split() )
By purchasing this solution you'll be able to access the following files:
manal.py and Solution.png.