Question: A sample was given: { items: { item: [ { id: 0001, type: donut, name: Cake, ppu: 0.55, batters: { batter: [ { id: 1001,

 A sample was given: { "items": { "item": [ { "id":"0001", "type": "donut", "name": "Cake", "ppu": 0.55, "batters": { "batter": [ {"id": "1001", "type": "Regular" }, { "id": "1002", "type": "Chocolate" }, {

A sample was given:

{

"items":

{

"item":

[

{

"id": "0001",

"type": "donut",

"name": "Cake",

"ppu": 0.55,

"batters":

{

"batter":

[

{ "id": "1001", "type": "Regular" },

{ "id": "1002", "type": "Chocolate" },

{ "id": "1003", "type": "Blueberry" },

{ "id": "1004", "type": "Devil's Food" }

]

},

"topping":

[

{ "id": "5001", "type": "None" },

{ "id": "5002", "type": "Glazed" },

{ "id": "5005", "type": "Sugar" },

{ "id": "5007", "type": "Powdered Sugar" },

{ "id": "5006", "type": "Chocolate with Sprinkles" },

{ "id": "5003", "type": "Chocolate" },

{ "id": "5004", "type": "Maple" }

]

},

...

]

}

}

In C++ program and with comments. thank you

COEN 244 (Winter 2018) - Assignment 5: 10 Deadline: April 13, Friday, 23:55 Type: Group Assignment (Groups of 2 students max) Note: The assignment must be submitted on Moodle. Submission format: Create only ONE zip file (-gz, .tar, .zip are acceptable. .rar file is NOT acceptable) that contains all the header files, cpp files and test files. The name of the file must follow the template below: [student_id_of_member1|_[student_id_of_member2]_A5.zip or [student_id_of_member1]_[student_id_of_member2]_A5.tar or [student_id_of_member1] [student_id_of_member2]_A5.gz JSON is a lightweight data exchange format. It is easy to read and write by human beings: and processed by any programming languages. The syntax of JSON is described in various references, one is from https://www.json.org, A sample json file is provided as attachment in the specification. The requirement of this assignment is to write a program that opens a json file with the same schema as the sample file provided (but with more items). The json file path is given as an argument to the command line. The program retrieves the data in the json file and forms the data in a table. An example is shown below. topping None Glazed Sugar Powdered Sugar Chocolate with Sprinkles Chocolate idtype name 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake batter Regular Regular Regular Regular Regular Regular Regular Chocolate Chocolate Chocolate Chocolate Chocolate Chocolate Chocolate Maple None Glazed Sugar Powdered Sugar Chocolate with Sprinkles Chocolate Maple None Glazed Sugar Powdered Sugar Blueberry Blueberry Blueberry Blueberry COEN 244 (Winter 2018) - Assignment 5: 10 Deadline: April 13, Friday, 23:55 Type: Group Assignment (Groups of 2 students max) Note: The assignment must be submitted on Moodle. Submission format: Create only ONE zip file (-gz, .tar, .zip are acceptable. .rar file is NOT acceptable) that contains all the header files, cpp files and test files. The name of the file must follow the template below: [student_id_of_member1|_[student_id_of_member2]_A5.zip or [student_id_of_member1]_[student_id_of_member2]_A5.tar or [student_id_of_member1] [student_id_of_member2]_A5.gz JSON is a lightweight data exchange format. It is easy to read and write by human beings: and processed by any programming languages. The syntax of JSON is described in various references, one is from https://www.json.org, A sample json file is provided as attachment in the specification. The requirement of this assignment is to write a program that opens a json file with the same schema as the sample file provided (but with more items). The json file path is given as an argument to the command line. The program retrieves the data in the json file and forms the data in a table. An example is shown below. topping None Glazed Sugar Powdered Sugar Chocolate with Sprinkles Chocolate idtype name 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake 0001 donut Cake batter Regular Regular Regular Regular Regular Regular Regular Chocolate Chocolate Chocolate Chocolate Chocolate Chocolate Chocolate Maple None Glazed Sugar Powdered Sugar Chocolate with Sprinkles Chocolate Maple None Glazed Sugar Powdered Sugar Blueberry Blueberry Blueberry Blueberry

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!