Question Details

Answered: - Draw the static data flow graphs for the following program


Draw the static data flow graphs for the following program unit.function hitDetect() { if((ball.y +BALL_RADIUS) >= (bottomPaddle.y)) { if(bottomPaddle.x = canvas.width || (ball.x - BALL_RADIUS) (canvas.height + BALL_RADIUS)) { pointsComputer++; initGameObjects(); console.log("point for computer",pointsComputer); } if(ball.y


CMP 661 Software Testing Dr. Yao

 

Quiz #3

 

This is an individual assignment.

 

Please name your file as YourLastNameQZ3, e.g., YaoQZ3.docx or YaoQZ3.pdf

 

Draw the static data flow graphs for the following program unit.

 

function hitDetect() {

 

if((ball.y +BALL_RADIUS) >= (bottomPaddle.y)) {

 

if(bottomPaddle.x <= ball.x && ball.x <= (bottomPaddle.x + PADDLE_WIDTH))

 

console.log("bottomPaddle hit", ball.x, ball.y, bottomPaddle.x, bottomPaddle.y);

 

ball.yspeed = ball.yspeed * -1;

 

ball.y = bottomPaddle.y - BALL_RADIUS;

 

return;

 

}

 

}

 

if((ball.y -BALL_RADIUS) <= (topPaddle.y+PADDLE_HEIGHT)) {

 

if(topPaddle.x <= ball.x && ball.x <= (topPaddle.x + PADDLE_WIDTH))

 

console.log("topPaddle hit", ball.x, ball.y, topPaddle.x, topPaddle.y);

 

ball.yspeed = ball.yspeed * -1;

 

ball.y = topPaddle.y + BALL_RADIUS+PADDLE_HEIGHT;

 

return;

 

}

 

}

 


 

{

 


 

{

 


 

if((ball.x + BALL_RADIUS) >= canvas.width || (ball.x - BALL_RADIUS) <= 0 )

 

ball.xspeed = ball.xspeed * -1;

 

if(ball.y > (canvas.height + BALL_RADIUS)) {

 

pointsComputer++;

 

initGameObjects();

 

console.log("point for computer",pointsComputer);

 

}

 

if(ball.y < (0 - BALL_RADIUS)) {

 

pointsPlayer++;

 

initGameObjects();

 

console.log("point for player", pointsPlayer);

 

}

 

}

 


 

Grading Policy

 

Deducted Why

 

5%

 

Violated the Code of Academic Excellence, including copying from resources.

 

5%

 

Submitted a solution that has nothing or little to do with the requirements.

 

3%

 

Did not submit the flow control graph

 

3%

 

Submitted static data flow testing graph is not related to the submitted control flow graph.

 

3%

 

Submitted an incomplete solution.

 

1%

 

Submitted one or more files without your name.

 

1%

 

Did not follow the file naming instruction.

 

1%

 

Submit one or more binary files, including image file.

 


 

 


Solution details:
STATUS
Answered
QUALITY
Approved
ANSWER RATING

This question was answered on: Sep 18, 2020

PRICE: $15

Solution~0001185830.zip (25.37 KB)

Buy this answer for only: $15

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free copy from our tutoring website www.aceyourhomework.com (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Sep 18, 2020

EXPERT

Tutor

ANSWER RATING

GET INSTANT HELP/h4>

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

NEW ASSIGNMENT HELP?

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN YOUR SET DEADLINE.

Order Now