Algorithms Concepts Assignment
Algorithms Concepts Assignment
Name
Institution
Course
Professor
Date
2
I. Pseudocode
sum ← 0.0
end for
return sum
End Algorithm
sum += num;
return sum;
i. Pseudocode:
sum ← 0.0
end for
return average
End Algorithm
sum += num;
return sum / arr.length; // Dividing sum by the number of elements in the array