[SOLVED] Haskell CIS 252 In-class Activity #1 1 2 3

$25

File Name: Haskell_CIS_252_In-class_Activity_#1_1_2_3.zip
File Size: 395.64 KB

5/5 - (1 vote)

CIS 252 In-class Activity #1 1 2 3

Name:

Consider the following Haskell function:

contrived :: Int -> Int -> Int

contrived m n

| even m && m > n = n*2

| odd n || n<3 = m| otherwise = m+n+1Fill in the table by giving the value of each expression.Expression Valuecontrived 100 7contrived 16 100contrived 321 7contrived 44 0contrived 95 0contrived 28 15.024 January 2017

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] Haskell CIS 252 In-class Activity #1 1 2 3
$25