Question: Consider that there are multiple text files, each named with a unique department code in the format DEPARTMENT _ CODE.txt . DEPARTMENT _ CODE
Consider that there are multiple text files, each named with a unique department code in the format "DEPARTMENTCODE.txt DEPARTMENTCODE is a unique identifier for each department, for example, HR FIN etc.
Each file contains data structured as follows:
Quarter Revenue Quarter Revenue Quarter Revenue Quarter Revenue Employee ID
e
e
e
Each line represents revenue contributions from Quarter out of Quarter out of Quarter out of and Quarter out of for a specific employee ID Each file contains the revenue contributions for a specific department.
Write a program to:
Load all the files and process them to calculate the average revenue contributions for Quarter Quarter Quarter and Quarter for each department. Save the result in a file named "DEPARTMENTCODEavg.txt
Determine the number of employees who did not meet the annual revenue target assuming a total annual revenue threshold of $ combining all four quarters Save the result in a file named "DEPARTMENTCODEfailed.txt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
