Specialist2025 Exam 2 Section A · Q4CAS active1 mark
Algorithm estimating a volume of revolution
Consider the following algorithm used to estimate a volume of revolution.
define f(x)
return √(x + 1)
sum ← 0
a ← 1
b ← 3
left ← a
while left ≤ b
volume ← π(f(left))²
sum ← sum + volume
left ← left + 1
end while
print sum
The algorithm above will print the value
Hints, answer checking and worked solutions come with a Season Pass.