;======== ; Fall 2024 - CS 111 ; Week 1 Lab Exercise ; ; date: 2024-08-30 ;======== ;----- ; make the operations in the 2htdp/image module ; available for this file (require 2htdp/image) ;======== ; Pair-programming: ; * TWO students working at ONE computer ; * ONE student, student A, OPENS a copy of this file in ; DrRacket ; * the OTHER student, student B, says what to type, and student A ; types it into this file ; * BOTH students should be looking at the shared computer screen, ; and discussing concepts/issues along the way ;======== ;======== ; USING pair-programming: ; 1. COPY and PASTE the contents of this file into a DrRacket ; Definitions window ; 2. ADD comments and expressions TO THIS as specified below ; (one student saying what to type, the other student typing it ; into DrRacket) ; ; ******** ; * DO NOT DELETE THE COMMENTS! They speed up grading! ; ******** ; ; 3. RUN the resulting file frequently along the way, fixing ; any errors that arise (and SAVE the definitions window ; to the driver's Google Drive, say as lab1.rkt) ; ; (Need help with an error? Or just have a question? ; * If needed, comment out the line(s) with an error in the meantime, ; putting ; at the beginning of each such line ; * Let the lab instructor know if you have a question ; * Note that if they are helping others, it might be a while until ; they can get to you. Try to work on later problems while you wait, ; and it is also fine for pairs to help each other!) ; ; 4. When you are done, use Gmail to MAIL a copy of the ; resulting filled-in lab1.rkt file to BOTH of you ; 5. And, EACH of you should SUBMIT this file on Canvas ; (more instructions for this are at the end of this file) ;======== ;===== ; leave a blank line, and then put COMMENT(s) containing BOTH ; of your names: ;===== ; leave a blank line, and then put a SIMPLE expression of type number ;===== ; leave a blank line, and then put a SIMPLE expression of type string ;===== ; leave a blank line, and then put a SIMPLE expression of type boolean ;===== ; leave a blank line, and then put a SIMPLE expression of type image ; (not TOO big, please!) ;===== ; leave a blank line, and then put a COMPOUND expression of type number ; (hint: operators + - * / and function string-length all happen to ; return numbers) ;===== ; leave a blank line, and then put a COMPOUND expression of type string ; (hint: string-append expects two string arguments, and returns ; a string that is its arguments combined into one string) ;===== ; leave a blank line, and then put a COMPOUND expression of type image ; (hint: function triangle expects a side-length in pixels, the string ; "solid" or "outline", and a color name written as a string, and ; returns a triangle image with those features) ; ; (optional: want to try a different image operation? See the ; "Some DrRacket Tidbits" handout posted along with this lab exercise ; for some additional possibilities) ;===== ; leave a blank line, and then put at least FIVE additional, different ; compound expressions, of any type you would like, ; putting a blank line between each for readability ;===== ; Remember: once you have Run these and are satisfied with them, ; * Use Gmail to EMAIL copies of this file lab1.rkt ; to BOTH of you ; ; * BOTH of you should submit this file on Canvas: ; * go to the course Canvas site (canvas.humboldt.edu, ; select your course CS 111) ; * click on "Modules" on the left-hand-side ; * scroll down to the "Lab Exercises" section ; * click the "Week 1 Lab Exercise" link ; * follow the Canvas instructions for uploading your ; Racket file. ;=====