Search

You can find the results of your search below.

06 @courses:cs101-2022b:labs
18 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 the numbers in list lst&quot;</span> <span class="keyword"... n class="name">sum-of-cubes</span>(lst :: List&lt;Number&gt;) -&gt; Number: <span class="keyword">doc</s
03 @courses:cs101-2022b:assignments
17 Hits, Last modified:
Copy the unique ID – the long string of letters, numbers, and underscores – in the spreadsheet URL and us... >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 it
02 @courses:cs101-2022b:labs
12 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
05 @courses:cs101-2022b:assignments
7 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... Task</strong>: Consider taking the average of the numbers in the list <code class="pyret">[<span class="ke... /span>(list-of-words :: List&lt;String&gt;) -&gt; Number: ... <span class="keyword">end</span> </pre> <p
02 @courses:cs101-2022b:assignments
6 Hits, Last modified:
</span> <span class="name">within-5</span>(age :: Number) -&gt; Boolean: ... <span class="keyword">end</... ut the <a href="https://www.pyret.org/docs/latest/numbers.html">Number documentation</a>!)</p> <p>This should be an inclusive comparison, meaning that if the targ... n</span> <span class="name">show-ad</span>(age :: Number, town :: String, hobby :: String, has-car ::
06 @courses:cs101-2022b:assignments
5 Hits, Last modified:
anitizer</code> to change the Boolean values into numbers – instead of <code class="constant">true</code> ... 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
01 @courses:cs101-2022b:labs
5 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... erent types of data expressions # # Exercise 1: Numbers # # The following expression adds numbers: (40 + 1) + 1 # TASK: Try adding expressions that subtract,
04 @courses:cs101-2022b:labs
3 Hits, Last modified:
we all know and love – <code>String</code>, <code>Number</code>, etc. – we need to use the <code>sanitize<... e errors due to values that can’t be converted to numbers. To fix these sanitizer errors, you’ll have to e... cent-true</span>(t :: Table, col :: String) -&gt; Number: <span class="keyword">doc</span>: <span class=
04 @courses:cs101-2022b:assignments
2 Hits, Last modified:
Common Era</a>. These are represented as negative numbers, which is accurate, but confusing to see!</p> <... Not all of the entries in this column are proper numbers, which is why it's loaded as strings!</p> <h2
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
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>
01 @courses:cs101-2022b:assignments
1 Hits, Last modified:
Make sure nothing else is output (no sub-images, numbers, strings, or otherwise).</p> <h2>Grading criter