Presentation is loading. Please wait.

Presentation is loading. Please wait.

Welcome back to Software Development!

Similar presentations


Presentation on theme: "Welcome back to Software Development!"— Presentation transcript:

1 Welcome back to Software Development!

2 A Friendly Reminder…

3 A Friendly Reminder… No surfing

4 A Friendly Reminder… No surfing

5 A Friendly Reminder… No surfing No gaming

6 A Friendly Reminder… No surfing No gaming

7 The While Loop

8 The While Loop while ( some condition is true ) { do a bunch of stuff
somehow condition becomes false }

9 The While Loop while ( some condition is true ) { do a bunch of stuff
somehow condition becomes false }

10 The While Loop while ( some condition is true ) { do a bunch of stuff
somehow condition becomes false }

11 Bool Variables

12 Bool Variables Variables that hold the value true or false

13 Bool Variables Variables that hold the value true or false
They do not hold numbers

14 Bool Variable Example

15 Bool Variable Example bool enteredRightAnswer;

16 Bool Variable Example bool enteredRightAnswer;
enteredRightAnswer = false;

17 Bool Variable Example bool enteredRightAnswer;
enteredRightAnswer = false;

18 Bool Variable Example bool enteredRightAnswer;
enteredRightAnswer = false; if (enteredRightAnswer == true )

19 Bool Variable Example bool enteredRightAnswer;
enteredRightAnswer = false; if (enteredRightAnswer)

20 Bool Variable Example bool enteredRightAnswer;
enteredRightAnswer = false; if (enteredRightAnswer) { Console.WriteLine(“Good job! That was a hard one!”); }

21 Your Task

22 Your Task Fix your MathGame program so that the user must enter a number.

23 Clear and Unclear Windows


Download ppt "Welcome back to Software Development!"

Similar presentations


Ads by Google