Lesson Objectives Aims Key Words

Slides:



Advertisements
Similar presentations
Integrated Business Applications with Databases (D3) Jenny Pedler
Advertisements

Developing Software Applications Introduction to Programming Fundamentals Scoping in VB Simple Ifs in VB.
VBA & Excel Barry L. Nelson IEMS 465 Fall Quarter 2003.
Software design and development Marcus Hunt. Application and limits of procedural programming Procedural programming is a powerful language, typically.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 05 Learning To Program.
CS0004: Introduction to Programming Relational Operators, Logical Operators, and If Statements.
Programming Test #1 Solutions. Multiple Choice 1. B) the grammar of the coding language 2. C) String 3. A) Single 4. C) 2Burgers4Me 5. B) Design Time.
110-G1 Motivation: Within a program, may have to perform the same computation over and over Many programs share the same computation (e.g. sorting) To.
Visual Basic CODE. Basics of Code Declaration Declaration Set aside a named place to put things Set aside a named place to put things Assignment Assignment.
Introduction to VB.NET 2005 Dr. McDaniel IDS4704 Spring 2005.
6c – Function Procedures Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
22/11/ Selection If selection construct.
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
ME 142 Engineering Computation I Using Subroutines Effectively.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Ten Structures and Sequential Access Files.
31/01/ Selection If selection construct.
A: A: double “4” A: “34” 4.
Variables in VB. What is a variable? ► A named memory location that stores a value.
DATA TYPES, VARIABLES AND CONSTANTS. LEARNING OBJECTIVES  Be able to identify and explain the difference between data and information  Be able to identify,
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
Starting Out with Visual Basic.NET 2 nd Edition Chapter 6 Sub Procedures And Functions.
Pseudo-code. Pseudo-code Task 1 Preparation Use the following code to declare, initialise and populate an array in a new VB.NET console application:
Sub Procedures and Functions Visual Basic. Sub Procedures Slide 2 of 26 Topic & Structure of the lesson Introduction to Modular Design Concepts Write.
CS0004: Introduction to Programming
CSIT 108 Review Visual Basic.NET Programming: From Problem Analysis to Program Design.
Sub Procedures And Functions
Visual Basic Fundamental Concepts
Unit 2 Technology Systems
CS314 – Section 5 Recitation 10
Lesson Objectives Aims Key Words
COMPUTATIONAL CONSTRUCTS
IGCSE 4 Cambridge Data types and arrays Computer Science Section 2
Programming constructs
17 – Modular Design in ASP.
Sorting Algorithms.
Unit 20: Event Driven Programming
Unit 2 Smarter Programming.
Starter Question In your jotter write the pseudocode to take in two numbers, add them together then display the answer. Declare variables RECEIVE firstNumber.
Engineering Innovation Center
للمزيد زورونا على موقعنا الإلكتروني:
Review Operation Bingo
Computer Science and an introduction to Pascal
VISUAL BASIC.
Visual Basic..
Unit 14 Event Driven Programming
البرمجة بلغة فيجول بيسك ستوديو
Lesson Objectives Aims
Lesson Objectives Aims Key Words
Lesson Objectives Aims You should be able to:
CIS16 Application Development and Programming using Visual Basic.net
Lesson Objectives Aims Key Words:
If selection construct
Lesson Objectives Aims Key Words
VB.Net Programming Console Application
VB.Net Programming Console Application
If selection construct
CS285 Introduction - Visual Basic
Chapter 7: Using Functions, Subs, and Modules
Controls, Properties, and Procedures
Learning Intention I will learn about programming using selection (making choices) with one condition.
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Procedures: Functions and Subroutines
The structure of programming
Chapter 8 - Functions and Functionality
Classes & Objects A deeper Look Chapter 10 & 11
Fundamental Programming
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
Algorithms For use in Unit 2 Exam.
10.3 Procedures Function Procedures 07/06/2019.
Presentation transcript:

Lesson Objectives Aims Key Words Be able to understand various programming “paradigms” (models) To understand the use of procedures and functions To be able to define “procedural” programming Key Words

Procedural Splitting code in to distinct or manageable chunks A procedure is a defined section of code with a name: Sub outputValue() 'example method, will output the cars value 'to the console, based on its initial value 'minus a depreciation percentage * age Dim resaleValue As Double Console.WriteLine("The value is:") resaleValue = marketvalue - ((age * 0.2) * 1000) Console.WriteLine("£ " & resaleValue) End Sub

Procedural Programs are split in to sections Called Procedures, Routines, Subroutines or Functions Each will have a specific role in the program and will perform a small subset of tasks This makes design easier and programming more manageable

Procedures and functions can be: Procedural Procedures and functions can be: Called anywhere Called any time Called from within other procedures Recursive in the case of functions

Procedural Procedures may be : Called using their names outputValue() Passed parameters/values Declaration: outputValue(listprice As Double, age As Integer) Call: outputValue(19999, 10)

A function works very much like a procedure Functions A function works very much like a procedure Only it returns (gives back) a value: Function isHeads(coinflip As String) As Boolean If coinflip = "Heads" Then Return True Else Return False End If End Function

Examples of procedural languages are: Basic C Event Driven (GUI VB) is procedural in nature.

Coursework It is likely you will make use of procedural programming for your coursework You need to start practising now You can’t practise without a goal Hence why you need to be thinking of a task!

Write a VB function that: Takes in a string value Task Write a VB function that: Takes in a string value Returns a Boolean Value Works out, based on the input: Whether the string contains a space Give your function a sensible name

Review/Success Criteria You should know: What a “paradigm” is What procedural programming is What a procedure is What a function is How to declare both in VB