You also need to create a flowchart when designing your program, use the symbols below to do this:
|This shapes indicates the start or end of a flowchart|
|A rectangular box represents a process, this is doing something. E.g. total = num1+num2|
|A parallelogram represents input or output. E.g. Input num1 Output total|
|A diamond shape represents a decision, YES or NO e.g. is it a weekday?|
|This can be used to represent a link to a smaller sub-task from a main flowchart|
The other important aspect of creating flow diagrams is linking each shape together and for this we use arrows which indicate the direction of flow.
A great piece of software to help you develop logical flow diagrams is Flowgorithm. Unfortunately this is only available for Windows users but Linux and Mac users can find ways around this. There are a number of other open source programs that support development of flow diagrams, however they don't feature the testing and execution UI that Flowgorithm has. there is one other feature that is quite cool about Flowgorithm but I am not going to describe it here. See if you can find it!!
Create a program that asks the user to guess a number the machine has generated.
Can you extend this program to count the number of guesses the user has taken to arrive at the correct answer?