code in c Or c++ Or Java Or python Marks: 10 Negative Marks :0 Single File Programming
Fantastic news! We've Found the answer you've been seeking!
Question:
code in c Or c++ Or Java Or python
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Python Code def segregatepeoplepeople Initialize empty lists for each kingdom chola chera pallava pa... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
c or c++ or Java or python 2. Dam Design Your company is designing a dam to be built across a stream to create a small lake. To reduce materials cost, it will be made of one or more concrete walls...
-
Java Help! Convert the following code from Python to Java Python: class Fruit: def __init__(self, name): self.name = name @property def name(self): return self._name @name.setter def name(self,...
-
JAVA PROGRAMMING / CODE IN JAVA 3. Create a binary expression tree for a postfix expression. 4. Write a program to evaluate a postfix expression and convert a postfixexpression to infix expression.
-
Consider the pistoncylinder arrangement shown in the sketch below. The gas forces on each side of the piston, assuming there are no frictional forces at the pistoncylinder interface, balance the...
-
The COSO internal control framework identifies five internal control components. Which of those components is most relevant to the procedures that SOX mandates public companies establish to enable,...
-
Does conservative accounting result in higher or lower accounting rates of return?
-
Refer to the information in Exercise 17-1. Assume that the following information is available for the companys two products for the first quarter of 2017. Required Compute activity rates for each...
-
Tri-State Bank and Trust is considering giving Josef Company a loan. Before doing so, management decides that further discussions with Josefs accountant may be desirable. One area of particular...
-
Ann wants to start a business that processes blueberries so that they are easier for people to store for the winter. How would transportation costs between Bethel and outside of Alaska help or hurt...
-
You are considering buying gifts for a pair of friends. Both truly enjoy video gaming. However, both have reduced their budget on these items because of the temptation that they can cause. Dana is...
-
Draws 3 sets of shapes of related sizes # Draw a rectangle # Draw a triangle with sides the same size as rectangle length # Draw a filled circle with the same area as the rectangle # Draw a...
-
On 1 January 20x1, P Co entered into an agreement with Tuscany Co to acquire the net assets and business of Tuscany Co. The following transactions arose on 1 July 20x1 to execute the agreement with...
-
A condenser is required to condense n-propanol vapor leaving the top of a distillation column. The n-propanol is essentially pure and is a saturated vapor at a pressure of 2.1 bara. The condensate...
-
Go to the St. Louis Federal Reserve FRED database, and find data on the civilian unemployment rate (UNRATE) and a measure of the natural rate of unemployment (NROU). a) Calculate the cyclical...
-
Recently, policymakers have debated whether an increase in the federal minimum wage (currently $7.25 an hour) would be good for the economy. Use a Phillips curve to explain how inflation would change...
-
Using a graphical representation of the new Keynesian model, describe the effects of an unanticipated negative demand shock (label this equilibrium as point 2). Compare these effects to those of an...
-
On April 1, 20x1, ABC Company acquired as a long-term investment a 20% ordinary share interest in DEF Company. ABC paid 7,000,000 for this investment. For the year ended December 31, 20x1, the...
-
Chris Zulliger was a chef at the Plaza Restaurant in the Snowbird Ski Resort in Utah. The restaurant is located at the base of a mountain. As a chef for the Plaza, Zulliger was instructed by his...
-
Jerry made the following contributions during 2012: His synagogue (by check).....................................................$680 The Democratic Party (by check)...
-
Carl Conch and Mary Duval are married and file a joint return. They live at 1234 Mallory Sq. Apt. 64, Key West, FL 33040. Carl works for the Key Lime Pie Company and Mary is a homemaker after losing...
-
Cypress Corporation has regular taxable income of $170,000 (assume annual gross receipts are greater than $5 million) and regular tax liability of $49,550 for 2012. The corporation also has tax...
-
Compare the air-standard cycle thermal efficiencies of a diesel cycle obtained by calculating the state points around the cycle with the value obtained from Eqn (3.20) for an 'engine' operating with...
-
Recalculate the Otto cycle in P16.5 using EQUIL2 to evaluate the conditions around the cycle. Do these calculations both with and without considering dissociation. How has the use of more accurate...
-
Recalculate the diesel cycle in P16.6 using EQUIL2 to evaluate the conditions around the cycle. Do these calculations both with and without considering dissociation. How has the use of more accurate...
Study smarter with the SolutionInn App