Search
You can find the results of your search below.
Fulltext results:
- asmt2 @courses:cs101-2021-02
- s-keyword">add</span><span class="bash">-one(n :: Number) -> Number: </span> n + <span class="hljs-number">1</span> where: <span class="hljs-keyword">add</span><span clas... "hljs-attr">TARGET-AGE</span> = <span class="hljs-number">25</span> <span class="hljs-attr">TARGET-TOWN</s
- asmt2 @courses:cs101-2021-0405
- s-keyword">add</span><span class="bash">-one(n :: Number) -> Number: </span> n + <span class="hljs-number">1</span> where: <span class="hljs-keyword">add</span><span clas... "hljs-attr">TARGET-AGE</span> = <span class="hljs-number">25</span> <span class="hljs-attr">TARGET-TOWN</s
- 03 @courses:cs101-2022b:assignments
- >mins-since-midnight</span>(time :: String) -> Number: ... <span class="keyword">end</span> </code></... those in the table), it should convert it to the number of minutes since midnight.</p> <p><strong>Hints</... cs/latest/strings.html#%28part._strings_string-to-number%29"><code>string-to-number</code></a>. Despite its name, the output is <em>not</em> a number! It’s <code>
- 06 @courses:cs101-2022b:labs
- <span class="name">product</span>(lst :: List<Number>) -> Number: <span class="keyword">doc</span>: <span class="string">"Return the product of t... n class="name">sum-of-cubes</span>(lst :: List<Number>) -> Number: <span class="keyword">doc</span>: <span class="string">"Return the sum of the c
- lab8 @courses:cs101-2021-5657:labs
- level)) ; A toast is a ; (make-toast string number[0 to 10]) ; where a toast’s kind can be any str... consumes a **''list-of-toast''** and produces the number of **''toast''**s in the list with the **''kind''... ignature/purpose/header: <code>; list-of-toast -> number ; counts the number of toasts in the list with the kind "white" (define (count-white lot) ...) </code> Be
- 02 @courses:cs101-2022b:labs
- /span> <span class="name">grade</span>(percent :: Number) -> String: <span class="keyword">doc</span>... class="name">saffir-simpson</span>(wind-speed :: Number) -> String: ... <span class="keyword">end</s... > <span class="name">at-vassar</span>(latitude :: Number, longitude :: Number) -> Boolean: ... <span class="keyword">end</span> </code></pre> <p>It should r
- asmt3 @courses:cs101-2021-0405
- (like those in the table) and converts it to the number of minutes since midnight.</p> <p><strong>Note</s... cs/latest/strings.html#%28part._strings_string-to-number%29"><code>string-to-number</code></a>. Despite its name, the output is <em>not</em> a number! It's <code>some</code> number if the string
- asmt3 @courses:cs101-2021-02
- (like those in the table) and converts it to the number of minutes since midnight.</p> <p><strong>Note</s... cs/latest/strings.html#%28part._strings_string-to-number%29"><code>string-to-number</code></a>. Despite its name, the output is <em>not</em> a number! It's <code>some</code> number if the string
- lab6 @courses:cs101-2021-02
- , ''my-sum''). <code> fun my-product(lst :: List<Number>) -> Number: doc: ```returns the product of the numbers in list lst``` cases (List) lst: | empty ... the numbers: <code> fun sum-of-cubes(lst :: List<Number>) -> Number: cases (List) lst: | empty => ... | link(f, r) => ... end where: sum-of-cu
- lab2 @courses:cs101-2021-0405
- ur_clock|military time]], e.g., 9:00 a.m. is the number ''0900'' and 6:00 p.m. is ''1800''. If the time ... called. For example, this is valid code: <code> number = 111 if number == 111: "Yay" else: "Nay" end </code> ==== Part 2 ==== Your friend came up with a... ite a function <code>saffir-simpson(wind-speed :: Number) -> String</code> that takes in the average recor
- lab6 @courses:cs101-2021-0405
- , ''my-sum''). <code> fun my-product(lst :: List<Number>) -> Number: doc: ```returns the product of the numbers in list lst``` cases (List) lst: | empty ... the numbers: <code> fun sum-of-cubes(lst :: List<Number>) -> Number: doc: "computes the sum of the cubes of the numbers in lst" cases (List) lst: | empty
- lab2 @courses:cs101-2021-02
- ur_clock|military time]], e.g., 9:00 a.m. is the number ''0900'' and 6:00 p.m. is ''1800''. If the time ... called. For example, this is valid code: <code> number = 111 if number == 111: "Yay" else: "Nay" end </code> ==== Part 2 ==== Your friend came up with a... Write a function ''saffir-simpson(wind-speed :: Number) -> String'', that takes in the average recorded
- lab7 @courses:cs101-2021-02
- ="hljs-comment">#|</span> CMPU<span class="hljs-number">-101</span> Fall <span class="hljs-number">2021</span> Lab <span class="hljs-number">7</span> Name: your <span class="hljs-built_in">name</span... cise.</p> <pre><code># Exercise <span class="hljs-number">1</span> <span class="hljs-function"><span clas
- lab7 @courses:cs101-2021-0405
- ="hljs-comment">#|</span> CMPU<span class="hljs-number">-101</span> Fall <span class="hljs-number">2021</span> Lab <span class="hljs-number">7</span> Name: your <span class="hljs-built_in">name</span... cise.</p> <pre><code># Exercise <span class="hljs-number">1</span> <span class="hljs-function"><span clas
- 02 @courses:cs101-2022b:assignments
- </span> <span class="name">within-5</span>(age :: Number) -> Boolean: ... <span class="keyword">end</... ="https://www.pyret.org/docs/latest/numbers.html">Number documentation</a>!)</p> <p>This should be an incl... n</span> <span class="name">show-ad</span>(age :: Number, town :: String, hobby :: String, has-car :: ... class="name">show-ad2</span>(ad :: String, age :: Number) -> Boolean: ... <span class="keyword">end</