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...
-
Refer to the information in Exercise 8-33. Required a. Prepare a production cost report using the weighted-average method. b. Is the ending inventory higher using FIFO or the weighted-average method?...
-
John has a 60% capital and profits inter- est in the JAS Partnership with a basis of $333,600, which includes his share of liabilities, when he decides to retire. Andrew and Stephen want to continue...
-
On October 1, 2020, New Co. issued an eight-year, \(6 \%, \$ 1,000\) bond at face value, with cash interest payable semiannually on April 1 and October 1. Required Provide journal entries to be made...
-
The August 31 bank statement of Watson Healthcare has just arrived from United Bank. To prepare the bank reconciliation, you gather the following data: a. The August 31 bank balance is $5,630. b. The...
-
Comet Diner is a small restaurant chain that is considering expanding into a new market, Capital City. Before deciding to open locations in Capital City, Comet management decided to conduct research...
-
To foster the development of self-efficacy, parents and caretakers should: A. provide tasks which a child can easily achieve: B. structure tasks that are a challenge but with a high likelihood of...
-
Mike's company produces at the total cost level: TC = 200 Q, while market demand is shown by the equation: Q = 100 -0.2 P. a. If the company is the only producer, determine the equilibrium price...
-
A plate with a surface area of 1 m 2 has a surface temperature of 70C. The plate is in an ambient air with a temperature of 20C and a heat transfer coefficient of 13.2 W/m2K. In order to increase the...
-
Levittown Company employs a process cost system for its manufacturing operations. All direct materials are added at the beginning of the process and conversion costs are added proportionately....
-
1.In at least four ways, accountants can add value to the capital budgeting process.Can you identify three of them?explain all methods.
-
Joanna received $60,600 compensation from her employer, the value of her stock in ABC company appreciated by $13,600 during the year (but she did not sell any of the stock), and she received $35,000...
-
Experiement: Little Albert Experiment Explain how the experiment has impacted psychology today.You can talk about how current methodology, testing equipmenT, questionnaires, surveys, therapy, or...
-
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...
-
In SAS No. 82, what are some industry condition risk factors? Some operating and financial stability risk characteristics?
-
What superseded SAS No. 82?
-
What is PCAOB's definition of internal controls?
Study smarter with the SolutionInn App