June 13th, 2006, 05:28 PM
Here is my solution:
(define password 'a123456)
(display "Account: ")
(display "Password: ")
(if (equal? password (read))
(let ((pas (ask-password))
(ask-username) stores whatever the user enters in after Account: into the variable acc.
(ask-password) stores whatever the user enters in after Password: into the variable pas.
(get-info) creates the two variables (acc and pas) and returns a list containing both items.
This is just one solution.
Last edited by Yegg` : June 13th, 2006 at 05:38 PM.