Question: DONE IN PROLOG 4. ?-h([0, 1, 2, 3, 2, 1, 0]). 1 ** *** Write a Prolog program h (L) that processes the input list
4. ?-h([0, 1, 2, 3, 2, 1, 0]). 1 ** *** Write a Prolog program h (L) that processes the input list L as shown in the presented example. The program plots a vertical line and on the right hand side the number of asterisks that corresponds to values in the list. For example, if the value is 3 then the corresponding line should display | *** * 4. ?-h([0, 1, 2, 3, 2, 1, 0]). 1 ** *** Write a Prolog program h (L) that processes the input list L as shown in the presented example. The program plots a vertical line and on the right hand side the number of asterisks that corresponds to values in the list. For example, if the value is 3 then the corresponding line should display | *** *
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
