[SOLVED] 代写 prolog Instructions

30 $

File Name: 代写_prolog_Instructions.zip
File Size: 244.92 KB

SKU: 6464902890 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


Instructions
PROJECT 1: ProLog Programming
This project consists of writing
Prolog program to solve the problem below.
1) Type your program in Notepad or Notepad++ and call it YourFirstName_YourLastName.
2) Test if it works and solves the problem correctly using the web page https://swish.swi-prolog.org/
3) Submit your Notepad file via this link in Bb.
_________________________________________________________________________________.
Training Stars #1
From the clues given below, can you work out where everyone sits?
The first group of trainee astronauts are all sitting around the table, waiting to start their
first day of training.
Note: Seat 1 is next to Seat 2 and Seat 8, etc. Seat 5 is across from Seat 1, and Seat 7 is
across from Seat 3, etc. Seat 2 is a higher seat number that Seat 1, etc.
1. William is next to Alisa and Nick.
2. William is across from Gabbie.

3. Amanda is next to Sarah.
4. Sarah is across from Eric.
5. Nick is next to Eric.
6. Sydney is at Seat 4 and sits next to Gabbie
7. Gabbie has a higher seat number than Sydney.
8. Alisa is not in Seat 2.
Answer.
Seat 1 = William
Seat 2 = Nick
Seat 3 = Eric
Seat 4 = Sydney
Seat 5 = Gabbie
Seat 6 = Amanda
Seat 7 = Sarah
Seat 8 = Alisa
Sydney is in Seat 4 and she is next to Gabbie (Clue 6), so Gabbie is in either Seat 3 or Seat
5. But Gabbie has a higher seat number than Sydney (Clue 7). Therefore Gabbie is in Seat
5.
William is across from Gabbie (Clue 2) and therefore is in Seat 1.
Nick is next to Eric (Clue 5) so can only be in Seat 3.
Sarah is across from Eric (Clue 4), and therefore is in Seat 7. Amanda is next to Sarah (Clue 3) and can only be in Seat 6.
William is next to Alisa and Nick (Clue 1), so Alisa and Nick are in Seat 2 and Seat 8 (either
way around). But Alisa is not in Seat 2 (Clue 8). Therefore Alisa is in Seat 8 and Nick is in
Seat 2.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 代写 prolog Instructions
30 $