amples 6+2= 8 8 is 6+2. 642 12 12 is 6*2. 6-2 4 4 is 6-2. 6-8=-2 -2 is 6-8. 6응23D3 3 is 6/2. 7+2 3 3 is 7/2. 1 is the remainder when 7 is 1 is mod(7,2). divided by 2 ?-X is 30,Y is 5,Z is XCYCX*Y. Your answer: answer true ?-8 is 6+2. Your rtrue true ?- 12 is 6*2. Your answer: ?--2 is 6-8. Your answer: ?-3 is 6/2. Your answer: ?-1 is mod(7,2). Your answer:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Arithmetic examples
Prolog Notation
6+2 8
8 is 6+2.
62 12
12 is 6*2.
6-2 4
4 is 6-2.
6-8=-2
-2 is 6-8.
6 2= 3
3 is 6/2.
7+2=3
3 is 7/2.
1 is the remainder when 7 is 1 is mod(7,2).
divided by 2
?- X is 30,Y is 5,Z is XCYCX*Y. Your answer:
rtrue
:true
?- 8 is 6+2.
Your answer:"
?- 12 is 6*2.
Your answer:
?--2 is 6-8.
Your answer:rue
?-3 is 6/2.
Your answer:
?-1 is mod(7,2).
Your answer:
Transcribed Image Text:Arithmetic examples Prolog Notation 6+2 8 8 is 6+2. 62 12 12 is 6*2. 6-2 4 4 is 6-2. 6-8=-2 -2 is 6-8. 6 2= 3 3 is 6/2. 7+2=3 3 is 7/2. 1 is the remainder when 7 is 1 is mod(7,2). divided by 2 ?- X is 30,Y is 5,Z is XCYCX*Y. Your answer: rtrue :true ?- 8 is 6+2. Your answer:" ?- 12 is 6*2. Your answer: ?--2 is 6-8. Your answer:rue ?-3 is 6/2. Your answer: ?-1 is mod(7,2). Your answer:
?- X is 6+2.
Your answer:
?- X is 6*2.
Your answer:
?-R is mod(7,2). Your answer:
?- X is 10.5+4.7*2. Your Answer:
?- Y is 10, Z is Y+1. Your Answer:
?- X is sqrt (36).
Your Answer:
?- X is 10, Y is -X-2. Your Answer:
?- X is 30, Y is 5, Z is X+Y+X*Y+sin(X).
Your Answer:
?- X is 7, X is 6+1.
Your Answer:
?-88+15-3=:=110-5*2.
Your Answer:
?- 100=\=99.
Your Answer:
?- 6+4=:=6*3-8.
Your Answer:
?- sqrt (36) +4=:=5*11-45. Your Answer:
Your Answer:
?- X is 5/2,Y is 5//2,Z is 5 mod 2,W is mod(10,3).
?- checkeven(N):-M is N//2, N=:=2*M.
Transcribed Image Text:?- X is 6+2. Your answer: ?- X is 6*2. Your answer: ?-R is mod(7,2). Your answer: ?- X is 10.5+4.7*2. Your Answer: ?- Y is 10, Z is Y+1. Your Answer: ?- X is sqrt (36). Your Answer: ?- X is 10, Y is -X-2. Your Answer: ?- X is 30, Y is 5, Z is X+Y+X*Y+sin(X). Your Answer: ?- X is 7, X is 6+1. Your Answer: ?-88+15-3=:=110-5*2. Your Answer: ?- 100=\=99. Your Answer: ?- 6+4=:=6*3-8. Your Answer: ?- sqrt (36) +4=:=5*11-45. Your Answer: Your Answer: ?- X is 5/2,Y is 5//2,Z is 5 mod 2,W is mod(10,3). ?- checkeven(N):-M is N//2, N=:=2*M.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education