Download presentation
Presentation is loading. Please wait.
1
Welcome back to Software Development!
2
MiniAdventure Peer Review
3
MiniAdventure Peer Review
I will tell you who to swap with
4
MiniAdventure Peer Review
I will tell you who to swap with Use the rubric
5
MiniAdventure Peer Review
I will tell you who to swap with Use the rubric Your names in the Reviewers section
6
MiniAdventure Peer Review
I will tell you who to swap with Use the rubric Your names in the Reviewers section 5-10 minutes
7
The MiniAdventure – A Postmortem
8
The MiniAdventure – A Postmortem
Take five minutes
9
The MiniAdventure – A Postmortem
Take five minutes You will turn in (single sheet, names at top, project name at top)
10
The MiniAdventure – A Postmortem
Take five minutes You will turn in (single sheet, names at top, project name at top) At least two things that went well (what worked?)
11
The MiniAdventure – A Postmortem
Take five minutes You will turn in (single sheet, names at top, project name at top) At least two things that went well (what worked?) At least two things that didn’t work well (what didn’t work?)
12
The MiniAdventure – A Postmortem
Take five minutes You will turn in (single sheet, names at top, project name at top) At least two things that went well (what worked?) At least two things that didn’t work well (what didn’t work?) Think about:
13
The MiniAdventure – A Postmortem
Take five minutes You will turn in (single sheet, names at top, project name at top) At least two things that went well (what worked?) At least two things that didn’t work well (what didn’t work?) Think about: The process
14
The MiniAdventure – A Postmortem
Take five minutes You will turn in (single sheet, names at top, project name at top) At least two things that went well (what worked?) At least two things that didn’t work well (what didn’t work?) Think about: The process How the team worked
15
The MiniAdventure – A Postmortem
Take five minutes You will turn in (single sheet, names at top, project name at top) At least two things that went well (what worked?) At least two things that didn’t work well (what didn’t work?) Think about: The process How the team worked Are you satisfied with how your project turned out?
16
The MiniAdventure – A Postmortem
Take five minutes You will turn in (single sheet, names at top, project name at top) At least two things that went well (what worked?) At least two things that didn’t work well (what didn’t work?) Think about: The process How the team worked Are you satisfied with how your project turned out? What would you like to change?
17
Decisions in your code
18
Decisions in your code How do you code a decision box from your flowchart?
19
Decisions in your code How do you code a decision box from your flowchart? Is <blah-blah> true? N Y
20
Decisions in your code How do you code a decision box from your flowchart? We use the “if/else” branching statement Is <blah-blah> true? N Y
21
The C# Programming Language
Branching Looping Numeric Data Types if / else do / while bool switch / case / default while int / long break for float / double return foreach char / string try / catch / throw continue
22
The if/else branching statement
23
The if/else branching statement
if ( <condition> )
24
The if/else branching statement
if ( <condition> ) { <Yes branch steps> }
25
The if/else branching statement
if ( <condition> ) { <Yes branch steps> } else
26
The if/else branching statement
if ( <condition> ) { <Yes branch steps> } else <No branch steps>
27
The if/else branching statement
if ( <condition> ) { <Yes branch steps> } else <No branch steps> if ( userName == “Korben Dallas multipass” )
28
The if/else branching statement
if ( <condition> ) { <Yes branch steps> } else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); }
29
The if/else branching statement
if ( <condition> ) { <Yes branch steps> } else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else
30
The if/else branching statement
if ( <condition> ) { <Yes branch steps> } else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else Console.WriteLine(“LeeLoo will destroy you”);
31
The if/else branching statement
if ( <condition> ) { <Yes branch steps> } else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else Console.WriteLine(“LeeLoo will destroy you”);
32
if/else if/else Is Condition 1 true? Y N 1st Yes action Is Condition 2
2ndYes action No action
33
if ( <1st condition> )
34
if ( <1st condition> )
{ <1st Yes branch steps> }
35
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> )
36
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps>
37
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else
38
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps>
39
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” )
40
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); }
41
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else if ( userName == “Zorg” )
42
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else if ( userName == “Zorg” ) Console.WriteLine(“LeeLoo will destroy you”);
43
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else if ( userName == “Zorg” ) Console.WriteLine(“LeeLoo will destroy you”); else
44
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else if ( userName == “Zorg” ) Console.WriteLine(“LeeLoo will destroy you”); else Console.WriteLine(“Be careful!” );
45
if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else if ( userName == “Zorg” ) Console.WriteLine(“LeeLoo will destroy you”); else Console.WriteLine(“Be careful!” );
46
NOTICE…NO SEMICOLON if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else if ( userName == “Zorg” ) Console.WriteLine(“LeeLoo will destroy you”); else Console.WriteLine(“Be careful!” );
47
NOTICE…NO SEMICOLON if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else if ( userName == “Zorg” ) Console.WriteLine(“LeeLoo will destroy you”); else Console.WriteLine(“Be careful!” );
48
NOTICE…NO SEMICOLON if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else if ( userName == “Zorg” ) Console.WriteLine(“LeeLoo will destroy you”); else Console.WriteLine(“Be careful!” );
49
NOTICE…NO SEMICOLON if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else if ( userName == “Zorg” ) Console.WriteLine(“LeeLoo will destroy you”); else Console.WriteLine(“Be careful!” );
50
NOTICE…NO SEMICOLON if ( <1st condition> )
{ <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); } else if ( userName == “Zorg” ) Console.WriteLine(“LeeLoo will destroy you”); else Console.WriteLine(“Be careful!” );
51
Assignment vrs Comparison
52
Assignment vrs Comparison
String myStr;
53
Assignment vrs Comparison
String myStr; myStr = “Hi Mom!”;
54
Assignment vrs Comparison
String myStr; myStr = “Hi Mom!”; Assignment: 1 equal sign
55
Assignment vrs Comparison
String myStr; myStr = “Hi Mom!”; Assignment: 1 equal sign Means “take what’s on the right side & put it in what’s on the left side.”
56
Assignment vrs Comparison
String myStr; myStr = “Hi Mom!”; Assignment: 1 equal sign Means “take what’s on the right side & put it in what’s on the left side.” Right side: source
57
Assignment vrs Comparison
String myStr; myStr = “Hi Mom!”; Assignment: 1 equal sign Means “take what’s on the right side & put it in what’s on the left side.” Right side: source Left side: destination
58
Assignment vrs Comparison
String myStr; myStr = “Hi Mom!”; Assignment: 1 equal sign Means “take what’s on the right side & put it in what’s on the left side.” Right side: source Left side: destination
59
Assignment vrs Comparison
String myStr; myStr = “Hi Mom!”; Assignment: 1 equal sign Means “take what’s on the right side & put it in what’s on the left side.” Right side: source Left side: destination
60
Assignment vrs Comparison
String myStr; myStr = “Hi Mom!”; Assignment: 1 equal sign Means “take what’s on the right side & put it in what’s on the left side.” Right side: source Left side: destination if ( myStr == “Hi Mom!” )
61
Assignment vrs Comparison
String myStr; myStr = “Hi Mom!”; Assignment: 1 equal sign Means “take what’s on the right side & put it in what’s on the left side.” Right side: source Left side: destination if ( myStr == “Hi Mom!” ) Comparison: 2 equal signs
62
Assignment vrs Comparison
String myStr; myStr = “Hi Mom!”; Assignment: 1 equal sign Means “take what’s on the right side & put it in what’s on the left side.” Right side: source Left side: destination if ( myStr == “Hi Mom!” ) Comparison: 2 equal signs Means: “true or false – is what’s on the right side the same as what’s on the left side?”
63
Your Turn
64
Your Turn In your teams, write a program that:
65
Your Turn In your teams, write a program that:
Asks the user to enter a question
66
Your Turn In your teams, write a program that:
Asks the user to enter a question Based on that input, prints a message specific to that input
67
Your Turn In your teams, write a program that:
Asks the user to enter a question Based on that input, prints a message specific to that input You must support at least 3 different output messages
68
Your Turn In your teams, write a program that: IF you get stuck…
Asks the user to enter a question Based on that input, prints a message specific to that input You must support at least 3 different output messages IF you get stuck…
69
Your Turn In your teams, write a program that: IF you get stuck…
Asks the user to enter a question Based on that input, prints a message specific to that input You must support at least 3 different output messages IF you get stuck… You can use the HiBill program on page 48 as guidance
70
Your Turn In your teams, write a program that: IF you get stuck…
Asks the user to enter a question Based on that input, prints a message specific to that input You must support at least 3 different output messages IF you get stuck… You can use the HiBill program on page 48 as guidance Be creative, have some fun with it
71
Your Turn In your teams, write a program that: IF you get stuck…
Asks the user to enter a question Based on that input, prints a message specific to that input You must support at least 3 different output messages IF you get stuck… You can use the HiBill program on page 48 as guidance Be creative, have some fun with it You have the remainder of the period…
72
Clear and Unclear Windows
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.