A Level Computing#BristolMet Session Objectives#U2S11 MUST identify built-in string manipulation functions SHOULD correctly use string manipulation functions.

Slides:



Advertisements
Similar presentations
A Level Computing#BristolMet Session Objectives#U2 S2 MUST describe the steps of an algorithm using a program flowchart SHOULD explain the data types and.
Advertisements

Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
FUNDAMENTALS OF COMPUTER SYSTEMS OCR GCSE Computing.
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
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
Introduction to Structured Query Language (SQL)
Data Structures Introduction. What is data? (Latin) Plural of datum = something given.
1 Lecture 7:Control Structures I (Selection) Introduction to Computer Science Spring 2006.
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Attribute databases. GIS Definition Diagram Output Query Results.
Input and Output in Console Mode UNIVERSITY OF THE PUNJAB (GUJRANWALA CAMPUS) ADNAN BABAR MT14028 CR
Introducing Java.
Fortran 1- Basics Chapters 1-2 in your Fortran book.
A Level Computing#BristolMet Session Objectives U2#S6 MUST identify different data types used in programming aka variable types SHOULD describe each data.
A Level Computing#BristolMet Session Objectives U2#1 MUST identify the elements required for the design of an effective online data capture form SHOULD.
WEEK 3 AND 4 USING CLIENT-SIDE SCRIPTS TO ENHANCE WEB APPLICATIONS.
A Level Computing#BristolMet Session ObjectivesU2#S10 MUST describe the difference between constants, local and global variables SHOULD explain why constants.
A Level Computing#BristolMet Session Objectives U2#S9 MUST identify operators and operands SHOULD describe different types of operator COULD Create an.
Mastering Char to ASCII AND DOING MORE RELATED STRING MANIPULATION Why VB.Net ?  The Language resembles Pseudocode - good for teaching and learning fundamentals.
Chapter 8 Cookies And Security JavaScript, Third Edition.
Implementing a Port Knocking System in C Honors Thesis Defense by Matt Doyle.
Input, Output, and Processing
File I/O ifstreams and ofstreams Sections 11.1 &
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.
University of Sunderland CIF 102/FIF102 Fundamentals of DatabasesUnit 15 Programming in Microsoft Access using VBA Using VBA to add functionality.
Introduction to Programming with RAPTOR
Term 2, 2011 Week 1. CONTENTS Problem-solving methodology Programming and scripting languages – Programming languages Programming languages – Scripting.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
Lesson 6. Python 3.3 Objectives. In this lesson students will learn how to output data to the screen and request input from the user. Students will also.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Data Structures and Algorithms Lecture 1 Instructor: Quratulain Date: 1 st Sep, 2009.
A-Level Computing#BristolMet Session Objectives#15 MUST define the term user interface SHOULD describe the characteristics of different UIs and suggest.
Searching and Sorting. Why Use Data Files? There are many cases where the input to the program may come from a data file.Using data files in your programs.
A Level Computing#BristolMet Session ObjectivesU2#S12 MUST describe the terms modal and pretty printing in term of input and output facilities. SHOULD.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
C++ for Engineers and Scientists Second Edition Chapter 7 Completing the Basics.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 2 Input,
CHAPTER 2 PROBLEM SOLVING USING C++ 1 C++ Programming PEG200/Saidatul Rahah.
Introduction to Programming
A Level Computing#BristolMet Session Objectives#U2 S3 MUST use/read programme flow charts accurately SHOULD adapt the calculator programme to include a.
Algorithms and Pseudocode
Arrays Declaring arrays Passing arrays to functions Searching arrays with linear search Sorting arrays with insertion sort Multidimensional arrays Programming.
Introduction to Computer Programming using Fortran 77.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 3: Built-in functions.
COMPUTER PROGRAMMING Year 9 – lesson 1. Objective and Outcome Teaching Objective We are going to look at how to construct a computer program. We will.
Software Engineering Algorithms, Compilers, & Lifecycle.
Topic: Python Lists – Part 1
Input and Output Upsorn Praphamontripong CS 1110
Databases.
Computer Programming BCT 1113
GC211Data Structure Lecture2 Sara Alhajjam.
CMPT 120 Topic: Python strings.
Lecture 2 Introduction to Programming
Operators and Expressions
*current controlled assessment plans are unknown
ALGORITHMS AND FLOWCHARTS
exa.im/stempy16.files - Session 12 Python Camp
Introduction to C++ Programming
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
ALGORITHMS AND FLOWCHARTS
CEV208 Computer Programming
Fundamentals of Python: First Programs
The ultimate in data organization
Data Types and Maths Programming Guides.
Please use speaker notes for additional information!
CMPT 120 Topic: Python strings.
COMPUTING.
Presentation transcript:

A Level Computing#BristolMet Session Objectives#U2S11 MUST identify built-in string manipulation functions SHOULD correctly use string manipulation functions COULD combine string manipulation in a working program Create a password strength indicator program

A Level Computing#BristolMet Key Words

A Level Computing#BristolMet String Manipulation - Extraction Most languages have built-in functions to extract part of a string, often being called LEFT, RIGHT or MID LEFT (, ) i.E LEFT (“Computing”, 3) returns “Com” but MID (,, ) i.e (“Computing”, 4, 3) returns “put” TASK: Experiment with the string extract functions using Python and then Javascript. Is the syntax and logic the same?

A Level Computing#BristolMet String Manipulation – Length Again,,most languages have a function to calculate the number of characters in a particular string, usually: LENGHTH ( ) i.e LENGTH ( ) returns 9 TASK: Try this in Python or Javascript. It is particularly useful validate passwords and increase strengths based on the numbers of characters used. EXT: Design, create and test a program that will encourage strong passwords to be used. What will you have to do first in order to write a suitable software solution?

A Level Computing#BristolMet Password Program Problem analysis: The program MUST Take user input and store as string Measure length of string Make decision based on length whether Strong, Medium or Weak Output Decision

A Level Computing#BristolMet String Manipulation - Locate Another common in-built function is facilitate the ability to search a string for certain sequences of characters. i.e LOCATE (, This varies between languages LOACTE (“put”, “Computing”) would return 4 as it is found from the 4 th character along in the string. TASK: Attempt in Python or Javascript and test to see working by getting results of 0 and above. TASK 2: Complete Questions 1-2 in the Activity on p.106 EXT: Create the program in Q3.