Lab1 CS110

docx

School

University of British Columbia *

*We aren’t endorsed by this school

Course

110

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

2

Uploaded by ElderDiscoveryTiger16

Report
(@problem 1) ;; Complete Problem 1 below using the following constants (define PREFIX "hello") (define SUFFIX "world") (string-append PREFIX "_" SUFFIX) (@problem 2) ;; Complete Problem 2 below using the following constants (define STR "helloworld") (define I 5) (string-append (substring STR 0 I) "_" (substring STR I)) (@problem 3) ;; Complete Problem 3 below using the following constant
(define CAT (bitmap/url "https://cs110.students.cs.ubc.ca/labs/cat.png")) (* (image-width CAT) (image-height CAT)) (@problem 4) ;; Complete Problem 4 below using CAT as defined above (cond ((= (image-width CAT) (image-height CAT)) "square") ((> (image-width CAT) (image-height CAT)) "wide") ((< (image-width CAT) (image-height CAT)) "tall")) (@problem 5) ;; Complete Problem 5 below using STR as defined above (string=? (substring STR 0 1) "h")
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help