CS/CE XXXXXXXXXXAssignment#4 Due Date: 4/10/22, 11:59 pm 1-Using the bush family tree, write a prolog program ( a collection of facts and rules) to answer the following queries A. Who is the father of...

Just need Q5 and 6 done with full source code and queries working as well with screenshots


CS/CE 4337 - Assignment#4 Due Date: 4/10/22, 11:59 pm 1-Using the bush family tree, write a prolog program ( a collection of facts and rules) to answer the following queries A. Who is the father of Noelle Bush? B. Who is/are the brother of Noelle Bush? C. Does Noelle Bush have any sister? D. Who is/are the sister/s or brother/s of Jeb Bush? E. Who is the grandmother of Noelle Bush? F. Who is the grandfather of Noelle Bush? G. Who is/are the aunt/s of Noelle Bush? H. Who is/are the uncle/s of Noelle Bush? I. Who is/are the great-grandfather/s of Noelle Bush? J. Who is/are the great-grandmother/s of Noelle Bush? K. Who is/are the great-great-grandfather/s of Noelle Bush? L. Who is/are the great-great-grandmother/s of Noelle Bush? CS/CE 4337-Spring 22- Assignment#4 1 2-Write a prolog program to reverse a list. For example ?- reversea([a,b,c,d],Q). Q = [d,c,b,a] Please also manually trace the above example 3-Write a prolog program to get a list and return the number of even elements in the list. For example ?- nelements([ 1, 2, 3, 4 ,5], Q). Q = 2 4-Write a prolog program to get a list and delete the last two a list returns the list without those elements For example ?- delements([a,b,c,d,e,f], Q). Q = [a,b,c,d] 5-The following picture shows a part of UT campus map. Write a prolog program to find all acceptable coloring of UT map such that connected buildings have dif- ferent colors. If two buildings are connected indirectly, the can have a same col- ors. For example, GR and JO should have different colors, while GR and FN could have the same color. Please note that your program should color the map using minimum number of colors. CS/CE 4337-Spring 22- Assignment#4 2 6-The following table shows a chart of SAT results for Charles County Public Schools 2009-10 college-bound seniors. Using above information, Write a prolog program (collection of facts and rules) to answer the following queries A. Which school/s has/have the smallest number of students in 2009-2010 or 2008-2009? B. Which school/s has/have the highest SAT score (total) in 2009-2010 and 2008-2009? C. Which school/s has/have the Math score grater than 500 in 2009-2010? D. What is the Total SAT score for LACKEY school in 2009-2010 (calculate it us- ing critical reading, math, and writing scores) E. What is the Total number of students in the county in 2009-2010 (calculate it using NO column) F. Which school/s has/have the lowest Math score or highest writing score in 2009-2010? G. Which year Maryland got a higher Math score? H. What is the average math score in the county in 2009-2010 ? (Don’t use the information for county) I. What is the average math score for STONE school in 2009-2010 and 2008-2009? J. Which school/s did get the lowest critical score or the highest math score in 2009-2010 or 2008-2009? CS/CE 4337-Spring 22- Assignment#4 3
Apr 19, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here