Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programs. at the code at the site..

Similar presentations


Presentation on theme: "Programs. at the code at the site.."— Presentation transcript:

1 programs. at the code at the site.

2 I have not coded the too high part yet.

3

4

5 to look at is the do...while.

6 eventually I will leave.

7

8 If you test at the end of the loop, you will always do it once
If you test at the end of the loop, you will always do it once. I put in 0 dor data_input. I enter the loop, execute it and then the while checks to see if I want to do it again. Since ct is now 2 and data_input is 0, I do not want to do it again so I exit.

9 When I test at the beginning, I may not enter the loop.

10 Now I back at the guess game, I want to add a loop that will continue while theRanNum is not equal to myGuess. When they are equal, I will exit.

11 I have the do, now I need to add the while and the condition.

12 I will do the loop once at least
I will do the loop once at least. I will continue doing it as long as they are not equal.

13

14

15

16 Now I want to add code to ask the user if they want to play again.

17

18

19

20 The way it is set now, capital N will get me out, any other entry by the user will keep me in. If I want to take the user entry and convert to upper case prior to testing with N, I can use this method.

21

22

23

24

25 to do the convert.

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52 Without var they do not act as local.

53

54


Download ppt "Programs. at the code at the site.."

Similar presentations


Ads by Google