Answer:
About 0.588.
Step-by-step explanation:
20 divided by 34 is 0.58823529411.
This rounds to 0.588.
Hope this helps!
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
First, distribute to cancel out brackets
= m-n+p-2m+2p-3n-n+m-2p
Collect like terms
= -5n+p
Your answer: -5n + p
Hope this helped :)