Download presentation
Presentation is loading. Please wait.
1
Welcome back to Software Development!
2
STAIR Design Method STAIR
3
STAIR Design Method STAIR State the problem
4
STAIR Design Method STAIR State the problem Tool identification
5
STAIR Design Method STAIR State the problem Tool identification
Algorithm
6
STAIR Design Method STAIR State the problem Tool identification
Algorithm Implementation
7
STAIR Design Method STAIR State the problem Tool identification
Algorithm Implementation Refinement
8
STAIR – Step 1
9
STAIR – Step 1 State the problem
10
STAIR – Step 1 State the problem Clear and concise
11
STAIR – Step 1 State the problem Clear and concise
Just a sentence (to maybe a paragraph)
12
STAIR – Step 1 State the problem Clear and concise
Just a sentence (to maybe a paragraph) Indicates what you want to accomplish
13
STAIR – Step 1 State the problem Clear and concise
Just a sentence (to maybe a paragraph) Indicates what you want to accomplish As non-technical as possible
14
STAIR – Step 1 State the problem Clear and concise
Just a sentence (to maybe a paragraph) Indicates what you want to accomplish As non-technical as possible Very important!
15
STAIR – Step 1 State the problem Clear and concise
Just a sentence (to maybe a paragraph) Indicates what you want to accomplish As non-technical as possible Very important! If you can’t simply state what you are supposed to do…
16
STAIR – Step 1 State the problem Clear and concise
Just a sentence (to maybe a paragraph) Indicates what you want to accomplish As non-technical as possible Very important! If you can’t simply state what you are supposed to do…how can you do it?
17
STAIR – Step 2
18
STAIR – Step 2 Tool identification
19
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need…
20
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions?
21
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart)
22
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart) Will our program need to loop?
23
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart) Will our program need to loop? Will I need variables to hold information?
24
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart) Will our program need to loop? Will I need variables to hold information? What type of information?
25
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart) Will our program need to loop? Will I need variables to hold information? What type of information? (strings, numbers, …)
26
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart) Will our program need to loop? Will I need variables to hold information? What type of information? (strings, numbers, …) How many?
27
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart) Will our program need to loop? Will I need variables to hold information? What type of information? (strings, numbers, …) How many? For what?
28
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart) Will our program need to loop? Will I need variables to hold information? What type of information? (strings, numbers, …) How many? For what? (user name, favorite color, …)
29
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart) Will our program need to loop? Will I need variables to hold information? What type of information? (strings, numbers, …) How many? For what? (user name, favorite color, …) Will we need anything .NET provides?
30
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart) Will our program need to loop? Will I need variables to hold information? What type of information? (strings, numbers, …) How many? For what? (user name, favorite color, …) Will we need anything .NET provides? Console.ReadLine and/or Console.WriteLine
31
STAIR – Step 2 Tool identification
The programming “stuff” you think you will need… Will our program be making decisions? (diamonds in the flowchart) Will our program need to loop? Will I need variables to hold information? What type of information? (strings, numbers, …) How many? For what? (user name, favorite color, …) Will we need anything .NET provides? Console.ReadLine and/or Console.WriteLine Will we need any algorithms we’ve already written?
32
STAIR – Step 3 cont
33
STAIR – Step 3 cont Test Plan
34
STAIR – Step 3 cont Test Plan Before you write code
35
STAIR – Step 3 cont Test Plan Before you write code
Determine how to tell if your program is doing what it is supposed to
36
STAIR – Step 3 cont Test Plan Before you write code
Determine how to tell if your program is doing what it is supposed to Think through what may go wrong
37
STAIR – Step 3 cont Test Plan Before you write code
Determine how to tell if your program is doing what it is supposed to Think through what may go wrong…boundary conditions
38
STAIR – Step 3 cont Test Plan Before you write code
Determine how to tell if your program is doing what it is supposed to Think through what may go wrong…boundary conditions Write out a plan:
39
STAIR – Step 3 cont Test Plan Before you write code
Determine how to tell if your program is doing what it is supposed to Think through what may go wrong…boundary conditions Write out a plan: We will look for these things to be working
40
STAIR – Step 3 cont Test Plan Before you write code
Determine how to tell if your program is doing what it is supposed to Think through what may go wrong…boundary conditions Write out a plan: We will look for these things to be working We will test these bad things to make sure our program still works right
41
STAIR – Step 3 cont Test Plan Before you write code
Determine how to tell if your program is doing what it is supposed to Think through what may go wrong…boundary conditions Write out a plan: We will look for these things to be working We will test these bad things to make sure our program still works right Do this before you write code!
42
STAIR – Step 3 cont Test Plan Before you write code
Determine how to tell if your program is doing what it is supposed to Think through what may go wrong…boundary conditions Write out a plan: We will look for these things to be working We will test these bad things to make sure our program still works right Do this before you write code! Play computer
43
STAIR – Step 3 cont Test Plan Before you write code
Determine how to tell if your program is doing what it is supposed to Think through what may go wrong…boundary conditions Write out a plan: We will look for these things to be working We will test these bad things to make sure our program still works right Do this before you write code! Play computer “Run” your algorithm step-by-step to see if it does what you expect
44
STAIR – Step 4
45
STAIR – Step 4 Implementation
46
STAIR – Step 4 Implementation (using the IDE…Visual Studio 2005)
47
STAIR – Step 4 Implementation (using the IDE…Visual Studio 2005)
This is the first time you are writing code!
48
STAIR – Step 4 Implementation (using the IDE…Visual Studio 2005)
This is the first time you are writing code! Edit
49
STAIR – Step 4 Implementation (using the IDE…Visual Studio 2005)
This is the first time you are writing code! Edit Type in the C# code implementing your algorithms
50
STAIR – Step 4 Implementation (using the IDE…Visual Studio 2005)
This is the first time you are writing code! Edit Type in the C# code implementing your algorithms Compile
51
STAIR – Step 4 Implementation (using the IDE…Visual Studio 2005)
This is the first time you are writing code! Edit Type in the C# code implementing your algorithms Compile Translate your C# code into machine language
52
STAIR – Step 4 Implementation (using the IDE…Visual Studio 2005)
This is the first time you are writing code! Edit Type in the C# code implementing your algorithms Compile Translate your C# code into machine language The compiler will catch any language problems
53
STAIR – Step 4 Implementation (using the IDE…Visual Studio 2005)
This is the first time you are writing code! Edit Type in the C# code implementing your algorithms Compile Translate your C# code into machine language The compiler will catch any language problems Correct error and recompile
54
STAIR – Step 4 Implementation (using the IDE…Visual Studio 2005)
This is the first time you are writing code! Edit Type in the C# code implementing your algorithms Compile Translate your C# code into machine language The compiler will catch any language problems Correct error and recompile Run the program!
55
STAIR – Step 5
56
STAIR – Step 5 Refinement
57
STAIR – Step 5 Refinement
Rarely will it run correctly the 1st (or 2nd) time
58
STAIR – Step 5 Refinement
Rarely will it run correctly the 1st (or 2nd) time Two general types of bugs:
59
STAIR – Step 5 Refinement
Rarely will it run correctly the 1st (or 2nd) time Two general types of bugs: Crashes
60
STAIR – Step 5 Refinement
Rarely will it run correctly the 1st (or 2nd) time Two general types of bugs: Crashes You will get an error message and the debugger will show you what line of code the error occurred on.
61
STAIR – Step 5 Refinement
Rarely will it run correctly the 1st (or 2nd) time Two general types of bugs: Crashes You will get an error message and the debugger will show you what line of code the error occurred on. Logic errors
62
STAIR – Step 5 Refinement
Rarely will it run correctly the 1st (or 2nd) time Two general types of bugs: Crashes You will get an error message and the debugger will show you what line of code the error occurred on. Logic errors Your algorithm is wrong
63
STAIR – Step 5 Refinement
Rarely will it run correctly the 1st (or 2nd) time Two general types of bugs: Crashes You will get an error message and the debugger will show you what line of code the error occurred on. Logic errors Your algorithm is wrong Program isn’t doing what you really intended
64
STAIR – Step 5 Refinement
Rarely will it run correctly the 1st (or 2nd) time Two general types of bugs: Crashes You will get an error message and the debugger will show you what line of code the error occurred on. Logic errors Your algorithm is wrong Program isn’t doing what you really intended Remember, the computer does exactly what you tell it to!
65
Clear and Unclear Windows
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.