Welcome back to Software Development!
MiniAdventure Peer Review
MiniAdventure Peer Review I will tell you who to swap with
MiniAdventure Peer Review I will tell you who to swap with Use the rubric
MiniAdventure Peer Review I will tell you who to swap with Use the rubric Your names in the Reviewers section
MiniAdventure Peer Review I will tell you who to swap with Use the rubric Your names in the Reviewers section 5-10 minutes
The MiniAdventure – A Postmortem
The MiniAdventure – A Postmortem Take five minutes
The MiniAdventure – A Postmortem Take five minutes You will turn in (single sheet, names at top, project name at top)
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?)
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?)
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 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
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
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?
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?
Decisions in your code
Decisions in your code How do you code a decision box from your flowchart?
Decisions in your code How do you code a decision box from your flowchart? Is <blah-blah> true? N Y
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
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
The if/else branching statement
The if/else branching statement if ( <condition> )
The if/else branching statement if ( <condition> ) { <Yes branch steps> }
The if/else branching statement if ( <condition> ) { <Yes branch steps> } else
The if/else branching statement if ( <condition> ) { <Yes branch steps> } else <No branch steps>
The if/else branching statement if ( <condition> ) { <Yes branch steps> } else <No branch steps> if ( userName == “Korben Dallas multipass” )
The if/else branching statement if ( <condition> ) { <Yes branch steps> } else <No branch steps> if ( userName == “Korben Dallas multipass” ) { Console.WriteLine(“LeeLoo loves you”); }
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
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”);
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”);
if/else if/else Is Condition 1 true? Y N 1st Yes action Is Condition 2 2ndYes action No action
if ( <1st condition> )
if ( <1st condition> ) { <1st Yes branch steps> }
if ( <1st condition> ) { <1st Yes branch steps> } else if ( <2nd condition> )
if ( <1st condition> ) { <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps>
if ( <1st condition> ) { <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else
if ( <1st condition> ) { <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps>
if ( <1st condition> ) { <1st Yes branch steps> } else if ( <2nd condition> ) < 2nd Yes branch steps> else <No branch steps> if ( userName == “Korben Dallas multipass” )
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”); }
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” )
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”);
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
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!” );
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!” );
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!” );
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!” );
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!” );
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!” );
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!” );
Assignment vrs Comparison
Assignment vrs Comparison String myStr;
Assignment vrs Comparison String myStr; myStr = “Hi Mom!”;
Assignment vrs Comparison String myStr; myStr = “Hi Mom!”; Assignment: 1 equal sign
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.”
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
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
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
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
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!” )
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
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?”
Your Turn
Your Turn In your teams, write a program that:
Your Turn In your teams, write a program that: Asks the user to enter a question
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
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
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…
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
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
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…
Clear and Unclear Windows