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 Class rules when working on projects

3 Class rules when working on projects
You may not leave your seat without permission

4 Class rules when working on projects
You may not leave your seat without permission You may not talk with another team

5 Class rules when working on projects
You may not leave your seat without permission You may not talk with another team If you are finished or stuck:

6 Class rules when working on projects
You may not leave your seat without permission You may not talk with another team If you are finished or stuck: Wait patiently for me

7 Class rules when working on projects
You may not leave your seat without permission You may not talk with another team If you are finished or stuck: Wait patiently for me (or a designated helper)

8 Class rules when working on projects
You may not leave your seat without permission You may not talk with another team If you are finished or stuck: Wait patiently for me (or a designated helper) to get to you

9 Class rules when working on projects
You may not leave your seat without permission You may not talk with another team If you are finished or stuck: Wait patiently for me (or a designated helper) to get to you You may not surf the web

10 Class rules when working on projects
You may not leave your seat without permission You may not talk with another team If you are finished or stuck: Wait patiently for me (or a designated helper) to get to you You may not surf the web unless

11 Class rules when working on projects
You may not leave your seat without permission You may not talk with another team If you are finished or stuck: Wait patiently for me (or a designated helper) to get to you You may not surf the web unless it is MSDN to find help

12 The follow-on task…

13 Xlate Quit

14 Xlate Quit string menuDisplayMsg = “1)Xlate\n2)Quit”;

15 Xlate Quit string menuDisplayMsg = “1)Xlate\n2)Quit”; int lenMsg = menuDisplayMsg.Length;

16 Xlate Quit string menuDisplayMsg = “1)Xlate\n2)Quit”; int lenMsg = menuDisplayMsg.Length; // lenMsg is 15

17 Xlate Quit string menuDisplayMsg = “1)Xlate\n2)Quit”; int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(0, 1);

18 string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(0, 1); starting index

19 string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(0, 1); starting index length

20 string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(0, 1); starting index length 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

21 string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(0, 1); starting index length 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

22 string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(0, 1); starting index length 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

23 string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(0, 1); // subStr is “1” starting index length 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

24 string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(1, 1); 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

25 1 Xlate Quit string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(1, 1); // subStr is “)” 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

26 string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(2, 1); 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

27 2 Xlate Quit string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(2, 1); // subStr is “X” 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

28 string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(3, 1); 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

29 3 Xlate Quit string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(3, 1); // subStr is “X” 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

30 string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(10, 1); 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

31 10 Xlate Quit string menuDisplayMsg = “1)Xlate\n2)Quit”;
int lenMsg = menuDisplayMsg.Length; // lenMsg is 15 string subStr = menuDisplayMsg.Substring(10, 1); // subStr is “)” 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

32 for ( i = 0 ; i < menuDisplayMsg.Length ; i++ ) {
subStr = menuDisplayMsg.Substring(i, 1); } 1 ) X l a t e \ n 2 ) Q u i t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

33 Follow-on Task Change the NumMenuOptions property to be read-only:
Remove its set method Change the MenuDisplayMsg property: Calculate the number of menu options by counting the “)” characters in the display message string. Set the numMenuOptions field with that number.


Download ppt "Welcome back to Software Development!"

Similar presentations


Ads by Google