Question: code in c Or c++ Or Java Or python Marks: 10 Negative Marks :0 Single File Programming Question South India is divided into 4 big
code in c Or c++ Or Java Or python



Marks: 10 Negative Marks :0 Single File Programming Question South India is divided into 4 big kingdoms and ruled by great kings chola,chera,pallava,pandiya. Due to recent war, people of those kingdoms were separated in various places but they have x and y co-ordinates as identity of their current location. Note: 1. North east is ruled by chola. 2. North west is ruled by chera. 3. South west is ruled by pallava. 4. South east is ruled by pandya. 5. people who are not belongs to any of the kingdom will be segregated as renounce. Using their x and y co-ordinates seggregate people with repect to kingdoms.
Step by Step Solution
3.53 Rating (163 Votes )
There are 3 Steps involved in it
Python Code def segregatepeoplepeople Initialize empty lists for each kingdom chola chera pallava pa... View full answer
Get step-by-step solutions from verified subject matter experts
