The Problem set for this assignment is due 5:00pm October 25.
Start Haskell by following the same procedure that you used in earlier labs.
(a) A Unix "Shell" where you can run Haskell programs: select Macintosh HD -> Applications -> Utilities -> Terminal
(b) A text editor where you can edit Haskell programs: select Macintosh HD -> Applications -> TextEdit
---------------------------------------------------------
Exploring Properties of Sets and Relations with Haskell
Allen Tucker
January 2004
---------------------------------------------------------
> module Asst5 where
> import Set
The properties of sets and relations can be explored with the help of Haskell. Due to the limitations of the keyboard, some set operators (such as "intersection") have to be typed using two characters rather than one. Here is a brief summary of the differences in set notation between your book and Haskell.
The properties of relations can be explored with the help of Haskell. This tutorial provides an introduction to defining useful functions and examining properties of sets in Haskell.
(a) A Unix "Shell" where you can run Haskell programs: select Macintosh HD -> Applications -> Utilities -> Terminal
(b) A text editor where you can edit Haskell programs: select Macintosh HD -> Applications -> TextEdit
USE test;
DROP TABLE IF EXISTS OurClass;
CREATE TABLE OurClass (
Name VARCHAR(8) NOT NULL,
Class INT,
Home CHAR(2),
Calc CHAR(3),
Prog CHAR(3),
Career CHAR(12),
Subject CHAR(12),
Xwords CHAR(3)
);
INSERT INTO OurClass VALUES ('Chris', '2007', 'MA', 'no', 'yes', 'computers',
'cs', 'yes');
INSERT INTO OurClass VALUES ('Evan', '2007', 'NC', 'hs', 'yes', 'unk', 'cs',
'no');
INSERT INTO OurClass VALUES ('Jarrett', '2008', 'MD', 'yes', 'yes', 'computers',
'cs', 'yes');
INSERT INTO OurClass VALUES ('Jason', '2010', 'VA', 'no', 'no', 'pilot',
'aeronautics', 'yes');
INSERT INTO OurClass VALUES ('Joe', '2008', 'MA', 'yes', 'yes', 'banking',
'econ', 'yes');
INSERT INTO OurClass VALUES ('John ', '2008', 'NY', 'yes', 'yes', 'unk',
'cs', 'yes');
INSERT INTO OurClass VALUES ('Karina', '2007', 'NY', 'yes', 'no', 'unk',
'anthro', 'no');
INSERT INTO OurClass VALUES ('Kate', '2006', 'ME', 'hs', 'no', 'unk', 'english',
'yes');
INSERT INTO OurClass VALUES ('Matt', '2009', 'MA', 'hs', 'no', 'business',
'unk', 'yes');
INSERT INTO OurClass VALUES ('Nolan', '2008', 'CA', 'yes', 'yes', 'computers',
'cs', 'yes');