Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plz answer must be in dr. racket program answer all the question Note: please attach a photo from the solution of the program - (25

image text in transcribed

plz answer must be in dr. racket program

answer all the question

Note: please attach a photo from the solution of the program

- (25 points) Design a function named evenList that takes a list of number and construct the even list. ;Contract: evenList: LON LON (check-expect (evenList (list 123456 )) (list 246) )) (check-expect (evenList (list 135 5)) ' '())) (check-expect (evenList (list 1216100) ) (list 1216100) )) - (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 Ensure that your programs are fully documented, using comments. Write also contrucrs, selectors and predicates

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

MFDBS 89 2nd Symposium On Mathematical Fundamentals Of Database Systems Visegrad Hungary June 26 30 1989 Proceedings

Authors: Janos Demetrovics ,Bernhard Thalheim

1989th Edition

3540512519, 978-3540512516

More Books

Students also viewed these Databases questions

Question

What are 3 ways that resource partitioning can be accomplished

Answered: 1 week ago