Find Jobs
Hire Freelancers

Basic Prolog program

$10-15 AUD

进行中
已发布超过 4 年前

$10-15 AUD

货到付款
I am new to start this language, there is a problem that cannot be solved. There are two buttons: button a and button b. and two lights: light p and light q. Rule: - pressing button a the light p will be on. - pressing button b will interchanges p and q. - initially, p and q are off. - goal: p and q are on. Use the Prolog language to solve this question. Only use clauses of the form like this: p(T+1) :- ... q(T+1) :- ... Using the following action names: name: press_a, meaning: press button a name: press_b, meaning: press button b the rule T+1 instantiated by 1 and T instantiated by 0, and the additional fact press_a(0). the program should mention these six atoms:p(1),p(1),p(0),p(0),press_a(0),press_b(0). The part of my code, but I am not sure if it is correct: p(T+1) :- press_a(T),not p(T). p(T+1) :- q(T), not p(T), press_b(T). q(T+1) :- not q(T), p(T), press_b(T).
项目 ID: 23530620

关于此项目

3提案
远程项目
活跃4 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hi, I'm a systems engineer and I can carry out your project without problems. Could you contact me to know more details?
$45 AUD 在7天之内
0.0 (0条评论)
0.0
0.0
3威客以平均价$47 AUD来参与此工作竞价
用户头像
I can do it. Please check my profile for my previous projects. And also dont hesitate to contact me for this work
$25 AUD 在1天之内
5.0 (10条评论)
3.8
3.8
用户头像
Hello, I use Prolog programming daily in my regular employment. I will create a Prolog solution to your posted problem. I will use SWI Prolog. 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
$70 AUD 在3天之内
5.0 (2条评论)
3.1
3.1

关于客户

CHINA的国旗
Yancheng, China
0.0
0
会员自1月 23, 2020起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。