Jan-20-2017, 12:06 AM
Hello buddies, I need some help with 4 questions , thanks for your time
Implement a program for:
• Read data in files of format similar to the examples provided
• Represent those data in appropriate structures (lists and dictionaries)
• Which company had most billing in month X?
• Which company had the most expenses in month X?
I really try to solve it but dont have ideia how to do .txt files and inplanted in the 2 last questions , can you help my guys ?
And the examples are :
""""
Company.txt
Company number Company name
12345678 ---> Stones Industry
50609693 ---> Cakes and soda
53453453 ---> Motos and cars
"""""
Movements.txt
FiscalNumber Month Billing Expenses
12345678 1 3780,24 1839,75
50609693 1 7006,54 6500,34
12345678 2 4560,00 5640,54
53453453 1 13760,00 12049,62
12345678 3 7654,83 8732,99
53453453 2 15708,93 10495,00
""""
Implement a program for:
• Read data in files of format similar to the examples provided
• Represent those data in appropriate structures (lists and dictionaries)
• Which company had most billing in month X?
• Which company had the most expenses in month X?
I really try to solve it but dont have ideia how to do .txt files and inplanted in the 2 last questions , can you help my guys ?
And the examples are :
""""
Company.txt
Company number Company name
12345678 ---> Stones Industry
50609693 ---> Cakes and soda
53453453 ---> Motos and cars
"""""
Movements.txt
FiscalNumber Month Billing Expenses
12345678 1 3780,24 1839,75
50609693 1 7006,54 6500,34
12345678 2 4560,00 5640,54
53453453 1 13760,00 12049,62
12345678 3 7654,83 8732,99
53453453 2 15708,93 10495,00
""""