Question: USING DR RACKET IN 'BEGGINING STUDENT LANGUAGE' ne Assignment Writing Data Definitions for Itemizations Valentine's Day is right around the corner - and it's big
ne Assignment Writing Data Definitions for Itemizations Valentine's Day is right around the corner - and it's big business. One company sells plush stuffed animals. Another sells candy. Then there's always the classic: flowers. An online entrepreneur decides to cash in on the lucrative Valentine's Day market and creates a clearing house for all things Valentine. If you decide to take advantage of this one-stop shopping place for your sweetheart's Valentine's Day gift, you are offered these choices (use the names in bold to name your structs and the names in blue to name your fields): plush When ordering a stuffed animal, the sender chooses the kind of animal (boa, dillo, tiger, bear, etc.), the size (15" or 20" or 36"), the color of the fur/skin, and the message for the card. candy The kind of candy can be chocolate, caramel, or red hots. A card with a message is included, and a heart-shaped-box? is provided if requested. Flowers When choosing flowers, these attributes need to be specified the kind of flower (roses, tulips, etc.), the color, the quantity (in dozens), and the message for the card. 1. (20 Points) Develop a data definition for each type of gift described above, and a data definition for an itemization for gifts. When creating a struct, the order of the fields in the struct should match the order given in the descriptions above. For example, the fields of the struct for a plush should be kind, size, color, and message in that order. Otherwise our auto-tester will fail, and you will lose points. Provide at least one example for each kind of gift
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
