Question: HASKELL CODING 1. Develop the Haskell function priceCart :: PriceList -> CartItems -> CartPrices that takes a database of product prices (PriceList) and a list
HASKELL CODING
1. Develop the Haskell function
priceCart :: PriceList -> CartItems -> CartPrices
that takes a database of product prices (PriceList) and a list of barcodes of the items in a shopping cart and generates the list of item prices
2. Develop the Haskell function
makeBill :: CartPrices -> Bill
This function defines the end to end processing that takes the list of items from the shopping cart and generates the receipt.
3. Develop the Haskell function
makeReceipt :: PriceList -> CartItems -> String
This function defines the end to end processing that takes the list from the shopping cart and generates the receipt.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
