Programming Homework Help

Programming Homework Help. Netbeans- Please Read the Question description

This assessment item relates to the unit learning outcomes as in the unit descriptors.

This checks your understanding about object-oriented software development.

This assessment covers the following LOs.

LO1 Demonstrate understanding of classes, constructors, objects, data types and instantiation; Convert data types using wrapper methods and objects.

LO2 Independently analyse customer requirements and design object-oriented programs using scope, inheritance, and other design techniques; Create classes and objects that access variables and modifier keywords. Develop methods using parameters and return values.

LO3 Demonstrate adaptability in building control and loop structures in an object-oriented environment; Demonstrate use of user defined data structures and array manipulation.

LO4 Create object hierarchies using additional utility methods, application programming interfaces (API) and interfaces, in conjunction with existing classes and objects.

LO5 Demonstrate usage of collection to access data structures effectively and compose full-fledged object-oriented applications.

LO6 Extend the on object-oriented concepts and design patterns introduced in lectures to carry out further research on a chosen object-oriented design pattern or emerging recent programming languages.

Rubrics for MITS4002 Project

Criteria (used as a guide only)

Level of Performance

0

1

2

3

4

5

Mouse adaptor being used

DrawTriangle class was created with appropriate parameters and used; The use of inheritance from JPanel

Screenshots of evidence of trial runs & output

All questions answered

Source codes and NetBeans project folder

Code indentation

Code with comments

Total: /25 marks

Problem Description

Draw a circle with three random points on the circle. Connect the points to form a triangle. Display the angles in the triangle. Use the mouse to drag a point along the perimeter of the circle. As you drag it, the triangle and angles are redisplayed dynamically as shown in Figure 1.

You will need to create a DrawTriangle class (not main class) which takes some appropriate parameters in one of its methods to draw the triangle within the circle as shown in Figure 1. Your will not get full marks if DrawTriangle class is not created nor used as it as part ofObject-Oriented Software Development.

Figure 1: Sample output

Here is the formula to compute angles:

Note, acos(x) is cos-1(x)

What to submit:

Submit the 5 screenshots of the output along with a check list of the following steps using this word document and full NetBeans Project folder. Note, your project should be developed using NetBeans otherwise your work will not be marked. Copy and paste your code into this word document too.

Put this word document in your NetBeans project folder and then zip before submission.

Your code:

1. Can your program display a circle in the centre of the frame, if not, why?

Write your answer here:

2. Can your program display three points on the circle, if not,why?

Write your answer here:

3. Can your program draw a triangle using these three points, if not, why?

Write your answer here:

4. Can your program compute the angles in the triangle, if not,why?

Write your answer here:

5. Can your program display the angles in the triangle, if not,why?

Write your answer here:

6. Note that three points are three small circles. Can your program detect which small circle is pressed by the mouse, if not, why?

Write your answer here:

7. Can your program drag a small circle that has been pressed, if not, why?

Write your answer here:

8. Can your program drag a small circle along the perimeter of the circle, if not, why? (Hint: Ignore the mouse drag if it is not along the perimeter of the circle.)

Write your answer here:

Programming Homework Help

 
"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"