Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Give a syntactically correct and stylistically appropriate declaration for a loc

ID: 3671641 • Letter: G

Question

Give a syntactically correct and stylistically appropriate declaration for a local variable that holds the x-coordinate of the next position to draw a hall on the canvas. Give a syntactically correct and stylistically appropriate declaration for a named constant that represents the diameter of the FilledOval that is used to represent the ball in a pinball game. Write a Java loop that counts by 10 from 0 up to and including 100. You need not write an entire program or even an entire method, just the loop.

Explanation / Answer

Answer for Question 1:
// Number of pixels ball falls in a single move
private static final double X_Coorinate = 4;

Answer for Question 2:
// Number of diameter of the FilledOval constant
private static final double diameter = 5.0

Answer for Question 3:
int count = 0;
for(int i =0;i<100; i++)
   count = count +10;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote