Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

I am paid fairly for the work I do.

Answered: 1 week ago

Question

I receive the training I need to do my job well.

Answered: 1 week ago