Lecture 26 – November 30th
Here is a link to the last programming assignment of the semester. It is, of course, a Prolog program. It is due next Tuesday December 5th.
Here’s a link to the soap opera.
Parameter Passing Modes
Pass by location (address, reference)
Pass by value/result
Using Mini-Language Procedures,
write a short program that will contain a procedure named ADD with three
parameters . It will find the sum of its two value parameters and return the sum in its third parameter. Your main program should read in the two
values to be summed, call the procedure
and output the three values.