;======== ; Fall 2026 - CS 111 ; Week 1 Lab Exercise - save as lab1.rkt ; ; date: 2026-08-28 ;======== ;----- ; make the definitions and functions from the 2htdp/image module ; available in this file (require 2htdp/image) ;======== ; NOTE: ; * To receive credit for this lab exercise, you must: ; * be present during your scheduled lab time, ; either in BSS 313 or in the lab Zoom session, ; based on your lab section ; * participate appropriately in a pair (see below), ; either in BSS 313 or in a Zoom breakout room ; ;======== ; 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: ; 0. If needed, use the DrRacket "Language" menu to choose the language ; "Beginning Student", and click the Run button in the top-right ; corner to set that as your language. ; ; 1. COPY and PASTE the contents of this file into the DrRacket ; Definitions window (the top window), and save as: ; ; lab1.rkt ; ; 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. SAVE the contents of your definitions window frequently ; as you are working, to the driver's Google Drive, ; using a file name of lab1.rkt. ; * (You can use the File menu's "Save Definitions" command, or ; use its shortcut of typing the keys control-s or command-s.) ; ; 4. RUN the resulting file frequently as you are working, ; clicking the Run button in the top-right corner ; each time, looking over your expressions' values in ; the Interactions window (the bottom window), and fixing ; any errors that arise. ; ; (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 Learning Assistants/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! ; ; 5. When you are done, use Gmail to MAIL a copy of the ; resulting filled-in lab1.rkt file to BOTH of you ; ; 6. And, EACH of you should SUBMIT this file on Canvas ; BEFORE you leave lab. ; (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 (include first AND last 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 star expects a length-between-points in pixels, ; the string "solid" or "outline", and a color name written as a ; string, and returns a 5-pointed star 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 data 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 ; BEFORE you leave lab: ; * 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. ;=====