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

Please define the classes could be included in each Program: 1-fun game which a

ID: 3635810 • Letter: P

Question

Please define the classes could be included in each Program:
1-fun game which a bicycle move a specified distance with specified speed on x-axis
2- program that manage a supermarket transactions like sell and buy in which allow customers to buy and pay latter.
3- program which keep track the students payments history and how much fees he should pay for his university in each semester.

Note:
Take care that each class has attributes (what is the class?) and has methods (what is the class do?)

Explanation / Answer

private double x;private double y;private double speed;public void move(long dt){ double dt_s = dt / 1e9; double dx = speed * dt_s; double dy = speed * dt_s; final double right_border = 100; final double up_border = 100; final double down_border = 0.0; final double left_border = 0.0; x += dx; if (x >= right_border) { x = right_border; if (y >= down_border) { y += dy; } } if (y > up_border) { y = up_border; if (x >= left_border) { speed *= -1; } } if (x