VCE IT Theory Slideshows by Mark Kelly 2016-2019 study design By Mark Kelly, vceit.com, Begin.

Slides:



Advertisements
Similar presentations
VCE SD Theory Slideshows By Mark Kelly Vceit.com Debugging Techniques.
Advertisements

Desk Checking. Desk checking is a manual (non computerised) technique for checking the logic of an algorithm. The person performing the desk check effectively.
Chapter 2: Problem Solving
Repetition Control Structures
Loops (Part 1) Computer Science Erwin High School Fall 2014.
VCE IT Theory Slideshows - ITA By Mark Kelly Vceit.com Entity Relationship Diagrams (ERD)
Computer Science 1620 Loops.
Programming Fundamentals (750113) Ch1. Problem Solving
Chapter 1 Program Design
PRE-PROGRAMMING PHASE
IT Applications Theory Slideshows By Mark Kelly Vceit.com Legislation: © OPYRIGHT.
IT Applications Theory Slideshows Data Flow Diagrams (DFD) & Context diagrams By Mark Kelly McKinnon Secondary College Vceit.com IT Applications Theory.
IT Applications Theory Slideshows By Mark Kelly vceit.com Database Design Tools Version 2.
VCE IT Theory Slideshows
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
IT Applications Theory Slideshows By Mark Kelly Vceit.com Types and contents of On-screen user documentation.
PROGRAMMING, ALGORITHMS AND FLOWCHARTS
Simple Program Design Third Edition A Step-by-Step Approach
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Chapter 3 Developing an algorithm. Objectives To introduce methods of analysing a problem and developing a solution To develop simple algorithms using.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
Developing an Algorithm
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
Repetition Control Structures Simple Program Design Third Edition A Step-by-Step Approach 5.
IT Applications Theory Slideshows By Mark Kelly Vceit.com Privacy Laws.
VCE IT Theory Slideshows By Mark Kelly Vceit.com Problem Solving Methodology 3 Development.
The Software Development Process
VCE IT Theory Slideshows By Mark Kelly Vceit.com Arrays.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
1 Program Development  The creation of software involves four basic activities: establishing the requirements creating a design implementing the code.
1 b Boolean expressions b truth tables b conditional operator b switch statement b repetition statements: whilewhile do/whiledo/while forfor Lecture 3.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
Algorithms and Pseudocode
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
Programming revision Revision tip: Focus on the things you find difficult first.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
VCE IT Theory Slideshows
Trace Tables In today’s lesson we will look at:
VCE IT Theory Slideshows
ALGORITHMS AND FLOWCHARTS
VCE IT Theory Slideshows – ITI Updated for 2016
VCE IT Theory Slideshows
IT Applications Theory Slideshows
ALGORITHMS & FLOWCHARTING II
VCE IT Theory Slideshows by Mark Kelly study design
VCE IT Theory Slideshows by Mark Kelly study design
VCE IT Theory Slideshows by Mark Kelly study design
Unit# 9: Computer Program Development
VCE IT Theory Slideshows by Mark Kelly study design
Program Design Introduction to Computer Programming By:
VCE IT Theory Slideshows
Algorithms & Pseudocode
VCE IT Theory Slideshows by Mark Kelly study design Test Data
VCE IT Theory Slideshows
Overview of Software Development
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Faculty of Computer Science & Information System
VCE IT Theory Slideshows
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Flowcharts and Pseudo Code
VCE IT Theory Slideshows
VCE IT Theory Slideshows
Therapies. Interpreting and writing algorithms
Chapter 5 Desk Checking/Dry Running.
Module 4 Loops and Repetition 9/19/2019 CSE 1321 Module 4.
Presentation transcript:

VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin

Contents Trace Tables Desk Checks (not directly examinable) Note: while trace tables are explicitly ‘included‘ in SD U3O1 KK08 and are examinable, ‘desk checks’ or ‘walk throughs’ are not named, so they cannot be examined by name. Desk checks would, however, qualify under SD U3O1 KS 4 “select and use appropriate techniques to test the functionality of modules” and SD U4O1 KS 3, “select and apply testing techniques to confirm that solutions operate as intended, and make necessary modifications” 2

Related to, but are not identical to desk checks. A method of testing the behaviour of algorithms in pseudocode. Step-by-step manual calculation of the current values of variables to ensure the actual output agrees with the expected output. 3VCE IT slideshows © Mark Kelly, vceit.com

Trace tables provide a formal method for tracing the logic of an algorithm. Test data is chosen to test all paths within the algorithm. All variables, constants and formal parameter values need to be represented. 4VCE IT slideshows © Mark Kelly, vceit.com

Module DisplayLargestNumber 1 Largest  0 2 Input (Number) 3 Repeat 4 If Number > Largest then 5 Largest  Number 6 End If 7 Input (Number) 8 Until (Number = 999) 9 Output (‘The largest number is ‘, Largest) End Module 5VCE IT slideshows © Mark Kelly, vceit.com

Test data values are [2, 3, 6, 5, 7, 999]. In the trace table that follows, numbers at the start of lines represent line numbers of pseudocode 6VCE IT slideshows © Mark Kelly, vceit.com

7 LineLargestNumNum > Largest? Num = 999? Output T F 4 T F 4 T F 4 F F 4 T T 9 MAX=7 1 Largest  0 2 Input (Num) 3 Repeat 4 If Num > Largest then 5 Largest  Num 6 End If 7 Input (Num) 8 Until (Num = 999) 9 Output (‘MAX= ‘, Largest) Notes: - T=True, F=False. - This variety is called the “expanded method”. - I used yellow highlighting to emphasise the iterations of the REPEAT loop.

Note – this only works if you FASTIDIOUSLY and EXACTLY follow EVERY line of the pseudocode like a human compiler. It is very useful for classical exam questions of the type: – Here is some pseudocode. – What is the expected output? – What is the actual output? – Where in the code is the error? – How would you fix the error?” 8VCE IT slideshows © Mark Kelly, vceit.com

Similar to trace tables in that every line of pseudocode is traced manually to determine current variable values and correct program flow. 9VCE IT slideshows © Mark Kelly, vceit.com

From the 2015 SD Exam, question A3 10VCE IT slideshows © Mark Kelly, vceit.com Question 3 What is the output from the pseudocode? A. 4 B. 9 C. 16 D. 25

Like a trace table, every line is stepped through manually to calculate exactly what a compiler would calculate. Attention to detail is critical! This is how I do deskchecks. I separate each line of code with drawn lines. Each look of the code adds another column… 11VCE IT slideshows © Mark Kelly, vceit.com

Like a trace table, every line is stepped through manually to calculate exactly what a compiler would calculate. Attention to detail is critical! This is how I do deskchecks. I separate each line of code with drawn lines. Each look of the code adds another column… 12VCE IT slideshows © Mark Kelly, vceit.com

13VCE IT slideshows © Mark Kelly, vceit.com Loop 1Loop 2Loop 3 A  3 a =3 B  5 b=5 While A < 2*B True! (3<5*2)True! (4<4*2)True! (5<3*2)False! (6 is not < 2*2=4) C  A*A c=3*3=9c=4*4=16c=5*5=25skip A  A+1 a=3+1=4a=4+1=5a=5+1=6skip B  B-1 b=5-1=4b=4-1=3b=3-1=2skip Endwhile loop again skip Print c (25)

The council wants to offer mobile voting to voters aged 80 and above or those who may be unable to get to the polling booth due to a diagnosed medical condition. To obtain an estimate of how many voters will require mobile voting, Sally has decided to use the council's electronic roll of eligible voters. She will create a file containing each voter's name, address, age and information on whether they have a diagnosed medical condition. The following algorithm is suggested, with Age being the age of the person in years and Medical indicating if they have a diagnosed medical condition. a. To check this algorithm before coding, the data in the table (right) was created. Complete the table by filling in both expected and actual values after each record is read and the loop is executed. 3 marks 14VCE IT slideshows © Mark Kelly, vceit.com Record numberAgeMedicalExpected value of Number Eligible Actual value of Number Eligible 181False True 375False 485True

b. Outline the major error in this algorithm. 1 mark c. Write new lines of code to correct this error. 2 marks 15VCE IT slideshows © Mark Kelly, vceit.com Record numberAgeMedicalExpected value of Number Eligible Actual value of Number Eligible 181False True 375False 485True

Answers are in the vceit.com 2015 SD Post Mortem 16VCE IT slideshows © Mark Kelly, vceit.com

References Computer Science Stage 2 and 3, Specifications booklet 2015, published by the School Curriculum and Standards Authority, Government of Western Australia. Page /Computer_Science_Specifications_Booklet_pdf.pdf 17VCE IT slideshows © Mark Kelly, vceit.com

Mark Kelly vceit.com These slideshows may be freely used, modified or distributed by teachers and students anywhere but they may NOT be sold. they must NOT be redistributed if you modify them. This is not a VCAA publication and does not speak for VCAA. Portions (e.g. exam questions, study design extracts, glossary terms) may be copyright Victorian Curriculum and Assessment Authority and are used with permission for educational purposes. Thanks, guys! VCE IT THEORY SLIDESHOWS study design 18 VCE IT slideshows © Mark Kelly, vceit.com

Because you’ve been so good, here’s a picture you can look at while your teacher works out what to do next Visit vceit.com for more goodies 19