PRG 215 Wk 3 Discussion – Controlling Loop Behavior with Booleans

0 items
PRG 215 Wk 3 Discussion - Controlling Loop Behavior with Booleans
PRG 215 Wk 3 Discussion – Controlling Loop Behavior with Booleans
$3.00
  • Description

PRG 215 Wk 3 Discussion – Controlling Loop Behavior with Booleans

Post a total of 3 substantive responses over 2 separate days for full participation. This includes your initial post and 2 replies to other students.

Due Thursday

Respond to the following in a minimum of 175 words:

When you declare a variable of type boolean, that variable can hold only one of two values: true (1) or false (0). While progarmmers can use variables of type boolean in any way that makes sense for the programs they are writing, one typical use of boolean variables is associated with controlling loop behavior.

Research the use of boolean variables in controlling loop behavior.

Discuss what you have learned by posting your answers to the following questions:

  • Why are booleanvariables used more often than other variable types to control loop behavior?
  • How does the namea programmer gives a boolean variable affect its effectiveness in controllingloop behavior?

Due Monday

Reply to at least two of your classmates. Be constructive and professional in your responses.