>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>
ograms in the Scheme programming language.
A //**number**// is a simple Scheme expression that evaluates ... * (string? "Scheme")
* (string? 42)
* (number? "Scheme")
* (number? 42)
* (string<=? "apple" "banana")
* (>= 50 42)
Many functions are pro... n circle function: <code scheme>
;; green-circle: number -> image
;; draws a solid green circle with given
<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
ine. For example, the command sleep waits a given number of seconds before continuing. Type
<code>compsci... ped in by the user; the next line, indicating job number and PID, is returned by the machine. The user is be notified of a job number (numbered from 1) enclosed in square brackets, to... , it will be entered onto a list along with a job number. To examine this list, type
<code>compsci-user@t
(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
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
(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
, ''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
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
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