Search
You can find the results of your search below.
Fulltext results:
- 03 @courses:cs101-2022b:labs
- <strong>Task</strong>: First you’ll first need to write a function that takes a table Row as input and re... ur functions.</p> <p><strong>Task</strong>: Next, write an <em>expression</em> (not a function) to filter... end of the market.</p> <p><strong>Task</strong>: Write an expression in the definitions pane that produc... is greater than 90%.</p> <p>This requires you to write another helper function. As we demonstrated above
- 02 @courses:cs101-2022b:assignments
- uidelines</a> for details.</p></li> <li><p>Try to write your tests before filling in your functions, so y... hat customers fit Winifred’s criteria. We want to write a function that takes a person’s age, hobby, town... a good potential customer to advertise to, we’ll write a series of <em>predicates</em> – functions that ... <code class="constant">false</code>. Make sure to write examples for each function before you try writing
- 05 @courses:cs101-2022b:assignments
- Remember to test your functions thoroughly and to write your code clearly. Your work will be graded on cl... /p> <div class="task"> <p><strong>Task</strong>: Write the function</p> <pre class="pyret"><span class="... /code>; the point of this exercise is to have you write that code for yourself.</p> <p>There are two key... ss="keyword">list</span>: 4, 5, 9]</code>. Try to write out the sequence of <code>where</code> examples t
- 02 @courses:cs101-2022b:labs
- <li>writing examples/tests for the functions you write.</li> </ul> <p style="margin: 2em 0; border-top:... ong as I need it to! |# </code></pre> <ul> <li><p>Write down an example where the code does not return wh... /tr> </tbody> </table> <p><strong>Task</strong>: Write a function that takes in the average recorded rec... s (that is, no decimals or fractions). Be sure to write tests for your function that address <em>each</em
- 03 @courses:cs101-2022b:assignments
- strong>Task</strong>: To test the functions we’ll write, we also need a small table of test data. Use the... de></pre> <p><strong>Warning</strong>: Be sure to write examples in a <code>where</code> block for all of... ode class="string">"06:30"</code>, so we’ll first write a function to convert a time to minutes.</p> <p><strong>Task</strong>: Write a function</p> <pre><code><span class="keyword">f
- 06 @courses:cs101-2022b:labs
- each time the function is called.</p> </div> <p>Write your solutions as comments in your file in this f... Task</strong>: Fill in the missing parts below to write a function <code>max-pos-num</code> that takes in... Task</strong>: Fill in the missing parts below to write a function that takes in a list of (non-negative)... d">end</span> </code></pre> <p>You don’t need to write test cases for this function, but you should call
- 05 @courses:cs101-2022b:labs
- scaling formulas.</p> </div> <p>You will need to write (simple) helper functions to do this!</p> <p>To ... /p> <div class="task"> <p><strong>Task</strong>: Write a function</p> <pre class="pyret"><span class="ke... /p> <div class="task"> <p><strong>Task</strong>: Write a function</p> <pre class="pyret"><span class="ke... ase.</p> </div> <p>To do this, you don’t need to write a recursive function – instead, think how you can
- 04 @courses:cs101-2022b:labs
- rwise.</p> <p>Before you begin, take a moment to write down the tasks that you need to do for this compu... xpression that computes the answer directly; just write your answer in a comment.</p> <h3 id="exercise-... g for a challenge:</p> <p><strong>Task</strong>: Write a function <code>percent-true</code> that takes a
- 07 @courses:cs101-2022b:labs
- roduction">Introduction</h2> <p>We would like to write a program that represents pipelines, as you might... data (<code>Pipeline</code>), it’s a good idea to write a template we can use for functions that take tha... u understand how this function works – how did we write this based on the template above?</p> <p class="
- 06 @courses:cs101-2022b:assignments
- Remember to test your functions thoroughly and to write your code clearly. Your work will be graded on cl... code class="keyword">end</code> </pre> <p>If you write <code>find-separator</code>, you don’t need to gi
- 01 @courses:cs101-2022b:assignments
- hours</a>.</p></li> </ul> <h2>Assignment</h2> <p>Write code to generate these three flags:</p> <ol> <li>