Answer:
F# Code:
let rec prefix n list =
//Extracting head and tail elements
let valHead = (Listhead list)
let valTail = (Listtail list)
// Checking n value
match n with
| 0 -> []
| _ -> [valHead] at (prefix (n-1) valTail) // Creating list recursively
//Testing function
let lstT = [1; 2; 3; 4; 5]
printfn "%A" (prefix 3 lstT)
printfn "%A" (prefix 2 lstT)
printfn "%A" (prefix 4 lstT)
Step-by-step explanation: see attachment below for sample run
Answer:
s=14(116)
s = 1624
(This is the arc length for <u>RS</u>)
The line T to R cuts the circle in half. Half of a circle in degrees is 360/2. Which is 180.
Now we take the known angle and subtract it from 180 to get the unknown angle which is the angle of RS.
[180-64 = 116]
Arc length = radius * theta
Arc length = 14 * 116 = 1624
[FOR TS BELOW]
s=r(theta)
s= 14(64)
s = 896 (arc length for <u>TS</u>)
Since these 2 events are independent , the probability of them both occurring is obtained by multiplying them
P(rain on Wed and Sat) =0.30* 0.60 = 0.18
which is 18%
I think the answer is 43.8.