Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribed

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

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

which of the following is not a potential application of GPT - 3 ?

Answered: 1 week ago

Question

1. How do most insects respire ?

Answered: 1 week ago

Question

Who is known as the father of the indian constitution?

Answered: 1 week ago

Question

1.explain evaporation ?

Answered: 1 week ago

Question

Persuasive Speaking Organizing Patterns in Persuasive Speaking?

Answered: 1 week ago