Write Racket Expressions Following 1 Defines Function Findmaxvalue Takes List Lists Consis Q37077406

Write Racket expressions that do the following:
1. Defines a function findMaxValue that takes a list of listsconsisting of symbol, price and shares as arguments and returns thestock with the greatest value (price x shares).
2. Binds the list (“GOOG”, 70, 15) to googleStock
3. Binds the list (“FB”, 20, 8) to facebookStock
4. Creates a list of all four stock lists (appleStock, ibmStock,googleStock and facebookStock) bound to stockList
5. Calls findMaxValue with stockList as its argument


Solution


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.