Question: My code won't show any output can you fix it for me?- the issue is with the stirng arg part here is an example of

My code won't show any output can you fix it for me?- the issue is with the stirng arg part here is an example of the input/output scenario

Input

1 EasyCheesy 10 20 12 50 1 A_Wha_Dis??? 0 0 1 

Sample Output 3

====================== -----TODAY'S PLAN----- ---------------------- Priority:A_Wha_Dis??? Assignments:11 Completed:21 Hours Avail:12 Tot. Points:50.0

public class Assignment {

private String name;

private int effort;

private int resources;

private int difficulty;

private double score;

public Assignment(int effort, int resources, int difficulty) {

this.effort = effort;

this.resources = resources;

this.difficulty = difficulty;

this.score = 0.1 * (effort * difficulty + (resources * effort)*2 / (Math.PI * difficulty));

}

public String getName() {

return name;

}

public int getEffort() {

return effort;

}

public int getResources() {

return resources;

}

public int getDifficulty() {

return difficulty;

}

public double getScore() {

return score;

}

public static void main (String[] args) {

return "====================== " + "-----TODAY'S PLAN----- " + "---------------------- " + "Priority:"+getHighestPriorityItem()+" " + "Assignments:"+getNumAssignments()+" " + "Completed:"+getNumComplete()+" " + "Hours Avail:"+getHoursAvailable()+" " + "Tot. Points:"+getTotalPoints()+" "; }

}

}

class AssignPlan {

private int numAssignments;

private int numComplete;

private double totalPoints;

private int hoursAvailable;

private String highestPriorityItem;

public AssignPlan() {

this.numAssignments = 0;

this.numComplete = 0;

this.totalPoints = 0;

this.hoursAvailable = 0;

this.highestPriorityItem = "";

}

public AssignPlan(int numAssignments, int numComplete, double totalPoints, int hoursAvailable, String highestPriorityItem) {

this.numAssignments = numAssignments;

this.numComplete = numComplete;

this.totalPoints = totalPoints;

this.hoursAvailable = hoursAvailable;

this.highestPriorityItem = highestPriorityItem;

}

public int getNumAssignments() {

return numAssignments;

}

public int getNumComplete() {

return numComplete;

}

public double getTotalPoints() {

return totalPoints;

}

public int getHoursAvailable() {

return hoursAvailable;

}

public String getHighestPriorityItem() {

return highestPriorityItem;

}

public void setHighestPriorityItem(String highestPriorityItem) {

this.highestPriorityItem = highestPriorityItem;

}

public void getUrgentAssignment(String name, int effort, int resources, int difficulty) {

Assignment a = new Assignment(effort, resources, difficulty);

this.highestPriorityItem = a.getName();

this.numAssignments++;

this.numComplete++;

this.hoursAvailable -= a.getEffort();

this.totalPoints += a.getScore();

}

}

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!