Essay questions:
Question 1: Frank complains that defining functions to use in his programs is a lot of extra work. He says he will finish his programs much more quickly if he just writes them using basic control and operations statements.
State three reasons why his view is shortsighted?
Question 2: Describe the processes of top-down design and stepwise refinement?
Question 3: Explain what happens when the following recursive function is called with the value 4 as an argument:
def example(n):
if n > 0:
print(n)
example(n - 1)
Describe the processes of top-down design and stepwise refinement and basic control and operations statements.