Answered step by step
Verified Expert Solution
Question
1 Approved Answer
'hello, world' from YOUR_NAME_HERE followed by a newline. Example using the command-line of an assignment subitted by student Zelmo Zeroman. Zelmo named his Lisp file
'hello, world' from YOUR_NAME_HERE followed by a newline.
Example using the command-line of an assignment subitted by student Zelmo Zeroman. Zelmo named his Lisp file hw3.lisp.
prompt: edit hw3.lisp prompt: clisp -c hw3.lisp prompt: clisp hw3 >hw.pl prompt: gprolog | ?- [hw]. compiling /home/gdt/prolog/hw.pl for byte code... /home/gdt/prolog/hw.pl compiled, 10 lines read - 355 bytes written, 18 ms 'hello, world' from Zelmo Zeroman
The generated hw.pl file must contain a file comment block that contains the following.
This Prolog program prints to the standard output stream the phrase 'hello, world' from MY_NAME followed by a newline to the standard output stream. @creator YOUR_FULL_NAME_GOES_HERE @generated YYYYY.MM.DD_FORMATTED_DATE_GOES_HERE
The output of hw.pl (when compiled and interpreted) by 'A' student Edith Foogooman should look like the following.
% % This Prolog program prints to the standard output stream the phrase % 'hello, world' from Edith Foogooman followed by a newline to the % standard output stream. % % @creator Edith Foogooman % @generated 02016.11.18 % :- initialization(main). main :- % Edith replaced this comment with her one line of code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started