You are on page 1of 4

Assignment

Office Location Selection


Problem Statement
Office Location Selection
Company gives 10 Locations where Office can be leased in Mumbai
Employees can give 3-5 Locations as preference from list of 10 Locations
Each Preference has a weightage associated with it
Final three Locations offered basis number of times employees select it and associated weights against each preference
Also, Company wants to know least 2 preferred locations so that they do not consider it in future also
Company also wants to know for what percent of employees their preference not met

Data Available
Location List
Employee preference
Weightage

To Find
Three locations where office will be based out of
For each employee, calulate if there preference is met or not
-Preference is said to be met if more than 50% of employees' choices are offered finally
Percentage of employees whose preference not met
Least 2 Preferred Locations
Data
Employee Wise Preference Location List
Name Preference 1 Preference 2 Preference 3 Preference 4 Preference 5 Bandra
Preference Weight 10 8 5 3 1 Kurla
Ravi Sharma Chembur Thane Colaba Powai Andheri East Andheri East
Meera Patel Andheri East Bandra Kurla Powai Andheri West
Sanjay Singh Chembur Bandra Colaba Andheri East Chembur
Priya Kapoor Kurla Vashi Andheri East Thane Colaba Powai
Arjun Reddy Thane Kurla Andheri West Ghatkopar Vashi Thane
Nisha Verma Kurla Andheri West Bandra Powai Andheri East Ghatkopar
Rahul Tiwari Andheri East Bandra Colaba Kurla Thane Colaba
Aisha Khan Ghatkopar Andheri West Chembur Vashi Kurla Vashi
Rajesh Gupta Bandra Vashi Chembur Thane
Pooja Malhotra Colaba Bandra Vashi Chembur Thane
Vikram Desai Powai Colaba Chembur Thane
Ananya Joshi Ghatkopar Bandra Thane Andheri West Andheri East
Karthik Nair Bandra Colaba Andheri East Vashi Ghatkopar
Shreya Agarwal Colaba Chembur Ghatkopar Andheri East Andheri West
Aditya Mehta Ghatkopar Thane Bandra Chembur Andheri West
Swati Choudhury Andheri West Ghatkopar Vashi Andheri East
Rajat Khanna Andheri East Ghatkopar Chembur
Nandini Srinivasan Chembur Andheri East Ghatkopar Thane
Vishal Mallick Ghatkopar Bandra Andheri East Thane Kurla
Anjali Bhatia Andheri West Chembur Andheri East Colaba Thane
Questions
Sr No Question Answer
1 Which is the most prefered Location?
2 Which is the second most prefered Location?
3 Which is the third most prefered Location?
4 Which two Locations are least preferred?
5 Which Location is selected maximum no of times as first preference?
6 Which Employee had their maximum Preference met?
7 Which Employee had their least Preference met?
8 What % of employees had their preferences met?
9 Which function can you use to extract second smallest value from an array?
10 Which function can you use to count text in an array based on multiple criteria?

You might also like