Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Dr racket 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

image text in transcribed
Dr racket
Drracket language
image text in transcribed
(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 price ListOfPlastic that takes list of toys and produce a list of prices of plastic toys. Contract: priceOfPlastic: LOTOYS - LOTOYS (50 points Answer the following questions according to TOYS structure: (define-struct TOYS (type quan price)) TOYS is a structure like (make-TOYS string mimber number) type is type of toy and can be one of: plastic metal cotori quan is the quantity of toys price is price of toys Design a function named mamofplastie 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 tovs. Contract priceOfPlastic! LOTOYS t 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 (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 price ListOfPlastic that takes list of toys and produce a list of prices of plastic toys. Contract: priceOfPlastic: LOTOYS - LOTOYS (50 points Answer the following questions according to TOYS structure: (define-struct TOYS (type quan price)) TOYS is a structure like (make-TOYS string mimber number) type is type of toy and can be one of: plastic metal cotori quan is the quantity of toys price is price of toys Design a function named mamofplastie 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 tovs. Contract priceOfPlastic! LOTOYS t 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions

Question

2. Outline the business case for a diverse workforce.

Answered: 1 week ago