Noadswood Science, 2014.  To set out and solve an identified problem Monday, August 10, 2015 Box ‘a’Box ‘b’ 23 Box a is smaller than Box b…

Slides:



Advertisements
Similar presentations
P5, M1, D1.
Advertisements

JAVA Coursework (the same for 2A and 2B). Fundamental Information The coursework is 30 marks in your O’Level = 15% of the exam Must be word processed.
PSEUDOCODE & FLOW CHART
Chapter 2 - Problem Solving
Chapter 2 - Problem Solving
Java Programming, 3e Concepts and Techniques Chapter 4 Decision Making and Repetition with Reusable Objects.
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering 3 October 2007.
Chapter 2: Input, Processing, and Output
16/27/2015 3:38 AM6/27/2015 3:38 AM6/27/2015 3:38 AMTesting and Debugging Testing The process of verifying the software performs to the specifications.
A452 – Programming project – Mark Scheme
Chapter 3 Planning Your Solution
The Program Design Phases
The Project AH Computing. Functional Requirements  What the product must do!  Examples attractive welcome screen all options available as clickable.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
1 Shawlands Academy Higher Computing Software Development Unit.
Foundation Degree IT Project Milestone 3: Implementation, Testing and Evaluation.
Chapter 8: Systems analysis and design
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Developing a Program.
Mini Project II – Drawing Machine
Algorithmic Problem Solving CMSC 201 Adapted from slides by Marie desJardins (Spring 2015 Prof Chang version)
General Programming Introduction to Computing Science and Programming I.
G042 - Lecture 16 Testing Your Spreadsheet Mr C Johnston ICT Teacher
Input, Output, and Processing
School of Computer Science & Information Technology G6DICP - Lecture 9 Software Development Techniques.
By the end of this session you should be able to...
Practice and Evaluation. Practice Develop a java class called: SumCalculator.java which computes a sum of all integer from 1 to 100 and displays the result.
I Power Higher Computing Software Development The Software Development Process.
30/10/ Iteration Loops Do While (condition is true) … Loop.
C++ Basics C++ is a high-level, general purpose, object-oriented programming language.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
CS Data Structures I Chapter 2 Principles of Programming & Software Engineering.
1 Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
CS161 Topic #16 1 Today in CS161 Lecture #16 Prepare for the Final Reviewing all Topics this term Variables If Statements Loops (do while, while, for)
The Software Development Process
1 CSCD 326 Data Structures I Software Design. 2 The Software Life Cycle 1. Specification 2. Design 3. Risk Analysis 4. Verification 5. Coding 6. Testing.
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
Java Programming, 2E Introductory Concepts and Techniques Chapter 4 Decision Making and Repetition with Reusable Objects.
Exceptions Chapter 16 This chapter explains: What as exception is Why they are useful Java exception facilities.
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
Intermediate 2 Computing Unit 2 - Software Development.
The Art of Programming. The process of breaking problems down into smaller, manageable parts By breaking the problem down, each part becomes more specific.
11. EXCEPTION HANDLING Rocky K. C. Chang October 18, 2015 (Adapted from John Zelle’s slides)
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 4 Loops.
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Chapter 2 - VB 2005 by Schneider- modified by S. Jane '081 Chapter 2 - Problem Solving 2.1 Program Development Cycle 2.2 Programming Tools.
Algorithms, Part 3 of 3 Topics In-Class Project: The Box
Data Types and Conversions, Input from the Keyboard If you can't write it down in English, you can't code it. -- Peter Halpern If you lie to the computer,
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
INVITATION TO Computer Science 1 11 Chapter 2 The Algorithmic Foundations of Computer Science.
Testing and Evaluating Software Solutions Introduction.
Algorithms and Pseudocode
GCSE Computing: Programming GCSE Programming Remembering Python.
Controlling Program Structures. Big Picture We are learning how to use structures to control the flow of our programs Last week we looked at If statements.
Programming In Python. Starter Using the internet… Find what a programming language is.
Loop Design What goes into coding a loop. Considerations for Loop Design ● There are basically two kinds of loops: ● Those that form some accumulated.
GCE Software Systems Development A2 Agreement Trial Implementing Solutions October 2015.
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
Algorithms and Flowcharts
GCE Software Systems Development
ICS 3UI - Introduction to Computer Science
Data Types and Conversions, Input from the Keyboard
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Coding Concepts (Basics)
Algorithm Discovery and Design
Software Development Process
Chapter 2: Input, Processing, and Output
WJEC GCSE Computer Science
GCSE Computing Mini Assignment.
Presentation transcript:

Noadswood Science, 2014

 To set out and solve an identified problem Monday, August 10, 2015 Box ‘a’Box ‘b’ 23 Box a is smaller than Box b…

Boxes  Mini Project I – create two boxes and have user input some numbers representing each box. Produce an output for these user inputs which says their sizes in relation to one another: -  Box A (size x) is bigger than Box B (size y)  Box B (size y) is bigger than Box A (size x)  Box A (sixe x) is the same size as Box B (size y)  Usability test – is it clear for the user with what they have to do, as well as what is outputted?  Error test this – can it be broken?  Go from planning the idea, to a first draft version, to a beta test version to final product, along the way explaining what worked and what did not and how this was rectified!

User Guide  You need to submit a user guide alongside your program (the user guide is actually more important than a working program)!  The user guide should include the following: -  Design the solution ▪ What is the problem ▪ How are you going to solve it (include flow charts and Pseudo code)  Solution development ▪ How will your program complete the tasks required ▪ Annotated code and screen shots of key features and functions  Programming techniques ▪ What parts of the program have been designed and how do they work ▪ Why were certain features included (identify data structures) ▪ Identify how the system is robust  Testing and evaluation ▪ Test plan identifying what tests will be carried out / data tests / expected results ▪ Actions taken from test results ▪ Evaluation of the final product

Boxes – Designing The Solution  A problem has been set where a user needs to input two numbers and then the program work out which is bigger  Information needs to be displayed for where the user is to input numbers and then a statement as to which is bigger must then be displayed  There are three possible outcomes (excluding errors in input): -  Box A (size x) is bigger than Box B (size y)  Box B (size y) is bigger than Box A (size x)  Box A (sixe x) is the same size as Box B (size y) Box ‘a’ is bigger than Box ‘b’Box ‘a’ is smaller than Box ‘b’ Box ‘a’ is the same size as Box ‘b’

Boxes – Designing The Solution inputs Box_A process value sizes output sizes int? input Box_B

Boxes – Designing The Solution inputs Box_A process value sizes output sizes int? input Box_B Ask for an input from the user If not an integer value then ask user to re-enter Sum the two numbers Display on screen the size of the two numbers and which is bigger

Pseudocode Box size function input values for box A and box B for each value check it is an integer if it is move to next item output if A > B output if A = B Function takes an input from user Multiple inputs are required Inputs are checked if they are integers if it is not an integer return to input output if A < B If inputs are integers move onto processing If inputs are not integers go back to input Output based on process calculation

Boxes – Solution Development  Input for Box A and Box B

Boxes – Solution Development  Output after processing

Boxes – Solution Development  Error loop

Boxes – Programming Techniques  One of the initial setups is to test the math within Python and produce an output  In the first instance this can be tested with pre-assigned numbers for Box_A and Box_B Box_A = 10 Box_B = 20 if Box_A == Box_B: print('Box A and Box B are the same value') if Box_A > Box_B: print('Box A is bigger than Box B') if Box_A < Box_B: print('Box A is smaller than Box B')

Boxes – Programming Techniques  The second task was to allow the user to input numbers Box_A = input(‘Please enter a value for Box A: ‘)) Box_B = input(‘Please enter a value for Box B: ‘))  It was then decided it would look nicer if a message appeared confirming the numerical input Box_A = input(‘Please enter a value for Box A: ‘)) Box_B = input(‘Please enter a value for Box B: ‘)) print('Thanks! You entered a value of', Box_A, 'for Box A and a value of', Box_B, 'for Box B')  This worked, however the program could easily be broken if an integer was not entered…

Boxes – Programming Techniques  The ensure the user only entered an integer a while loop was added for both inputs… while True: try: Box_A = int(input('Please enter a value for Box A: ')) except ValueError: print("Sorry, you need to enter a whole number") continue if Box_A >= 0: break while True: try: Box_B = int(input('Please enter a value for Box B: ')) except ValueError: print("Sorry, you need to enter a whole number") continue if Box_B >= 0: break

Boxes – Programming Techniques #Boxes while True: try: Box_A = int(input('Please enter a value for Box A: ')) except ValueError: print("Sorry, you need to enter a whole number") continue if Box_A >= 0: break while True: try: Box_B = int(input('Please enter a value for Box B: ')) except ValueError: print("Sorry, you need to enter a whole number") continue if Box_B >= 0: break print('Thanks! You entered a value of', Box_A, 'for Box A and a value of', Box_B, 'for Box B') if Box_A == Box_B: print('Box A and Box B are the same value') if Box_A > Box_B: print('Box A is bigger than Box B') if Box_A < Box_B: print('Box A is smaller than Box B') input()

Boxes – Testing & Evaluation  The program is then tested and commented upon with the mark scheme stipulating the following: -  There is a full or nearly full test plan that shows all or nearly all of the expected tests and includes the full test data to be used and the expected results  There is evidence that all or almost all of the planned tests have been carried out and a detailed record of the results has been produced showing the extent to which every test was successful. There is evidence that all or almost all of the required remedial action has been carried out.  There is an evaluation discussing how the final solution meets all or nearly all of the original needs of the user. The evidence is accurately spelt, punctuated and grammatically correct to make the meaning clear. The form and style of writing is appropriate. Information is clearly organised and specialist vocabulary has been used appropriately.