*Must be done in 24 hrs*
Problem 1:
----------
Implement the function
computePolygonArea :: [(Double,Double)] -> Double
that computes the area of the polygon. The formula
for the area of the polygon is given at:
[login to view URL]
You should report an error when the list is empty or contains
only one point.
You should implement the function
det :: (Double,Double) -> (Double,Double) -> Double
that computes the determinate of the 2 x 2 matrix whose
columns are given by the first and second arguments, respectively.
You should use the det function in your computation of the
polygon area.
Problem 2:
----------
See [login to view URL] for more details
Recall we only consider the situation where there is only a single
piece on the board
Given the definitions
---------------------------------------------------------------
type File = Char -- column index
-- valid files are 'a','b',...,'h'
type Rank = Int -- row index
-- valid ranks are 1,2,...8
type Position = (File,Rank)
data Color =
Black | White
deriving (Eq,Show)
data Piece =
King | Queen | Rook | Bishop | Knight | Pawn
deriving (Eq,Show)
---------------------------------------------------------------
implement the functions
---------------------------------------------------------------
isLegalPosition :: Position -> Bool
isLegalMove :: Color -> Piece -> Position -> Position -> Bool
---------------------------------------------------------------
that check whether a position is a legal board position and whether a
move is legal.
I am a computer science professional with excellent skills in PHP, XML, regexp, and data parsing, and some other language and tools. Please please see reviews on my profile. It would be my pleasure to do your HW.
$70 USD in 1 day
4.8 (57 reviews)
5.7
5.7
3 freelancers are bidding on average $80 USD for this job
Hello,
I am good candidate, because finished computer science, mathematical faculty. I play chess. I passed algebra, so i know what Matrix is. I am in top 40 programmers from Poznan in stackoverflow. Choosing my, you obtain quality and punctuality.
Hello. How are u.
I saw your description and attached files.
I understood it and can do it well.
I have done several project like this.
I'm an expert in Data Structures and Algorithms.
And I know Java ,C/C++,C# and Python well.
I'm interested this project.
I want to discuss with you about this project.
If it's possible,please contact me and explain more detail.
I wait your good reply.
Bye.