10-24. For each situation presented below, illustrate a docu- ment as depicted in Figures 10-4 and 10-5 and specif whether it contains an array, an embedded subdocu- ment, relationships, or collections. Use hypothetical data and make necessary assumptions. a. A document containing Books details: Title, Pub- lisher, Year, and Edition. b. Add Author name: First name and Last name to the document and specify the type of document. c. Now add "Sales Region," which has the subfields "Region" and "RCode" and can take values of "NorthEast," "South West," "SouthEast," and "01," "02," "03," respectively. Is this an array? d. Assume that each book is reviewed by many Review- ers. Reviewer detailsID, Name (First and Last), Experience-are in a separate document. Present this relationship in a document. FIGURE 10-4 Sample MongoDB documents id" : 1, 1/1. Identifier for the document "name": "first" : "John". "last": "Backus" "birth": ISODate("1924-12-03T05:00 002) "death": ISODate("2007-03-17T04:00:002) "contribs": "Fortran". "ALGOL", "Backus-Naur Form" "FP awards": [ "award" : "W.W. McDowell Award, "year" : 1967 by" : "EEE Computer Society (a) Sample MongoDB document1 "award" : "National Medal of Science "year" : 1975 "by" : "National Science Foundation" "award" : "Turing Award" "year" 1927 "by" : "ACT award" : "Draper Prize "year" : 1993 "by" : "National Academy of Engineering *]d":10, "name":"Martin Odersky "contribs": "Scala" (b) Sample MongoDB document 2 FIGURE 10-5 Sample MongoDB collections "_id": 1", "name":"OLED TV" "desc": "75in TV" "width":60, "height": 30 "depth":5 "reviews": "author": 1, "ratingstars": 4. "comment": "Amazing TV" (a) A document in the Product collection "author": 2 "ratingstars": 2 "comment": "Very disappointed with the TV (b) A document in the Author collection "First None" "Jane" "Last Narne: "Smith 10-24. For each situation presented below, illustrate a docu- ment as depicted in Figures 10-4 and 10-5 and specif whether it contains an array, an embedded subdocu- ment, relationships, or collections. Use hypothetical data and make necessary assumptions. a. A document containing Books details: Title, Pub- lisher, Year, and Edition. b. Add Author name: First name and Last name to the document and specify the type of document. c. Now add "Sales Region," which has the subfields "Region" and "RCode" and can take values of "NorthEast," "South West," "SouthEast," and "01," "02," "03," respectively. Is this an array? d. Assume that each book is reviewed by many Review- ers. Reviewer detailsID, Name (First and Last), Experience-are in a separate document. Present this relationship in a document. FIGURE 10-4 Sample MongoDB documents id" : 1, 1/1. Identifier for the document "name": "first" : "John". "last": "Backus" "birth": ISODate("1924-12-03T05:00 002) "death": ISODate("2007-03-17T04:00:002) "contribs": "Fortran". "ALGOL", "Backus-Naur Form" "FP awards": [ "award" : "W.W. McDowell Award, "year" : 1967 by" : "EEE Computer Society (a) Sample MongoDB document1 "award" : "National Medal of Science "year" : 1975 "by" : "National Science Foundation" "award" : "Turing Award" "year" 1927 "by" : "ACT award" : "Draper Prize "year" : 1993 "by" : "National Academy of Engineering *]d":10, "name":"Martin Odersky "contribs": "Scala" (b) Sample MongoDB document 2 FIGURE 10-5 Sample MongoDB collections "_id": 1", "name":"OLED TV" "desc": "75in TV" "width":60, "height": 30 "depth":5 "reviews": "author": 1, "ratingstars": 4. "comment": "Amazing TV" (a) A document in the Product collection "author": 2 "ratingstars": 2 "comment": "Very disappointed with the TV (b) A document in the Author collection "First None" "Jane" "Last Narne: "Smith