Question: answer must be in dr. racket program language Note: the language we are using for the question is ( teaching language - beging student )

answer must be in dr. racket program language
Note: the language we are using for the question is ( teaching language - beging student )
plz attach a photo for the solution
- (50 points) Answer the following questions according to TOYS structure: (define-struct TOYS (type quan price)) ;TOYS is a structure like ;(make-TOYS string number number) ;type is type of toy and can be one of: ;plastic ;metal ; coton ;quan is the quantity of toys ;price is price of toys - Design a function named numOfPlastic that takes list of toys and find the number plastic toys. ;Contract: numOfPlastic: LOTOYS number - Design a function named priceOfPlastic that takes list of toys and find the total price of plastic toys. ;Contract: priceOfPlastic: LOTOYS number (total price) - Design a function named priceListOfPlastic that takes list of toys and produce a list of prices of plastic toys. ;Contract: priceOfPlastic: LOTOYS LOTOYS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
