Search

You can find the results of your search below.

03 @courses:cs101-2022b:assignments
14 Hits, Last modified:
>mins-since-midnight</span>(time :: String) -&gt; 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
12 Hits, Last modified:
<span class="name">product</span>(lst :: List&lt;Number&gt;) -&gt; Number: <span class="keyword">doc</span>: <span class="string">&quot;Return the product of t... n class="name">sum-of-cubes</span>(lst :: List&lt;Number&gt;) -&gt; Number: <span class="keyword">doc</span>: <span class="string">&quot;Return the sum of the c
02 @courses:cs101-2022b:labs
11 Hits, Last modified:
/span> <span class="name">grade</span>(percent :: Number) -&gt; String: <span class="keyword">doc</span>... class="name">saffir-simpson</span>(wind-speed :: Number) -&gt; String: ... <span class="keyword">end</s... > <span class="name">at-vassar</span>(latitude :: Number, longitude :: Number) -&gt; Boolean: ... <span class="keyword">end</span> </code></pre> <p>It should r
02 @courses:cs101-2022b:assignments
5 Hits, Last modified:
</span> <span class="name">within-5</span>(age :: Number) -&gt; 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) -&gt; Boolean: ... <span class="keyword">end</
05 @courses:cs101-2022b:assignments
4 Hits, Last modified:
function adds a column to an existing table. The number of values in the <code>colvals</code> input must equal the number of rows in the Table <code>t</code>, and they wil... /span>(list-of-words :: List&lt;String&gt;) -&gt; Number: ... <span class="keyword">end</span> </pre> <p... ="keyword">table</span>: name :: String, count :: Number <span class="keyword">end</span> <var>check-lis
06 @courses:cs101-2022b:assignments
4 Hits, Last modified:
stion( column :: String, threshold :: Number, less-than-branch :: DecisionTree, gr... separator</code>(col :: String, t :: Table) -&gt; Number: <code class="keyword">doc</code>: <code class="string">&quot;Return a number halfway between the average values of column `col... de class="name">f1-score</code>(t :: Table) -&gt; Number: <code class="keyword">doc</code>: <code class=
01 @courses:cs101-2022b:labs
2 Hits, Last modified:
ted and – unsurprisingly – the result is also the number 1!</p></li> <li><p>Let’s be slightly more daring!... ead start!</p> <p>The lines below that start with number signs (<code>#</code>) are not evaluated by the c
03 @courses:cs101-2022b:labs
2 Hits, Last modified:
they compiled a data set with</p> <ul> <li><code>Number</code> attributes like the winning percentage, re... ession (in the definitions pane) that outputs the number of chocolate candies.</p> <p><strong>Hint</strong
04 @courses:cs101-2022b:labs
2 Hits, Last modified:
we all know and love – <code>String</code>, <code>Number</code>, etc. – we need to use the <code>sanitize<... cent-true</span>(t :: Table, col :: String) -&gt; Number: <span class="keyword">doc</span>: <span class=
07 @courses:cs101-2022b:labs
2 Hits, Last modified:
hich takes a <code>Pipeline</code> and counts the number of faucets it contains.</p> <p>To do this,</p> <... hich takes a <code>Pipeline</code> and counts the number of <em>open</em> (that is, running) faucets.</p>