Answer:
2144.66in³
Step-by-step explanation:
Radius = 8 inches.
To determine the amount of sphere to make the ball, we'll have to find its volume.
Volume of a sphere = 4/3 * Πr³
V = 4/3*Πr³
Π = 22/7
V = 4/3 * 22/7 * 8³
V = 2144.66inches³
V = 2144.66in³
The amount of plastic required is 2144.66in³.
Answer:
Written in Python
def sums(n):
total = 0
for i in range(1,n+1):
if i%2 == 0:
total = total + i*2
else:
total = total + i
return(total)
Step-by-step explanation:
The function is written in Python
def sums(n):
This initializes total to 0
total = 0
This iterates through the integers that makes up n i.e. 1,2,3.....n
for i in range(1,n+1):
This checks if current digit is even
if i%2 == 0:
If yes, it adds the double of the digit
total = total + i*2
else:
If otherwise, it adds the digit
total = total + i
This prints the calculated sum or total
return(total)
To call the function from main, use the following:
print(sums(n))
Where n is a positive integer. i.e. 
Probably
Like
Or
Because
It’s
Gong
To
Be
A
Decimal 2.75