Question: challenge activity 6 . 5 . 3 : Methods with branches. 5 7 5 2 3 8 . 4 4 0 6 0 8 2
challenge activity
: Methods with branches.
qxzqy
Jump to level
Define a method calculatePriority that takes one integer parameter as the project tasks to be completed, and returns the project's priority as an integer. The project's priority is returned as follows:
If the task's count is less than then the priority is
If the task's count is between and inclusive, then the priority is
Otherwise, the priority is
Ex: If the input is then the output is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
