Suppose you are writing a program that requires you take different paths depending on the response to a prompt. The prompt has more than two acceptable responses. Which of the following structures would be most appropriate?%0D%0A%0D%0A%0D%0A(1 point)%0D%0AResponses%0D%0A%0D%0Afor loop%0D%0Afor loop%0D%0A%0D%0Aif…then…else%0D%0Aif…then…else%0D%0A%0D%0Aif…then%0D%0Aif…then%0D%0A%0D%0AWhile loop
1 answer
The most appropriate structure would be the if...then...else statement because it allows for multiple conditions to be evaluated and different paths to be taken based on the response to the prompt.