A Level Computing#BristolMet Session ObjectivesU2#S12 MUST describe the terms modal and pretty printing in term of input and output facilities. SHOULD.

Slides:



Advertisements
Similar presentations
Fundamentals of Python: From First Programs Through Data Structures Chapter 2 Software Development, Data Types, and Expressions.
Advertisements

A Level Computing#BristolMet Session Objectives#U2 S8 MUST identify the difference between a procedure and a function SHOULD explain the need for parameters.
Session Objectives# 24 COULD code the solution for an algorithm
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
 A data processing system is a combination of machines and people that for a set of inputs produces a defined set of outputs. The inputs and outputs.
C - Input & Output When we are saying Input that means to feed some data into program. This can be given in the form of file or from command line. C programming.
Programming is instructing a computer to perform a task for you with the help of a programming language.
Prototype & Design Computer Inputs. How to Prototype & Design Computer Inputs Step 1: Review Input Requirements Step 2: Select the GUI Controls Step 3:
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Ch 51 Internal Commands COPY and TYPE. Ch 52 Overview Will review file-naming rules.
Topics Introduction Hardware and Software How Computers Store Data
A Level Computing#BristolMet Session Objectives U2#S6 MUST identify different data types used in programming aka variable types SHOULD describe each data.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
1 Computing Software. Programming Style Programs that are not documented internally, while they may do what is requested, can be difficult to understand.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Copyright © 2012 Pearson Education, Inc. Chapter 1 Introduction to Computing and Programming.
Fundamentals of Python: First Programs
11.10 Human Computer Interface www. ICT-Teacher.com.
A Level Computing#BristolMet Session ObjectivesU2#S10 MUST describe the difference between constants, local and global variables SHOULD explain why constants.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
A Level Computing#BristolMet Session Objectives U2#S9 MUST identify operators and operands SHOULD describe different types of operator COULD Create an.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Mastering Char to ASCII AND DOING MORE RELATED STRING MANIPULATION Why VB.Net ?  The Language resembles Pseudocode - good for teaching and learning fundamentals.
GCSE Computing#BristolMet Session Objectives#11 MUST identify what program instructions consist of SHOULD describe how instructions are coded as bit patterns.
Introduction to Computer Programming Using C Session 23 - Review.
A Level Computing#BristolMet Session Objectives#U2 S7 MUST understand the difference between an array and record SHOULD be able to estimate the size of.
Tools for information processes Organising IPT 2009.
Computer Science: A Structured Programming Approach Using C1 2-7 Input/Output Although our programs have implicitly shown how to print messages, we have.
A-Level Computing#BristolMet Session Objectives#15 MUST define the term user interface SHOULD describe the characteristics of different UIs and suggest.
Lesson 1 Operating Systems, Part 1. Objectives Describe and list different operating systems Understand file extensions Manage files and folders.
The Software Development Process
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Chapter Three The UNIX Editors.
Computer Science: A Structured Programming Approach Using C1 2-7 Input/Output Although our programs have implicitly shown how to print messages, we have.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
1 Objectives ❏ To understand the differences between text and binary files ❏ To write programs that read, write, and/or append binary files ❏ To be able.
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
Files in Python The Basics. Why use Files? Very small amounts of data – just hardcode them into the program A few pieces of data – ask the user to input.
A Level Computing#BristolMet Session Objectives#U2 S3 MUST use/read programme flow charts accurately SHOULD adapt the calculator programme to include a.
Types of Software Chapter 2.
GCSE Computing#BristolMet Session Objectives #23 MUST understand what is meant by the programming term iteration SHOULD describe methods of looping used.
A FIRST BOOK OF C++ CHAPTER 14 THE STRING CLASS AND EXCEPTION HANDLING.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
A Level Computing#BristolMet Session Objectives#U2S11 MUST identify built-in string manipulation functions SHOULD correctly use string manipulation functions.
Dept. of Animal Breeding and Genetics Programming basics & introduction to PERL Mats Pettersson.
Graphical User Interfaces (GUI’s ). & Command-Line Interfaces.
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
Chapter 1: Introduction to Computers and Programming.
Getting Started With Python Brendan Routledge
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
By the end of this session you should be able to... Understand character sets and why these are used within computer systems. Understand how characters.
Java Programming: From the Ground Up
Chapter 7 Text Input/Output Objectives
Guide To UNIX Using Linux Third Edition
Topics discussed in this section:
Representing Characters
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Chapter Four UNIX File Processing.
The Main Features of Operating Systems
Introduction to Python
ASCII LP1.
What you need to do… Drag the pieces of code into the correct order like you can see in the EXAMPLE below. print ( “ int input ) = + Hello world chr ord.
Presentation transcript:

A Level Computing#BristolMet Session ObjectivesU2#S12 MUST describe the terms modal and pretty printing in term of input and output facilities. SHOULD explain the use of character codes when comparing string variables (strings) COULD create string based algorithms using a high level programming language

A Level Computing#BristolMet Key Words

A Level Computing#BristolMet Arithmetic Operations Continued Starter: THINK! Which of the 4 arithmetic operations (+, -, *, /) needs to be handled differently by a programme and why? Copy down the table for these operations on p.101 Also, make sure you have the relational (or comparison operators) noted down as you will also need them later on. Test whether the syntax you have works using the Python Shell, if not find the correct syntax and share.

A Level Computing#BristolMet Input and Output facilities All systems have methods for input and output. How this is done depends on the type of interface (GUI, menu or command based) And the hardware available (input/output devices). Today will be mainly using the Python Shell directly which is both the input and output facility but what type of interface would you describe it as? Jargon: Modal – the dialogue boxes we have been using in Javascript are known to be modal, as the user cannot continue until the box has been closed. Sound familiar? Pretty Printing – Many languages offer the facilities to display lines of test neatly, with specfic formatting such alignment etc. This is useful when outputting to text files or a printer.

A Level Computing#BristolMet Determining Character codes As we know every character has its own value or binary bit pattern. The ASCII conversion system is commonly used. In most languages the ASCII value of a character can be determined using: ASCII (“character”) Likewise, a character can be determined by its code value using: CHAR (“character code”) Use the Python Shell to see if these built-in functions work, if not, find ones which do. Experiment with different characters and think why might this be useful when comparing strings? What problems might occur and what methods could be used by a programmer to overcome these problems? ord (“ “) chr ( )

A Level Computing#BristolMet Test your knowledge TASK 1: Let’s test your understanding of string manipulation by completing the Exam Question 1 c- g Jan 2013 TASK 2: Activity Q 1 on p.106 TASK 3: Now attempt the practical Qs 2 and 3 on p. 106.