Course Solutions Uncategorized (Solved) : 1 Develop Haskell Function Formatdollars Price String Takes Price Cents Formats String Dol Q31712110 . . . .

(Solved) : 1 Develop Haskell Function Formatdollars Price String Takes Price Cents Formats String Dol Q31712110 . . . .

 

1. Develop the Haskell function formatDollars :: Price -> String that takes a Price in cents and formats a string in dollars and cents. For example, formatDollars 1307 returns the string 13.07. (Note the 0 in 07. 2. Using formatDollars above, develop the Haskell function formatLine:: (Name, Price) -> String that takes an item and formats a line of the receipt for that item. For example, formatLine (Claw hammer,788) yields the string: 7.88n This string has length lineWidth not including the newline character. The space between the items name and cost is filled using . characters. 3. Using the 

<div class=

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post