home

=C++ Notes and Discussion= 2/3,4,5/10 1. What kinds of things would be difficult to program without loops?
 * Discussion Questions P. 68**

-Things that would be difficult to program without loops would be programs that require multiple inputs and/or needs the answer to be in a certain range.

2. What are the advantages and disadvantages of the switch statement versus a series of if statements?

-It's likee, wayy fasterr ♥ easier to understand

3. When might you omit a break statement from the end of a case in a switch statement? ►►You would want to omit it when you want the code to keep following along instead of jumping to the end of the switch case structure.◄◄

4. When should you use a while loop instead of a do loop?

-A bunch of if statements

-Use a while loop when you might not need to enter the loop at all, such as with a bad data while when there is good data given.

5. Describe your favorite game in terms of the game loop. Is the game loop a good fit?

The guess my number game in the c++ book is a good example

♪♫♂


 * sadie was so here lmao **