Categories
Haskell

food menu that contains images and buttons and then display the total cost using

food menu that contains images and buttons and then display the total cost using only Haskell GUI gtk2hs

Categories
Haskell

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part. you can see instructions in README in the file The project is marked out of 50. The marks start being relatively easy
to get, and progress to being harder.
– **10 marks** Completion of the basic missing parts in the given
implementation. Specifically this is:
1. The unimplemented function in
[src/JSONOutput.hs](src/JSONOutput.hs): `renderString`,
`renderJSON`.
2. The unimplemented functions in
[src/JSONTransformer.hs](src/JSONTransformer.hs) : `string`,
`int`, `elements`, `field`, `pipe`, `equal`, `select`.
3. The unimplemented function in
[src/QueryLanguage.hs](src/QueryLanguage.hs): `execute`.
Each function has a documentation block above it describing the
intended functionality.
To get all ten marks, your code will need to be robust to user
input, and reasonably well written and concise.

Categories
Haskell

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part. you can see instructions in README
– **10 marks** Completion of the basic missing parts in the given
implementation. Specifically this is:
1. The unimplemented function in
[src/JSONOutput.hs](src/JSONOutput.hs): `renderString`,
`renderJSON`.
2. The unimplemented functions in
[src/JSONTransformer.hs](src/JSONTransformer.hs) : `string`,
`int`, `elements`, `field`, `pipe`, `equal`, `select`.
3. The unimplemented function in
[src/QueryLanguage.hs](src/QueryLanguage.hs): `execute`.
Each function has a documentation block above it describing the
intended functionality.
To get all ten marks, your code will need to be robust to user
input, and reasonably well written and concise.

Categories
Haskell

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part. you can see instructions in README in the file The project is marked out of 50. The marks start being relatively easy
to get, and progress to being harder.
– **10 marks** Completion of the basic missing parts in the given
implementation. Specifically this is:
1. The unimplemented function in
[src/JSONOutput.hs](src/JSONOutput.hs): `renderString`,
`renderJSON`.
2. The unimplemented functions in
[src/JSONTransformer.hs](src/JSONTransformer.hs) : `string`,
`int`, `elements`, `field`, `pipe`, `equal`, `select`.
3. The unimplemented function in
[src/QueryLanguage.hs](src/QueryLanguage.hs): `execute`.
Each function has a documentation block above it describing the
intended functionality.
To get all ten marks, your code will need to be robust to user
input, and reasonably well written and concise.

Categories
Haskell

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part. you can see instructions in README
– **10 marks** Completion of the basic missing parts in the given
implementation. Specifically this is:
1. The unimplemented function in
[src/JSONOutput.hs](src/JSONOutput.hs): `renderString`,
`renderJSON`.
2. The unimplemented functions in
[src/JSONTransformer.hs](src/JSONTransformer.hs) : `string`,
`int`, `elements`, `field`, `pipe`, `equal`, `select`.
3. The unimplemented function in
[src/QueryLanguage.hs](src/QueryLanguage.hs): `execute`.
Each function has a documentation block above it describing the
intended functionality.
To get all ten marks, your code will need to be robust to user
input, and reasonably well written and concise.

Categories
Haskell

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part. you can see instructions in README in the file The project is marked out of 50. The marks start being relatively easy
to get, and progress to being harder.
– **10 marks** Completion of the basic missing parts in the given
implementation. Specifically this is:
1. The unimplemented function in
[src/JSONOutput.hs](src/JSONOutput.hs): `renderString`,
`renderJSON`.
2. The unimplemented functions in
[src/JSONTransformer.hs](src/JSONTransformer.hs) : `string`,
`int`, `elements`, `field`, `pipe`, `equal`, `select`.
3. The unimplemented function in
[src/QueryLanguage.hs](src/QueryLanguage.hs): `execute`.
Each function has a documentation block above it describing the
intended functionality.
To get all ten marks, your code will need to be robust to user
input, and reasonably well written and concise.

Categories
Haskell

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part

https://drive.google.com/drive/folders/1knJErNtic5… i just need the first part. you can see instructions in README in the file The project is marked out of 50. The marks start being relatively easy
to get, and progress to being harder.
– **10 marks** Completion of the basic missing parts in the given
implementation. Specifically this is:
1. The unimplemented function in
[src/JSONOutput.hs](src/JSONOutput.hs): `renderString`,
`renderJSON`.
2. The unimplemented functions in
[src/JSONTransformer.hs](src/JSONTransformer.hs) : `string`,
`int`, `elements`, `field`, `pipe`, `equal`, `select`.
3. The unimplemented function in
[src/QueryLanguage.hs](src/QueryLanguage.hs): `execute`.
Each function has a documentation block above it describing the
intended functionality.
To get all ten marks, your code will need to be robust to user
input, and reasonably well written and concise.

Categories
Haskell

Functions to be written You are asked to implement five functions operating on t

Functions to be written
You are asked to implement five functions operating on these types. They are assigned equal
marks, but you will find that later ones are more difficult than earlier ones.
majority :: [Order] -> [(Customer, Product)]
the list of customers and products for which the customer has ordered more than half the total
quantity for that product.
share :: [Order] -> [Delivery] -> [(Customer, Product, Double)]
an allocation of quantities of products to customers. No customer should be allocated more of
a given product than they have ordered. If a sufficient quantity of a product has been delivered
to satisfy all orders, each customer should receive the total quantity they ordered. If not, the
available quantity of the product should be shared between customers in proportion to the
amount ordered. For example, if the delivered quantity of a product is half the the total ordered
quantity of that product, each customer would receive half of what they ordered.
For each part, you should add a brief comment explaining the strategy you have used, not
a translation of the code into English.
There are many different ways of implementing these functions, so I am not expecting to
see identical or strongly similar answers.
File organization
I have supplied a skeletal module Orders.hs. You must not change the type definitions or
function declarations in that file (I will rely on them for automatic testing), but you will want to
replace the equations defining each function as undefined to your own definitions. You can add
whatever else you like.
Submission
You should submit your version of the file Orders.hs via Moodle by the due date.