expand icon
book New Perspectives on Computer Concepts 2014 17th Edition by June Jamrich Parsons ,Dan Oja cover

New Perspectives on Computer Concepts 2014 17th Edition by June Jamrich Parsons ,Dan Oja

النسخة 17الرقم المعياري الدولي: 978-1285764634
book New Perspectives on Computer Concepts 2014 17th Edition by June Jamrich Parsons ,Dan Oja cover

New Perspectives on Computer Concepts 2014 17th Edition by June Jamrich Parsons ,Dan Oja

النسخة 17الرقم المعياري الدولي: 978-1285764634
تمرين 25
While browsing through several programs posted online, you come across the following code and realize it is written using the
While browsing through several programs posted online, you come across the following code and realize it is written using the     programming language. male(frodo). male(mungo). male(largo). male(balbo). female(berylla). female(belladonna). female(primula). female(sella). parents(mungo,berylla,balbo). parents(frodo,primula,drogo). parents(largo,berylla,balbo). parents(sella,berylla,balbo). brother_of(X,Y):- male(Y), parents(X,Mother,Father), parents(Y,Mother,Father). programming language.
male(frodo).
male(mungo).
male(largo).
male(balbo).
female(berylla).
female(belladonna).
female(primula).
female(sella).
parents(mungo,berylla,balbo).
parents(frodo,primula,drogo).
parents(largo,berylla,balbo).
parents(sella,berylla,balbo).
brother_of(X,Y):-
male(Y),
parents(X,Mother,Father),
parents(Y,Mother,Father).
التوضيح
موثّق
like image
like image

Language of online program
• Prolog is ...

close menu
New Perspectives on Computer Concepts 2014 17th Edition by June Jamrich Parsons ,Dan Oja
cross icon