Input, Process, Output Washing dirty clothes Process Output Input
Input, Process, Output Frying an egg Process Output Input
Inputs Processing Output 1 length breadth area = length x breadth area 2 price of 20 price of 20 ÷ 20 price of 1 3 console cost game 1 cost game 2 cost total = console + game 1 + game 2 total 4 mark 1 mark 2 mark 3 total mark = mark 1 + mark 2 + percentage = (total mark ÷ 60) x 100 percentage
Starter Question In your jotter identify the inputs, process and output for the following: A program to calculate then display the cost of a pair of trainers if a 10% discount is to be given. Input: cost Process: total = cost x 0.9 Output: total
Learning Intention I will learn about the iterative software development process with a focus on the Design stage.
Analysis Design Implementation Testing Documentation Evaluation
Design Once you have your inputs, process and outputs you can design your program structure.
Design Notations 3 design notations: Structure diagram Flowcharts Pseudocode Focus today on Pseudocode for input, process and output
Pseudocode English-like language used to define problems. Advantages: easy to understand easy to break down into smaller steps
Pseudocode Remember the problem to calculate the area of a square from last lesson? INPUT: length of a side PROCESS: area = length x length OUTPUT: area
Pseudocode INPUT: RECEIVE length FROM KEYBOARD INPUT: length of a side PROCESS: area = length x length OUTPUT: area
Pseudocode PROCESS (ASSIGNMENT): SET area TO length x length [means put length x length into area] INPUT: length of a side PROCESS: area = length x length OUTPUT: area
Pseudocode OUTPUT: SEND area TO DISPLAY INPUT: length of a side PROCESS: area = length x length OUTPUT: area
Pseudocode for area of a square RECEIVE length FROM KEYBOARD SET area TO length x length SEND area TO DISPLAY
Pseudocode Design In your jotter: write the pseudocode for each of the 4 scenarios you identified inputs, process and output for last lesson (was on a worksheet)
Success Criteria I can use pseudocode to design a solution to a problem.