. :: -- Folder Apps DO ;; A Folder is a (make-folder String) (define-struct folder [title]) ** Apps is a (make-apps String AppSet) (define-struct apps [app-name others]) Draw the class diagram that represents this data definition. You may draw this as ASCII-art and include it in your submission, if you wish. Or you can just draw it on paper and not submit it. Regardless, we think it will help you in visualizing how the data is organized. Convert this data definition into Java. Make sure you use the same names for data types and for the fields, as are used in the DrRacket data definitions, converted into Java style conventions. Make sure that the constructor arguments are given in the same order as shown. • Include in your examples the following sets: - a "Travel" set with "Uber" and "mTicket" and "Moovit" and "Orbitz" - a "Food" set with "Grubhub" and "B. Good" and "Gong Cha" Make sure the two sample sets given above are named travelApps and foodApps. Note: the descriptions above are listed in the order that you would add the apps to a folder in real life. Think carefully how this should be represented as data. Name the class that holds the examples of your group data ExamplesSets. What to submit You should submit your data definitions and examples in a file named AppSets.java Remember to check the feedback in handins for Style and Checker Tests in handins!

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Problem 2: Organizing Apps
A smart phone model allows users to organize their apps in sets related to the apps
purposes.
Here is a data definition to represent an app set in DrRacket:
4: An AppSet is one of:
*: -- Folder
*: -- Apps
;; A Folder is a (make-folder String)
(define-struct folder [title])
A
+ Apps is a (make-apps String AppSet)
(define-struct apps [app-name others])
• Draw the class diagram that represents this data definition. You may draw this as
ASCII-art and include it in your submission, if you wish. Or you can just draw it on
paper and not submit it. Regardless, we think it will help you in visualizing how the
data is organized.
Convert this data definition into Java. Make sure you use the same names for data
types and for the fields, as are used in the DrRacket data definitions, converted into Java
style conventions. Make sure that the constructor arguments are given in the same order
as shown.
Include in your examples the following sets:
- a "Travel" set with "Uber" and "mTicket and Moovit" and "Orbitz"
- a "Food" set with "Grubhub" and "B. Good" and "Gong Cha"
Make sure the two sample sets given above are named travelApps and foodApps.
Note: the descriptions above are listed in the order that you would add the apps to a
folder in real life. Think carefully how this should be represented as data.
Name the class that holds the examples of your group data ExamplesSets.
What to submit
You should submit your data definitions and examples in a file named AppSets.java
Remember to check the feedback in handins for Style and Checker Tests in handins!
Transcribed Image Text:Problem 2: Organizing Apps A smart phone model allows users to organize their apps in sets related to the apps purposes. Here is a data definition to represent an app set in DrRacket: 4: An AppSet is one of: *: -- Folder *: -- Apps ;; A Folder is a (make-folder String) (define-struct folder [title]) A + Apps is a (make-apps String AppSet) (define-struct apps [app-name others]) • Draw the class diagram that represents this data definition. You may draw this as ASCII-art and include it in your submission, if you wish. Or you can just draw it on paper and not submit it. Regardless, we think it will help you in visualizing how the data is organized. Convert this data definition into Java. Make sure you use the same names for data types and for the fields, as are used in the DrRacket data definitions, converted into Java style conventions. Make sure that the constructor arguments are given in the same order as shown. Include in your examples the following sets: - a "Travel" set with "Uber" and "mTicket and Moovit" and "Orbitz" - a "Food" set with "Grubhub" and "B. Good" and "Gong Cha" Make sure the two sample sets given above are named travelApps and foodApps. Note: the descriptions above are listed in the order that you would add the apps to a folder in real life. Think carefully how this should be represented as data. Name the class that holds the examples of your group data ExamplesSets. What to submit You should submit your data definitions and examples in a file named AppSets.java Remember to check the feedback in handins for Style and Checker Tests in handins!
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education