The diagram part of the question is incomplete but the mathematical part has been solved below for you . However when the diagram will be attached it will be answered too.
Answer:
Following is the solution for the Time complexity/ Run Time:
Given that:
A = N/2 to 1
B = 1 to 4N
By summation:
Time Complexity = Lower bound of A * Upper Bound of B
Time Complexity = (N/2) * (4N)
By simplifying:
Time Complexity = N * 2N
Time Complexity = 2N^2
Hence the runtime f(n) for given pseudocode will be 2N^2
i hope it will help you!
Answer:
I think its called "cloud computing"
// making class
class Player {
// Data members
string name;
int score;
// Name setter
void setName(string str){
this.name = str;
}
// Score setter
void setScore(int num){
this.score = num;
}
// Score getter
int getScore(){
return score;
}
// Name getter
string getName(){
return name;
}
};