Question: 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.please answer all the question both 7 and 8 fully. the info

(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

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!