Question: I keep getting an error. Please help. #include using namespace std; int FindNumPeople(int p,int t) { int r=0; if(p ==1) { if(t=45 && t=120) r=85;

I keep getting an error. Please help. I keep getting an error. Please help. #include using namespace std; int

#include using namespace std;

int FindNumPeople(int p,int t) { int r=0; if(p ==1) { if(t=45 && t=120) r=85; } else if(p==2) { if(t=45 && t=120) r=50; } else if(p==3) { if(t=45 && t=120) r=35; } return r; } int main() { int priority; int tasks;

cin >> priority; cin >> tasks; cout

return 0; }

Define a function FindNumPeople() that takes two integer parameters as a project's priority and the number of project tasks, and returns the number of people required for this project as an integer. The number of people is returned as follows: Number of beoble reauired If priority number is not in the above table, return 11. Ex: If the input is 140 , then the output is: 60

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!