Lisp Programming Follow the directions carefully. Create a new Scheme source cod
ID: 3669420 • Letter: L
Question
Lisp ProgrammingFollow the directions carefully.
Create a new Scheme source code file. The traditional file extension is .scm. In this file, define a procedure that takes a two string parameters corresponding to first and last name, and prints a message that says “Hello <first> <last>” on a line by itself, where <first> and <last> indicate parameter values. On the last line of your script, execute this procedure with code like this:
(hello "Robert" "Bloom")
Try using the built-in string-append procedure to accomplish this. Lisp Programming
Follow the directions carefully.
Create a new Scheme source code file. The traditional file extension is .scm. In this file, define a procedure that takes a two string parameters corresponding to first and last name, and prints a message that says “Hello <first> <last>” on a line by itself, where <first> and <last> indicate parameter values. On the last line of your script, execute this procedure with code like this:
(hello "Robert" "Bloom")
Try using the built-in string-append procedure to accomplish this. Lisp Programming
Follow the directions carefully.
Create a new Scheme source code file. The traditional file extension is .scm. In this file, define a procedure that takes a two string parameters corresponding to first and last name, and prints a message that says “Hello <first> <last>” on a line by itself, where <first> and <last> indicate parameter values. On the last line of your script, execute this procedure with code like this:
(hello "Robert" "Bloom")
Try using the built-in string-append procedure to accomplish this.
Explanation / Answer
(define (hello fname lname)
(display (string-append "Hello " fname " " lname)))
(hello "Robert" "Bloom")
(newline)
//Hope it helps. :-)
//If you have any query or confusion, please leave a comment, I’ll try to explain in more details.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.