Welcome back to Software Development!
A Friendly Reminder…
A Friendly Reminder… No surfing
A Friendly Reminder… No surfing
A Friendly Reminder… No surfing No gaming
A Friendly Reminder… No surfing No gaming
The While Loop
The While Loop while ( some condition is true ) { do a bunch of stuff somehow condition becomes false }
The While Loop while ( some condition is true ) { do a bunch of stuff somehow condition becomes false }
The While Loop while ( some condition is true ) { do a bunch of stuff somehow condition becomes false }
Bool Variables
Bool Variables Variables that hold the value true or false
Bool Variables Variables that hold the value true or false They do not hold numbers
Bool Variable Example
Bool Variable Example bool enteredRightAnswer;
Bool Variable Example bool enteredRightAnswer; enteredRightAnswer = false;
Bool Variable Example bool enteredRightAnswer; enteredRightAnswer = false; …
Bool Variable Example bool enteredRightAnswer; enteredRightAnswer = false; … if (enteredRightAnswer == true )
Bool Variable Example bool enteredRightAnswer; enteredRightAnswer = false; … if (enteredRightAnswer)
Bool Variable Example bool enteredRightAnswer; enteredRightAnswer = false; … if (enteredRightAnswer) { Console.WriteLine(“Good job! That was a hard one!”); }
Your Task
Your Task Fix your MathGame program so that the user must enter a number.
Clear and Unclear Windows