Flow chart of the program Start Input a password Is it greater than 6 characters No Is it greater than 6 characters Is it greater than 12 characters yes.

Slides:



Advertisements
Similar presentations
Hamilton Venus Software User Interface Options
Advertisements

Visual Basic Statements Chapter 5. Relational Operators  OperationSymbol  Equal  =  Less than  <  Greater than  >  Not equal   Less than.
Exercise (1).
Revision.
ABNIAC The following slide presentation is to acquaint the student with ABNIAC. The version used for presentation is the Java version, which can be found.
Repetition Control Structures School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 9, Friday 3/07/2003)
Session Objectives# 24 COULD code the solution for an algorithm
Computer Science 101 Overview of Algorithms. Example: Make Pancakes Prepare batter Beat 2 eggs Add 1 tablespoon of brown sugar Add 1 cup of milk Add 2.
1 Pseudocode For Program Design. 22 Rules for Pseudocode Write only one statement per line Capitalise initial keyword Indent to show hierarchy and structures.
Selection Statements Selects statements to execute based on the value of an expression The expression is sometimes called the controlling expression Selection.
Slide 1 VB Program Flow Control. Slide 2 Making Decisions v Decision Statement: control the execution of parts of the program based on conditions. v The.
True BASIC Ch. 6 Practice Questions. What is the output? PRINT X LET X = -1 PRINT X FOR X = 4 TO 5 STEP 2 PRINT X NEXT X PRINT X END.
1 Controlling Script Flow! David Lash Chapter 3 Conditional Statements.
1 CSI 101 Elements of Computing Fall 2009 Lecture #4 Using Flowcharts Monday February 2nd, 2009.
Developing logic (Examples on algorithm and flowchart)
Programming in Matlab Day 1: Basics. Matlab as a calculator >> 2+2 ans = 4 >> 2^3 ans = 8 >> sqrt(2) ans = Command Window Basic operations Sum:
1 Chapter 2 Problem Solving Techniques INTRODUCTION 2.2 PROBLEM SOLVING 2.3 USING COMPUTERS IN PROBLEM SOLVING : THE SOFTWARE DEVELOPMENT METHOD.
Chapter 3 (Tutorial).
Algorithms A Central Heating system Start Is temp <19
A453 Exemplar Password Program using VBA
Verify your data entry You could use data types and field properties for adding any validation on your date: EX: Data type: number : allow the user to.
Stack Applications.
Pseudocode Demo for Payroll.c
STRINGS CMSC 201 – Lab 3. Overview Objectives for today's lab:  Obtain experience using strings in Python, including looping over characters in strings.
CSEB114: Principle of programming
Flowcharts! January 13, 2005 These are today’s notes! Do you think we will get more snow?
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
1 Data Comparisons and Switch Data Comparisons Switch Reading for this class: L&L 5.3,
Chapter Six: Working With Arrays in Visual Basic.
Edit Programs Please use speaker notes for additional information. Example: payedit.cbl payedit.cbl.
Python Repetition. We use repetition to prevent typing the same code out many times and to make our code more efficient. FOR is used when you know how.
ITEC113 Algorithms and Programming Techniques
Intro to Nested Looping Intro to Computer Science CS1510 Dr. Sarah Diesburg.
How to create a line graph using Excel Spreadsheet.
Copyright © 2001 by Wiley. All rights reserved. Chapter 6: Using Arrays Control Arrays List Arrays Finding Items in Arrays Multiple Forms 2-Dimensional.
1 Scripting Languages VBScript - Recognized mainly by Internet Explorer only - Netscape does have a plug-in JavaScript - Recognized by Internet Explorer.
Chapter 11 Data Validation. Question Should your program assume the data is correct, or should your program edit the data to ensure it is correct?
COMPE 111 Introduction to Computer Engineering Programming in Python Atılım University
Fundamental Programming Fundamental Programming More on Repetition.
110 F-1 Decisions and Conditions Chapter 4: We can design a form We can calculate To make our programs more powerful, we need to be able to make choices.
Visual Basic.net Functions. Function (Defined) A procedure that returns a value when called.
CSC 4630 Perl 3 adapted from R. E. Beck. Problem But we worked on it first: Input: Read from a text file named in a command line argument Output: List.
An Introduction to Programming with C++ Sixth Edition Chapter 5 The Selection Structure.
CSC 162 Visual Basic I Programming. String Functions LTrim( string ) –Removes leading spaces from the left side of string RTrim( string ) –Removes trailing.
Chapter 4: Decisions and Conditions
Basic concepts of C++ Presented by Prof. Satyajit De
Chapter 4: Decisions and Conditions
Logical Functions Excel Lesson 10.
String Methods Programming Guides.
A451 Theory – 7 Programming 7A, B - Algorithms.
COMPUTATIONAL CONSTRUCTS
Output “Funds not available”
Flowchart Symbols Terminal Process Input/ Output Decision
The Selection Structure
ALGORITHMS & FLOWCHARTING II
ITM 352 Flow-Control: Loops
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Structured Program Design
Start at our website at In the upper right hand corner is a link for “Office 365”
Intro to Nested Looping
Higher Computing Using Loops.
Iteration: Beyond the Basic PERFORM
Iteration: Beyond the Basic PERFORM
CEV208 Computer Programming
Simple Linear Regression
Intro to Nested Looping
VB Decisions & Conditions
Flowcharts and Pseudo Code
differentiate double pulse
String Handling.
Presentation transcript:

Flow chart of the program Start Input a password Is it greater than 6 characters No Is it greater than 6 characters Is it greater than 12 characters yes

Flow chart of the program Output password OK and write to spreadsheet file Set Counter, uppers, lowers, numerics Puncts to Zero For each character in password Is the character lcase or lowercase ? lowers = lowers +1 yes No Is the character ucase or Uppercase ? Uppers= Uppers+1 Yes Is the character Numeric ? Numbers = Numbers + 1 Yes Is the character not lcase or ucase or numeric? Punct = punct + 1 No Yes

All characters checked? No Password status = uppers, l+ owers, numerics + Puncts Output password strength and write to file REPEAT INPUT the password len=length of password IF len 12 THEN PRINT suitable error message UNTIL len >=6 and <=12 PRINT password OK Initialise upper, lower, puncts and number to 0 FOR i = 1 TO len For Counter = 1 To Len(ValidPassword(howmanypasswords)) Select Case Asc(Mid(ValidPassword(howmanypasswords), Counter, 1)) Case 47 To 57 numerics = numerics + 1 Case 65 To 90 uppers = uppers + 1 Case 97 To 122 lowers = lowers + 1 Case Else puncts = puncts + 1 End Select Next Counter If uppers > 0 And lowers > 0 And puncts > 0 And numerics > 0 Then passwordstatus = "Extra Strong" ElseIf uppers > 0 And lowers > 0 And numerics > 0 Then passwordstatus = "Strong" ElseIf alphas > 0 And (puncts > 0 Or numerics > 0) Then passwordstatus = "Medium" ElseIf uppers > 0 And lowers > 0 Then passwordstatus = "Medium“ Else passwordstatus = "Weak“ Endif Stop