Problem 52
Describe some objects that might be found in a program for simulating the pedestrian traffic in a hotel lobby. Include explanations of the actions some of the objects should be able to perform.
Problem 53
What does the term type cast mean in the context of a programming language?
Problem 54
What is the difference between while and do-whi le loops?
Problem 58
Assuming that the first statement in the following Prolog program is intended to mean "Alice likes sports," translate the last two statements of the program. Then, list all the things that, based on this program, Prolog would be able to conclude that Alice likes. Explain your list. likes(alice, sports). likes(alice, music). likes(carol, music). likes(david, X) :- likes(X, sports). likes(alice, X) :- likes(david, X).