PROLOG: Can someone interpret the following question for me? Calls for Prolog Co
ID: 3678407 • Letter: P
Question
PROLOG:
Can someone interpret the following question for me?
Calls for Prolog Code.
There are in English two type of personal pronouns: the direct and the oblique.
The direct pronouns are I, you, he, she, it, we, y'all, they.
the oblique pronouns are me, you, him, her, it, us, yall, them.
Write a grammar that will generate the 8^3 = 512 grammatical sentences of the form below (but will not generate any of the 163^3 – 8^3 = 3584 ungrammatical permutations of those sentences).
X[pro,wrd,dir] preferred Y[pro,wrd,obl] to Z[pro,wrd,obl]
One of the sentences of the desired form is the grammatical I preferred her to him; one of the sentences of an undesired form is the ungrammatical *Me preferred she to he. Show that your grammar will generate the former but not the latter. You may ignore the semantic component of the rules of your grammar.
Note: Your prolog problem must recognize that X belongs to the category [pro,wrd,dir] of direct pronouns, that Y belongs to category [pro,wrd,obl] of oblique pronouns, that to Z belongs to the category [nom,cls,dat] of oblique nominal clauses, and that Z, like Y, belongs to[pro,wrd,obl]. Your grammar must also correctly recognize verbal phrases and verbal clauses in the sentences it generates. Say why these facts argue that English prepositions, like verbs, "govern an oblique".
Explanation / Answer
#include<stdio.h>/*find cube of any number*/
#include<conio.h>/*cube functions*/
long cuber (int);
void main ( )
{
int x;
printf("Enter Number");
scanf("%d",&x);
cuber(x);
goto (start);
}
long cuber (int x)
{
x=x*x*x;
printf("The Cube is = %d",x);
return x;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.