Question: pleease 1. Create accessor methods for the private variables num Outstanding, num Complete, totalPoints, hoursAvailable, highestPriorityltem. Note the accessor for the highestPriorityltem will returns NONE




pleease
1. Create accessor methods for the private variables num Outstanding, num Complete, totalPoints, hoursAvailable, highestPriorityltem. Note the accessor for the highestPriorityltem will returns "NONE" if there is none has been set. 2. Create an alternative constructor that accepts and sets numOutstanding, numComplete, totalPoints, and highestPriorityltem. 3. Implement a mutator function to set highestPriorityltem. 4. Implement a class to represent an Assignment. i. The Assignment class will privately store information on it's name(String), effort (hours required to complete)(int), the number of resources to be referenced (int), the estimated difficulty(int), and the expected score(double). ii. Create a constructor for a Assignment, that accepts the effort, resources and difficulty. The constructor then evaluates and stores the cost of an assignment, using the formula below, which was supplied by a "well paid consultant". (If the formula isunclear, look at the associated PDF which should have a nicer rendering) estScore=0.1*(effort*difficulty+ (effort *resources] ^2/(1+difficulty) (NOTE:::You should use the PL function that is found inside the Math library) C.The Assignment has acccessors for all private attributes 5. Complete the getUrgentAssignment method of the AssignPlan object so that it a. Creates an Assignment with knowledge of it's name, difficulty, resources and effort b. Set's the name of the highest priority item to the new assignment C. Increments the number of outstanding assignments, as well as the number of completed assignments by 1 . d. Update the hoursAvailable by subtracting the effortHours (NOTE!!! A full implementation would test if there were sufficient hours available, but you may ignore that concern for this lab) e. Update the total points by adding the score calculated on the assignment. Input Format Not relevant to solving problems Constraints t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
