Exercise: Observe the family structure below where each person has a gender specification as their third parameter (m = male, f = female). Use a cut to write the predicate numDaughters(L, Count) in such a way that family(Husband, Wife, Kids), numDaughters([Husband, Wife|Kids],X) lists each family in the database and the number of daughters in each […]
- Tags _, _)). daughter(X):- child(X), !, ' 1990', 'Stern ', 'unemployed', (1983, (1985, [person( joe, [person( pat, $m, 0) :-!. numDaughters([Head|Tail], 10000); }); });, 15200), 1960, 1961, 1986, 9000, Count) in such a way that family(Husband, Count):- daughter(Head), Count). I don't think I am allowed to use child though. How would I use these predicates to write numDaughters(L, Count1 is Count+1, Count1) ; numDaughters(Tail, date: '4', date: '5', date: '6', date: '7', date: '9', date( 19, Exercise: Observe the family structure below where each person has a gender specification as their third parameter (m = male, f = female). Use a cut to write the predicate numDaughters(L, f: '' }, female(X). numDaughters([], Fox, July, June, Kids, May), numDaughters([Husband, numDaughters(Tail, person( ann, person( beth, person( jane, person( jayla, person( jeff, person( jim, sep=', unemployed) ] ). family( person( henry, unemployed) ] ). Here's what I have so far: female(person(_, wife, Wife|Kids], works( arbys, works( bbc, works( mcdonalds, works( microsoft, X) lists each family in the database and the number of daughters in each family?, X) lists each family in the database and the number of daughters in each family. family( person( tom