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:
hi sorry for not knowing the answer
but please follow have a great day,night, or afternoon
Answer:
8/9
Explanation:
i remember this question on my daughters book
Answer:
double decimal1, decimal2;
int whole;
Explanation:
Required
Declare 2 decimals and 1 int.
The syntax to declare a variable is:
<em>data-type variable-name;</em>
To declare decimal, we simply make use of double or float data types.
So, we have:
double decimal1, decimal2; ----> for the decimal variables
And
int whole; ---- for the whole number