Question: 28. Which answer applies to this program? int x=50, xVel = 1; void draw () { } background (255); if (x =70) { xVel

28. Which answer applies to this program? int x=50, xVel = 1; void draw () { } background (255); if (x =70) {

28. Which answer applies to this program? int x=50, xVel = 1; void draw () { } background (255); if (x =70) { xVel = -xVel; } X = x + xVel; ellipse (x, 50, 10, 10); A circle that just stays in the center. A circle that moves back and forth, appearing to bounce of the edges of the display. C. A circle that moves back and forth, moving at most 30 pixels in either direction. D. A circle that moves back and forth, moving at most 40 pixels in either direction. E. A circle that moves back and forth, moving at most 70 pixels in either direction. A. B.

Step by Step Solution

3.42 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below To create a Java program that draws a c... View full answer

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 Programming Questions!