Question: You are required to complete a partially written Java class that is expected to represent an AssignPlan. Your expected tasks are : 1. Create accessor

 You are required to complete a partially written Java class that

You are required to complete a partially written Java class that is expected to represent an AssignPlan. Your expected tasks are : 1. Create accessor methods for the private variables numAssignments, numComplete, totalPoints, hoursAvailable and highestPriorityltem. 2. Create an alternative constructor that accepts and sets numAssignments, numComplete, totalPoints, and highestPriorityltem. 3. Implement a mutator function to set highestPriorityltem. 4. Implement a class to represent an Assignment. a. The Assignment class will privately store information on the effort (hours required to complete)(int), the number of resources to be referenced(int), the estimated difficulty(int), and the expected score(double). (Decide on your own variable names). b. Create a constructor for a Assignment, that accepts the effort, resources and difficulty. c. Create a public method that evaluates and returns the expected score, using the formula below, which was supplied by a "well paid consultant". estScore =0.1( effort difficulty +difficulty(resourceseffort)2) (Note: Use the PI attribute of the Math class) Also, report the score to 1 decimal point (important for passing test cases 4 and 5) d. Create accessors for all private variables. 5. Complete the handleUrgentAssignment method of the AssignPlan object so that it a. Sets the highestPriorityitem to the name of the new assignment being handled. b. Creates an Assignment with knowledge of the difficulty, resources and effort c. Increment the number of assignments in the AssignPlan by 1 d. Increments the numComplete by 1 e. Update the hoursAvailable by subtracting the efforthours f. Update the total points by adding the points calculated on the assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!