Find Jobs
Hire Freelancers

PROLOG PRAMMING LANGUAGE

$10-11 USD

Completed
Posted about 3 years ago

$10-11 USD

Paid on delivery
PLEASE DO THIS IN PROLOG PROGRAMMING LANGUAGE. This exercise is designed to help you practice arithmetic, decisions, and recursion in Prolog. Store your Prolog code in a file named nums (note: no file extension). 1. Write a Prolog predicate classify(+N, ?Classification): If N is bigger than 100, Classification should be the symbol big; if N is between 50 and 100 inclusive, Classification should be medium; and if N is smaller than 50, Classification should be small. For example, classify(24, X) should succeed with X = small, and classify(500, X) should succeed with X = big. 2. Write a Prolog predicate contains_big(+L) that takes a list L of numbers as an argument. The predicate should succeed if at least one of the numbers in the list is big (using the definition in problem #1), and should fail if none of the numbers in the list are big. Predicate contains_big should call predicate classifyfrom the previous problem to determine whether numbers are big. For example, contains_big([40, 692, 2, 800, 7])should succeed, and contains_big([2, 4, 6]) should fail.
Project ID: 29859666

About the project

3 proposals
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello! I am ready to carry out your project. You can read reviews about my work at: https://www.freelancer.com/u/VladimirLilenko?w=f From the Prolog, of course, familiar. Regards, Vladimir
$11 USD in 1 day
4.9 (52 reviews)
5.2
5.2
3 freelancers are bidding on average $25 USD for this job
User Avatar
Thanks for your project. I use Prolog programming daily in my regular employment. I will provide Prolog solutions to the 2 problems in the posting. A milestone payment for the full budget for this project must be deposited with this site before your offer can be accepted. Alan Idler Chief Software Architect Idleswell Software Creations
$15 USD in 3 days
5.0 (2 reviews)
3.6
3.6

About the client

Flag of UNITED STATES
Sewell, United States
0.0
0
Member since Apr 2, 2021

Client Verification

Other jobs from this client

Ada Programming Language
$10-30 USD
Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.