One of the regulations of the International Rugby Board (IRB) states that for a player to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
One of the regulations of the International Rugby Board (IRB) states that for a player to be eligible to play for a given country, the player's father or mother or grandfather or grandmother must have been born in that country. Assume that there is a complete genealogical database consisting of Prolog clauses of the form person (P, B, F, M), where P is a person's name, B is the country of P's birth, F is their father's name and M is their mother's name. For example, the clause person(bruce, australia, rhodri, bronwyn). might appear in such a database. Further assume that names in the database are constructed so as to refer uniquely to individuals. Write Prolog clauses defining the predicate eligible such that goals of the form eligible(P,C) succeed if and only if person P is eligible to play for country C according to the above regulation. [10 marks] Given a list of players on a given country's team, define a predicate checkteam that will check each member of the team for eligibility according to the eligible predicate, and furthermore check that each player appears on the list only once. The checkteam goal will fail if any player is ineligible or if any player is listed more than once. [10 marks] One of the regulations of the International Rugby Board (IRB) states that for a player to be eligible to play for a given country, the player's father or mother or grandfather or grandmother must have been born in that country. Assume that there is a complete genealogical database consisting of Prolog clauses of the form person (P, B, F, M), where P is a person's name, B is the country of P's birth, F is their father's name and M is their mother's name. For example, the clause person(bruce, australia, rhodri, bronwyn). might appear in such a database. Further assume that names in the database are constructed so as to refer uniquely to individuals. Write Prolog clauses defining the predicate eligible such that goals of the form eligible(P,C) succeed if and only if person P is eligible to play for country C according to the above regulation. [10 marks] Given a list of players on a given country's team, define a predicate checkteam that will check each member of the team for eligibility according to the eligible predicate, and furthermore check that each player appears on the list only once. The checkteam goal will fail if any player is ineligible or if any player is listed more than once. [10 marks]
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
To choose customer relationship strategy, it is important to categorize customers and products. Only a small number of customer/product combinations are very profitable. Use Pareto principle (80/20...
-
Prolog You are approached to compose a Prolog program to work with twofold trees. Your code shouldn't depend on any library predicates and you ought to expect that the mediator is running without...
-
Briefly describe ASCII and Unicode and draw attention to any relationship between them. [3 marks] (b) Briefly explain what a Reader is in the context of reading characters from data. [3 marks] A...
-
Assume that a trader in HSBS has bought EUR 10,000,000 on Feb 03, 2020. Estimate one day VAR with a 95% confidence interval for the FX position with the Historical Simulation approach. Compose some...
-
If applicable, compute , , n and d for the following roots, and find the corresponding characteristic polynomial. a. s = -2 6j b. s = 1 5j c. s = -10, -10 d. s = -10
-
Give two examples of nonfinancial measures of customer satisfaction relating to quality.
-
Evaluate this quote: Every international business, large or small, should have an annual audit by an independent auditor. Why must an auditor review the financial statements of a company each year?
-
(Audit evidence) During the course of an audit, the auditor examines a wide variety of documentation. Listed below are some forms of documentary evidence and the sources from which they are obtained....
-
Required information [ The following information applies to the questions displayed below. ] Data for Hermann Corporation are shown below: Fixed expenses are $ 8 1 , 0 0 0 per month and the company...
-
Amy Lloyd is interested in leasing a new car and has contacted three automobile dealers for pricing information. Each dealer offered Amy a closed-end 36 month lease with no down payment due at the...
-
Question 149: Place the accounting cycle steps in order. Step 1 Step 2 DROP HERE DROP HERE Prepare adjusting entries and run an adjusted trial balance. Prepare the unadjusted trial balance. Step 3...
-
Please use the following information to answer the next three questions. 20, 21 and 22) JCJ Inc. has (NI/EBT) = 25 JCJ Inc. has (EBT/EBIT PCJ Inc. has (EBIT/SALES) .80 JCJ Inc. has an equity...
-
You are the manager of a Family Practice clinic in a healthcare system that utilizes productivity benchmarks to monitor staffing efficiency. Your clinic has consistently been at or very near...
-
Over a period of one year, PepsiCo stocks have a total percentage return of -3.25%, capital gains yield of -6.35%, and a current price of $68.98. How much dividends per share did PepsiCo pay during...
-
Does APPLE issues stocks in foreign countries? If yes, are there any correlations in the stock price movements?
-
Calculate the APR and r EAR of non-free trade credit associated with credit terms of 2/10, net 30, and 1.5/15, net 55, assuming that customers who do not take the discount pay on the last due date....
-
3. To analyze the cash flow and retained earnings impact of a cyclical upturn in paper and linerboard prices (i.e., demonstrating the power of operating leverage in this capital-intensive industry).
-
What is a content filter? Where is it placed in the network to gain the best result for the organization?
-
Identify cost behavior (Learning Objective 1) The chart below shows three different costs: Cost A, Cost B, and Cost C. For each cost, the chart shows the total cost and cost per unit at two different...
-
Classify cost behavior (Learning Objective 3)} Ariel builds innovative loudspeakers for music and home theater. Identify the following costs as variable or fixed: a. Depreciation on equipment used to...
-
Predict and graph total mixed costs (Learning Objectives 1, 2) Suppose World-Link offers an international calling plan that charges \(\$ 5.00\) per month plus \(\$ 0.35\) per minute for calls outside...
Study smarter with the SolutionInn App