Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer all the question both 7 and 8 fully. the info for number nine is below the picture. (number 9 info from proj1.txt) JSON

please answer all the question both 7 and 8 fully. the info for number nine is below the picture.image text in transcribed

(number 9 info from proj1.txt)

JSON output for 'info' :

 {"size": 15, "strategies": ["Smart", "Random"]} 

JSON output for 'new' :

 {"response": true, "pid": "55ed3eb95f5a3"} 

JSON output for 'play' :

{"response": true, "ack_move": { "x": 4, "y": 5, "isWin": false, // winning move? "isDraw": false, // draw? "row": []}, // winning row if isWin is true "move": { "x": 4, "y": 6, "isWin": false, "isDraw": false, "row": []}} 

please answer all parts of each question. and will rate

7. (total 25 points) You are to define the syntax of BNF itself. (a) (10 points) Write a BNF grammar describing the syntax of BNE single quotes to use meta symbols like | and ->as terminal i.e., define the syntax of BNF itself using BNF. Use a pair of '->'. You may assume that non-terminals h as and are already defined. (b) (5 points) Is the following a sentence of the language you defined in (a) above? Justify your answer by stating the reason. + -> 5 (c) (10 points) Based on your answer to (a) above, draw a parse tree of the following sentence. Kexpr>expr> xopr> 8. (15 points) Define the synt.ax of the Omok Web service APIs and their JSON outputs (refer to the PHP project handout, j1.txt, available from the course website). The Web service API, provides three APIs: info, new, and play. For each service define the syntax of: calling it, i.e., URL including its query string, e.g., http://www.cs.utep.edu/cheon/cs3360/project/omok/info - JSON outputs (normal and error/exceptional responses), e.g., ("size":15, "strategies": ["Smart", "Random"])

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions

Question

2. What is the role-played by kanban in lean manufacturing/JIT

Answered: 1 week ago

Question

Explain Coulomb's law with an example

Answered: 1 week ago

Question

What is operating system?

Answered: 1 week ago

Question

What is Ohm's law and also tell about Snell's law?

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago