subject

Declare a function f: int -> bool such that f(n) = true exactly when n is divisible by 2 or divisible by 3 but not divisible by 5. Write down the expected values of f(24), f(27), f(29) and f(30) and compare with the result. Hint 1: n is divisible by q when n%q = 0. Hint 2: remember the implicit parameter. 11. Write a function that has the type ’a list * ’a list-> bool, where ’a implements comparison. 12. Declare an F# function notDivisible: int * int -> bool where notDivisible(d, n) is true if and only if d is not a divisor of n. For example, notDivisible(2,5) is true and notDivisible(3,9) is false. 13. Write an F# function evenN: int -> int list such th

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 23:30
What can you prevent issues related to downloading content form the internet
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
question
Computers and Technology, 24.06.2019 12:40
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
question
Computers and Technology, 24.06.2019 17:30
Looking at the electroscope, describe how you can cause the two leaves at the bottom to repel each other and stay that way
Answers: 3
You know the right answer?
Declare a function f: int -> bool such that f(n) = true exactly when n is divisible by 2 or divis...
Questions
Questions on the website: 13722363