Search
You can find the results of your search below.
Matching pagenames:
Fulltext results:
- assign4 @courses:cs101-2021-5657:assigns
- functions that computes all the permutations of a list of numbers * Be sure to write tests for each fu... , before you move on to the function of your wish list * Have a total of four functions by the time yo... -- ==== Background ==== The permutations of a list of numbers is the list of all possible sequences of those numbers. We will represent the permutations o
- lab6 @courses:cs101-2021-02
- (e.g., ''my-sum''). <code> fun my-product(lst :: List<Number>) -> Number: doc: ```returns the product of the numbers in list lst``` cases (List) lst: | empty => 1 | link(f, r) => f * my-product(r) end where: my-product(empty) is ... my-product([list: 2, 3]) is ... my-product([list: 5, 2, 3]) is .
- lab6 @courses:cs101-2021-0405
- (e.g., ''my-sum''). <code> fun my-product(lst :: List<Number>) -> Number: doc: ```returns the product of the numbers in list lst``` cases (List) lst: | empty => 1 | link(f, r) => f * my-product(r) end where: my-product(empty) is ... my-product([list: 2, 3]) is ... my-product([list: 5, 2, 3]) is .
- 06 @courses:cs101-2022b:labs
- n</span> <span class="name">product</span>(lst :: List<Number>) -> Number: <span class="keywo... tring">"Return the product of the numbers in list lst"</span> <span class="keyword">cases</span> (List) lst: | empty => 1 | link(f, r) => ... d">where</span>: product([<span class="keyword">list</span>: 5, 2, 3]) <span class="keyword">is</span>
- 05 @courses:cs101-2022b:assignments
- ems, we will tell you whether to use the built-in list operations (like <code>map</code> and <code>filte... ef="https://www.pyret.org/docs/latest/lists.html">List documentation</a></li> <li><a href="https://www.c... ask</strong>: Split <code>book-text</code> into a list of words, using Pyret’s <a href="https://www.pyre... split-all</code></a> function. Name the resulting list of words <code>split-text</code>.</p> </div> <h
- lab8 @courses:cs101-2021-5657:labs
- amples for this lab ==== A **''toast''** and **''list-of-toast''** are defined as follows: (define-s... but not limited to) “white” or “wheat”. \\ ; A list-of-toast (lot) is either ; - '() ; - (cons toast lot) \\ Here's an example of a **''list-of-toast''** that you should use in your examples... tions you write: \\ <code scheme> (define toast-list (list (make-toast "white" 0) (make-toas
- lab5 @courses:cs101-2021-5657:labs
- Exercises ** - Design a function that sorts a list of strings in ascending order. It will be a lot l... ction we designed in class this week that sorts a list of numbers. Be sure to follow the Design Recipe, ... de hand-in artifacts: - Data Definition for a list-of-string - you will find it useful to defi... der - Template for a function that consumes a list-of-string - Signature/Purpose Statement/Heade
- 05 @courses:cs101-2022b:labs
- n the table itself, let’s pull them out and get a list of all the free-text observations.</p> <div clas... all-observations</span>(squirrels :: Table) -> List<String>: ... <span class="keyword">end</span> </pre> <p>that returns a list of all the observation strings from the three col... – instead, think how you can use Pyret’s built-in list functions:</p> <ul> <li><code>append</code> (or <
- lab_1 @courses:cs145-201951:labs
- e familiar with DrRacket procedures * Use cons, list and append * Use map * Use let* === Procedu... ite a similar set of expressions for the built-in LIST and APPEND functions. Review the definitions for LIST and APPEND in DrRacket documentatioin. Comment ... r '(map (lambda (subsetlist) (list (first subsetlist) (second subsetlist)))
- week3 @courses:cs311-2021
- er for all time, not just for this snapshot. - List the order number and total dollars of all orders. - List the last name and home city of people whose prefix is "Dr.". - List id, name, and price of products with quantity more than 1007. - List the first name and home city of people born in th
- top @courses:cs203-201602:assignments
- 2: Create a class BankingSystem that maintains a list of account objects of class BankAccount that impl... . Have main() ask the banking system to print the list, to sort the list on increasing balance, and to print the list again. Keep it simple, do not add unneeded features. This
- top @courses:cs203-201602:lab7
- ns: Create a class BankingSystem that maintains a list of account objects of class BankAccount. Bank acc... nce. The BankingSystem should be able to sort the list on name and/or balance. Use comparators for sorti... . Have main() ask the banking system to print the list, to sort the list on increasing balance, and to print the list again. Keep it simple, do not add unneed
- week14 @courses:cs101-2021-5657
- 15: Filter, Map, Fold (begin slide 29: Folding a List) * {{lecture15.pdf|PDF}} * {{foldr.rkt}}... 4/part_three.html#(counter._(figure._fig~3aisl-ho-list))|Figure 95: ISL’s abstract functions for list processing (1)]] * [[https://htdp.org/2019-02-24/part_three.html#%28counter._%28figure._fig~3aisl-ho-list2%29%29|Figure 96: ISL's abstract functions for li
- week8 @courses:cs101-2021-5657
- ====== Week 8 ====== ~~NOTOC~~ ===== List Abbreviations, Sorting, and Multiple Lists ===== ==== Mond... f|PDF}} {{ lec8.rkt|Code}} * More lists * List abbreviations * DrRacket language change: Beginning Student with List Abbreviations! \\ \\ * Assignment 3: Bouncing Balls * demo * big-bang program with a list of structs as the state of the world * Due in
- style @courses:cs101-2021-5657
- gardless of how you actual work through your wish list. The phrase "top down" means that project files c... ted data structures:** <code scheme> ; N -> [List-of Posn] ; create the given number of cupcake... upcake SCENE-WIDTH SCENE-HEIGHT))) (build-list n one)))</code> (Note how ''one'' ignores its argument. Still, why would ''make-list'' in lieu of ''build-list'' not produce the corre