Question: challenge activity 6 . 5 . 3 : Methods with branches. 5 7 5 2 3 8 . 4 4 0 6 0 8 2

challenge activity
6.5.3: Methods with branches.
575238.4406082.qx3zqy7
Jump to level 1
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 35, then the priority is 1.
If the task's count is between 35 and 60 inclusive, then the priority is 2.
Otherwise, the priority is 3.
Ex: If the input is 30, then the output is:
1

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 Programming Questions!