Write Racket Expressions Following 1 Defines Function Comparevalue Takes Two Lists Consist Q37077431

Write Racket expressions that do the following:
1. Defines a function compareValue that takes two lists consistingof symbol, price and shares as arguments and returns true if thefirst argument has a greater value (price x shares) than the secondargument, and false otherwise
2. Binds the list (“IBM”, 30, 10) to the variable ibmStock
3. Calls the function compareValue with appleStock and ibmStock asarguments


Solution


Leave a Comment

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