Scala assignement
Budget: ₹600 – ₹1,500 INR
Assignment +++
You are a fruit farm manager and you have several employees. Your
employees gather fruits every day. Your task is to reward the best
employees and drive your farm towards the best profitability. Of
course, you can't do that without proper data.
There are two files: harvest.csv and prices.csv. First contains data
on amounts of fruits collected by a given gatherer on a given day. The
other contains fruit prices on a given day.
Before you make any decision, you need to know:
1. Who is your best gatherer in terms of the amounts of fruits
gathered every month?
Are there employees that are better at gathering
some specific fruit?
2. What is your best-earning fruit (overall and by month)? Which is
your least profitable fruit (again, overall and by month)?
3. Which gatherer contributed most to your income (during the whole
year and by month)?
Amount - volume of fruits collected in KG ( or grams doesn’t matter)
Price – Price of fruit / Unit as used in amount
Profit – Amount * price
Income – Same as Profit
Although you could use spark to write the application or put the data
into some database, we want to see how you would solve the task
without it, using only scala. Still, you are allowed to use any other
libraries like something for parsing csv files or program arguments,
if you like, though the task should be solvable even without it.
The application should print answers to the console.
Remember to provide instructions on how to run the application.
Good Luck !!
You are a fruit farm manager and you have several employees. Your
employees gather fruits every day. Your task is to reward the best
employees and drive your farm towards the best profitability. Of
course, you can't do that without proper data.
There are two files: harvest.csv and prices.csv. First contains data
on amounts of fruits collected by a given gatherer on a given day. The
other contains fruit prices on a given day.
Before you make any decision, you need to know:
1. Who is your best gatherer in terms of the amounts of fruits
gathered every month?
Are there employees that are better at gathering
some specific fruit?
2. What is your best-earning fruit (overall and by month)? Which is
your least profitable fruit (again, overall and by month)?
3. Which gatherer contributed most to your income (during the whole
year and by month)?
Amount - volume of fruits collected in KG ( or grams doesn’t matter)
Price – Price of fruit / Unit as used in amount
Profit – Amount * price
Income – Same as Profit
Although you could use spark to write the application or put the data
into some database, we want to see how you would solve the task
without it, using only scala. Still, you are allowed to use any other
libraries like something for parsing csv files or program arguments,
if you like, though the task should be solvable even without it.
The application should print answers to the console.
Remember to provide instructions on how to run the application.
Good Luck !!