Answer:
In Python:
def print_volume (r):
volume = 4/3 * 3.142*r**3
print(volume)
print_volume(7)
print_volume(14)
print_volume(22)
Explanation:
This defines the function and takes radius r as the parameter
def print_volume (r):
This calculates the volume
volume = 4/3 * 3.142*r**3
This prints the volume
print(volume)
The next three lines call the function with different values
<em>print_volume(7)</em>
<em>print_volume(14)</em>
<em>print_volume(22)</em>
Answer:
hierarchy chart
Explanation:
Based on the information provided within the question it can be said that in this scenario programmers usually use a hierarchy chart. This is a chart that shows the relationship that exists between various different modules that are able to call on another. Therefore showing the programmers the organization of the entire overall program.
Explanation:
The best example of a slider as you have mentioned is a volume control. it is defined as "move smoothly along a surface while maintaining continuous contact with it." Whereas the swiping action is defined as "hit or try to hit with a swinging blow."
Answer:
Explanation:
The following code is written in Python and it is a function called filter, which takes in the requested inputs. It then places the threshold in its own variable and pops it out of the array of inputs. Then it loops through the array comparing each element with the threshold and printing out all of the ones that are less than or equal to the threshold.
def filter():
num_of_elements = input("Enter a number: ")
count = 0
arr_of_nums = []
while count <= int(num_of_elements):
arr_of_nums.append(input("Enter a number: "))
count += 1
threshold = arr_of_nums[-1]
arr_of_nums.pop(-1)
print(threshold)
for element in arr_of_nums:
if int(element) < int(threshold):
print(element)
else:
continue
Answer:
Mail merge lets you create a batch of documents that are personalized for each recipient. For example, a form letter might be personalized to address each recipient by name. A data source, like a list, spreadsheet, or database, is associated with the document.