What to submit (replace "lastname" withyour actual lastname): lastname_lab6a.java and lastname_lab6b.java (upto 10 points may be deducted for submitting anything else, or notsubmitting these files, or naming them differently). Additionaldeductions (also up to 10 points) may be made for poor codestyle: lack of program headers, lack of methods headers, lackof in-code block-level commenting).
Requirements:
a) (50pts) yourlastname_lab6a.java: Pleasecreate a program that allows users to create and remove points in apane via mouse clicks. Use small circles to represent points.Left-clicking should add a point, right-clicking within someparticular circle (or on its edge) should remove that point.
b) (50pts) yourlastname_lab6b.java: Pleasecreate a program that allows the user to draw lines using arrowkeys. Let the drawing start in the center of a pane. Arrow keypresses extend the line in the appropriate direction (left, right,up, down). The “amount” of key pressing should correspond to howmuch is being drawn. In other words, the application should extendthe line farther when the user presses the arrow key.
What to submit (replace "lastname" with your actual last name): lastname_lab6a.java and lastname_lab6b.java (up to 10 po
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am