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-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 .
- 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 .
- 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
- lab_1 @courses:cs145-201951:labs
- e familiar with DrRacket procedures * Use cons, list and append * Use map * Use let* === Procedu... nitions: (define item 1) (define mylist '(1 2)) The following tester expressions represent the 4 possible ways to order item and mylist with cons. Copy/paste them into your definiti... r '(cons item item)) (tester '(cons item mylist)) (tester '(cons mylist item)) (tes
- 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
- 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 <
- 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
- week9 @courses:cs102-202051
- pu102-remotelab2.txt |Instructions for the linked list lab (LLL)}} * I'm separating out the individual... mitting your lab. * {{ :courses:cs102-202051:ilist.java |Java sourcefile IList.java, the interface}} * {{ :courses:cs102-202051:mylinkedlist.java |Java source file MyLinkedList.java - please
- 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
- 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
- week10 @courses:cs102-202051
- 02-202051:102-lec16.pptx |Today's lecture: Java's List Implementations and the Abstract Data Type (ADT)}... pu102-remotelab2.txt |Instructions for the linked list lab (LLL)}} * I'm separating out the individual... mitting your lab. * {{ :courses:cs102-202051:ilist.java |Java sourcefile IList.java, the interface}} * {{ :courses:cs102-202051:mylinkedlist.java |Jav
- 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