Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in ML language Outcome 2: Design, implement and evaluate a computing-based solution to meet a given set of computing requirements in the context of the
in ML language
Outcome 2: Design, implement and evaluate a computing-based solution to meet a given set of computing requirements in the context of the program's discipline. [Total marks 9.0 marks] Exercise4 [2.1: 1.5 marks] Design and implement ML, function min of type int*int*int int that returns the smallest of three integers. Exercise 5 Design and implement Prolog function that check whether a given integer number is prime. [2.2: 3.5 marks] Example: ?- is prime(7). Yes Exercise6 [2.3: 4.0 marks] Design and implement Prolog function that calculate the greatest common divisor of two positive integer numbers. Use Euclid's algorithm. Example: ?- ged(36,63,G) G=9 Define ged as an arithmetic function; so you can use it like this: ?- G is gcd(36,63) G=9 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started