home *** CD-ROM | disk | FTP | other *** search
- ;lesson3 lisp routine to check answers to CAD lesson #3
-
- (defun C:ANSWERS (/ set1 n na text blk an1 )
- (prompt "\nPLEASE READ QUESTION #1 BEFORE ANSWERING")
- (setq ans1 (strcase(getstring "\nENTER YOUR ANSWER TO QUESTION #1 <T/F>")))
- (if (= ans1 "F") (PROGN(command "text" "1,5.1" "" "F" )
- (command "insert" "ok" "8.08,6.5" "" "" ""))
- (PROGN(command "text" "1,5.1" "" "T" )
- (command "insert" "bad" "8.08,6.5" "" "" "")))
- (redraw)
- (Q2)
- )
-
- (defun q2 ()
- (prompt "\nPLEASE READ QUESTION #2 BEFORE ANSWERING")
- (setq ans2 (strcase(getstring "\nENTER YOUR ANSWER TO QUESTION #2 <T/F>")))
- (if (= ans2 "F") (PROGN(command "text" "1,4.5" "" "F" )
- (command "insert" "ok" "8.08,6" "" "" ""))
- (PROGN(command "text" "1,4.5" "" "T" )
- (command "insert" "bad" "8.08,6" "" "" "")))
- (REDRAW)
- (Q3)
- );end defunQ2
-
- (defun q3 ()
- (prompt "\nPLEASE READ QUESTION #3 BEFORE ANSWERING")
- (setq ans3 (strcase(getstring "\nENTER YOUR ANSWER TO QUESTION #3 <T/F>")))
- (if (= ans3 "F") (PROGN(command "text" "1,3.9" "" "F" )
- (command "insert" "ok" "8.08,5.5" "" "" ""))
- (PROGN(command "text" "1,3.9" "" "T" )
- (command "insert" "bad" "8.08,5.5" "" "" "")))
- (REDRAW)
- (q4)
- );end defunQ3
-
- (defun q4 ()
- (prompt "\nPLEASE READ QUESTION #4 BEFORE ANSWERING")
- (setq ans4 (strcase(getstring "\nENTER YOUR ANSWER TO QUESTION #4 <T/F>")))
- (if (= ans4 "F") (PROGN(command "text" "1,3.2" "" "F" )
- (command "insert" "ok" "8.08,5" "" "" ""))
- (PROGN(command "text" "1,3.2" "" "T" )
- (command "insert" "bad" "8.08,5" "" "" "")))
- (REDRAW)
- (q5)
- );end defunQ4
-
-
- (defun q5 ()
- (prompt "\nPLEASE READ QUESTION #5 BEFORE ANSWERING")
- (setq ans5 (strcase(getstring "\nENTER YOUR ANSWER TO QUESTION #5 ")))
- (if (= ans5 "E") (PROGN(command "text" "4.8,5.9" "" ans5 )
- (command "insert" "ok" "8.08,4.5" "" "" ""))
- (PROGN(command "text" "4.8,5.9" "" ans5 )
- (command "insert" "bad" "8.08,4.5" "" "" "")))
- (REDRAW)
- (PROMPT "\nPLEASE COMPLETE TASK IN QUESTION #6")
- (PROMPT "\nTHEN TYPE <CONT6> WHEN INSTRUCTED TO DO SO IN THE INSTRUCTIONS")
- );end defunQ5
-
- (defun c:cont6 ()
- (prompt "\nPLEASE READ QUESTION #6 BEFORE ANSWERING")
- (setq ans6 (strcase(getstring "\nENTER YOUR ANSWER TO QUESTION #6 ")))
- (if (= ans6 "8") (PROGN(command "text" "4.8,4.4" "" ans6 )
- (command "insert" "ok" "8.08,4" "" "" ""))
- (PROGN(command "text" "4.8,4.4" "" ans6 )
- (command "insert" "bad" "8.08,4" "" "" "")))
- (REDRAW)
- (q7)
- );end defun6
-
- (defun q7 ()
- (prompt "\nPLEASE READ QUESTION #7 BEFORE ANSWERING")
- (setq ans7 (strcase(getstring "\nENTER YOUR ANSWER TO QUESTION #7 <T/F>")))
- (if (= ans7 "F") (PROGN(command "text" "4.8,3.5" "" "F" )
- (command "insert" "ok" "8.08,3.5" "" "" ""))
- (PROGN(command "text" "4.8,3.5" "" "T" )
- (command "insert" "bad" "8.08,3.5" "" "" "")))
- (REDRAW)
- (q8)
- );end defunQ7
-
- (defun q8 ()
- (prompt "\nPLEASE READ QUESTION #8 BEFORE ANSWERING")
- (setq ans8 (strcase(getstring "\nENTER YOUR ANSWER TO QUESTION #8 ")))
- (if (= ans8 "A") (PROGN(command "text" "4.8,2.7" "" ans8 )
- (command "insert" "ok" "8.08,3" "" "" ""))
- (PROGN(command "text" "4.8,2.7" "" ans8 )
- (command "insert" "bad" "8.08,3" "" "" "")))
- (REDRAW)
- (q9)
- );end 8
-
- (defun q9 ()
- (prompt "\nPLEASE READ QUESTION #9 BEFORE ANSWERING")
- (setq ans11 (strcase(getstring "\nENTER YOUR ANSWER TO QUESTION #9" )))
- (if (OR (= ans11 "A")
- (= ans11 "B")
- (= ans11 "C")
- )
- (command "insert" "closing" "5.23,1.47" "" "" ""))
- (REDRAW)
- (command "end" )
- );end defun9
- ;______________________________________________________
-
- (defun c:ldl ()
- (load"lesson3")
- )
- (defun c:el ()
- (command "blue" "lesson3.lsp" )
- )
-