Respuesta :

The idea is that the main program should be more like pseudocode where someone who wasn't a programmer could probably understand it because it didn't contain any of the details. 
Simplified example: 

Program: 
... GetUserInput () 
... ProcessUserInput () 
... DisplayResults () 
EndProgram. 

The circumstances where a function would be useful instead of a loop is:

  • When the programmer wants to call a method from memory

In computer programming, when a programmer uses a function, he does this to put a piece of code which can be called to action at any time. On the other hand, a loop is used when there is need for repetition of some lines of code.

As a result of this, a function is used when there is a need to call a method which are lines of code into action so that they would execute commands.

Read more here:

https://brainly.com/question/14284157

ACCESS MORE