100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

University of British Columbia CPSC 110 LAB 6

Rating
3.0
(1)
Sold
2
Pages
3
Grade
A+
Uploaded on
15-10-2021
Written in
2021/2022

University of British Columbia CPSC 110 LAB 6

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
October 15, 2021
Number of pages
3
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

;; The first three lines of this file were inserted by DrRacket. They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-reader.ss" "lang")((modname |LAB 6|) (read-case-sensitive #t)
(teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(require 2htdp/image)




(define-struct sentence (name subs))
;; Sentence is (make-sentence String ListOfSentence)
;; interp. a sentence representing a single part of the tree with
;; name the sentence itself
;; subs the list of sub-sentences within the sentence

;; ListOfSentences is one of:




m
;; - empty




er as
;; - (cons Sentence ListOfSentence)




co
;; interp. a list of sentences




eH w
o.
(define joking (make-sentence "joking about jealousy" empty))
rs e
(define you (make-sentence "you really mean it" empty))
ou urc
(define in (make-sentence "in a book to school special about mono" empty))
(define perched (make-sentence "perched on the tip of a sinking boat" empty))
(define freez (make-sentence "freeze time" empty))
o

(define my (make-sentence "my favourite song on repeat" empty))
aC s


(define it (make-sentence "it is your last chance" empty))
vi y re



(define we-are (make-sentence "we are" (list in perched)))
(define like (make-sentence "like" (list it you we-are)))
(define to (make-sentence "to" (list freez my)))
ed d




(define kiss-me (make-sentence "kiss me" (list joking like to)))
ar stu




#;#;
(define (fn-for-sentence s)
is




(... (sentence-name s)
Th




(fn-for-los (sentence-subs s))))

(define (fn-for-los los)
(cond [(empty? los) (...)]
sh




[else
(... (fn-for-sentence (first los))
(fn-for-los (rest los)))]))




This study source was downloaded by 100000805705997 from CourseHero.com on 10-14-2021 21:04:54 GMT -05:00


https://www.coursehero.com/file/21394492/LAB-6rkt/
$2.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

Reviews from verified buyers

Showing all reviews
3 year ago

3.0

1 reviews

5
0
4
0
3
1
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
StuviaGuides West Virgina University
Follow You need to be logged in order to follow users or courses
Sold
15169
Member since
6 year
Number of followers
8354
Documents
5312
Last sold
1 day ago
Accounting, Finance, Statistics, Computer Science, Nursing, Chemistry, Biology & More — A+ Test Banks, Study Guides & Solutions

As a Top 1st Seller on Stuvia and a nursing professional, my mission is to be your light in the dark during nursing school and beyond. I know how stressful exams and assignments can be, which is why I’ve created clear, reliable, and well-structured resources to help you succeed. I offer test banks, study guides, and solution manuals for all subjects — including specialized test banks and solution manuals for business books. My materials have already supported countless students in achieving higher grades, and I want them to be the guide that makes your academic journey easier too. I’m passionate, approachable, and always focused on quality — because I believe every student deserves the chance to excel.

Read more Read less
4.3

2134 reviews

5
1471
4
281
3
168
2
69
1
145

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions