Question: Using Drracket language (50 points) Answer the following questions according to TOYS structure: (define-struct TOYS (type quan price)) TOYS is a structure like :(make-TOYS string

Using Drracket language
(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 numorPlastic that takes list of toys and find the number plastic toys Contract: nunOrPlastic: LOTOYS number
Design a function named priceOfPlastic that takes list of toys and find the total price of plastic toys. Contract priceOfPlastic: LOTOYSnumber total price)
Design a function and priceListOfPlastic that takes list of toys and produce a list of prices of plastic toys Contact: price Plastic: LOTOYS LOTOYS
Note:
Ensure that your programs are fully documented, using comments. Write also contrue tors, selectors and predicates.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!