Question

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

Answers

Answered by GPT 3.5
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.
There are no human answers yet. A form for humans to post answers is coming very soon!

Related Questions