IT programming questions

Post a 200 to 300-word response to each of the the following question:

 

1. What is the difference between a sequential control structure and a selection control structure?  Explain how both control structures could be used in the algorithm for the simple task of making a peanut butter sandwich.

 

 

 

 

 

2. What are the differences between a pre-test loop, a post-test loop, and a For (built-in counter-controlled) loop?  Explain how one of those three loops could be used in the algorithm for the simple task of making a peanut butter sandwich.