Final Revision sheet- term2

Slides:



Advertisements
Similar presentations
Visual Basic for Applications. What it does Extends the features and built in functions of Excel – Create and run VB procedures – Some may be easy to.
Advertisements

Practical Programming COMP153-08S Lecture: Repetition Continued.
Muffin Shop - if, calculations etc. (muffins, muffins2) Please use speaker notes for additional information!
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.
Break Processing Please use speaker notes for additional information!
Visual Basic Games: Prepare for Hangman
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
08/10/ Iteration Loops For … To … Next. 208/10/2015 Learning Objectives Define a program loop. State when a loop will end. State when the For.
For Loops (ProjFor1, ProjFor2, ProjFor3, ProjFor4, textbox, textbox1) Please use speaker notes for additional information!
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
MS Visual Basic Applications Walter Milner. Event-driven programming Standard approach for GUIs Contrast with old character interfaces – program determines.
Visual Basic Programming Making Decisions: Loops & Decision Structures ©Copyright by Ronald P. Kessler, Ph.D.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Class Average Application Introducing the Do...Loop While and Do...Loop Until.
CS 101 Test 2 Study Guide Acronyms RAD - Rapid Application Development IDE - Integrated Development Environment GUI - Graphical User Interface VB - Visual.
Lecture 2 Conditional Statement. chcslonline.org Conditional Statements in PHP Conditional Statements are used for decision making. Different actions.
Created by Alia Al-Abdulkarim 2008 Visual Basic Vs. Java.
MIS 3200 – Unit 5.1 Iteration (looping) – while loops – for loops Working with List Items.
CECS 5020 Computers in Education Visual Basic Variables and Constants.
31/01/ Selection If selection construct.
For…Next and Do...While Loops! Happy St. Patrick’s Day!
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
Calculator Program Explained by Arafa Hamed. First Designing The Interface Ask yourself how many places are there that will be used to input numbers?
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
Think First, Code Second Understand the problem Work out step by step procedure for solving the problem (algorithm) top down design and stepwise refinement.
مقدمة في البرمجة Lecture 7. Write VB.net project using the for loop to calculate : 1- the sum of numbers from 1 to (A) numbers. 2- the sum of Odd numbers.
Adding Code to the Option Button. Open VB 1.Double click the Calculate button and select General from the Object list box. 2.Add the following code to.
Knowledge Base. Defining a Variable Dim statement Dim intXX As Integer Public in a Module Public dblNN As Double.
Chapter 4.  Variables – named memory location that stores a value.  Variables allows the use of meaningful names which makes the code easier to read.
© 2006 Lawrenceville Press Slide 1 Chapter 4 Variables  A variable is a name for a value stored in memory.  Variables are created using a declaration.
Visual Basic Declaring Variables Dim x as Integer = 0 In the statement above, x is being declared as an Integer (whole number) and is initialised.
Slide 1 Chapter 3 Variables  A variable is a name for a value stored in memory.  Variables are created using a declaration statement. For example: Dim.
Welcome to Computer Programming II! Computer Programming II Summer 2015.
Visual Basic Fundamental Concepts
Egyptian Language School Computer Department
IE 8580 Module 4: DIY Monte Carlo Simulation
A variable is a name for a value stored in memory.
Writing algorithms Introduction to Python.
Loops ISYS 350.
Visual Basic 6 (VB6) Data Types, And Operators
Tutorial 10 – Class Average Application Introducing the Do…Loop While and Do…Loop Until Repetition Statements Outline Test-Driving the Class Average.
3rd prep. – 2nd Term MOE Book Questions.
3rd prep. – 2nd Term MOE Book Questions.
Chapter 19 JavaScript.
Chapter 6 – Repetition 6.1 Do Loops 6.2 For...Next Loops
البرمجة بلغة فيجول بيسيك
مراحل كتابة البرنامج بلغة فيجول بيسك ستديو
Visual Basic..
مراجعة الحاسب.
حلقات التكرار.
البرمجة بلغة فيجول بيسك ستوديو
Loops ISYS 350.
Chapter 3: Introduction to Problem Solving and Control Statements
CIS16 Application Development and Programming using Visual Basic.net
Chapter (3) - Looping Questions.
Suppose I want to add all the even integers from 1 to 100 (inclusive)
Additional Topics in VB.NET
Adding Record To Your Database
Loops ISYS 350.
Active-X Calendar Control
Loops ISYS 350.
Visual Basic Programming
Visual C# - GUI and controls - 1
To understand what arrays are and how to use them
MIS 3200 – Unit 5.1 Iteration (looping) Working with List Items
F T T T F.
Final Revision sheet- term2
Presentation transcript:

Final Revision sheet- term2 (Sample test #1)

X √ X X √ X

Run time Rem Arithmatic equality 7 MultiLine # # Arithmatic equality 7 MultiLine

to determine if the degree is (<0 , = 0 or >0 ) “ تحت الصفر” click Button1 single Set the cursor Focus inside TextBox1 Try ….Catch

Function Sum First , Second Single total

Final Revision sheet- term2 (Sample test #2)

Syntax Harassment “ “ IF .. Then Select .. Case Parameters X X √ √ √ √ “ “ underscore IF .. Then Select .. Case Parameters

To check the student’s Grade and Print “ناجح” if X>=50 ”ناجح“ ”راسب“ Single Current form If x > 50 then MsgBox(“ناجح”) else MsgBox(“راسب”)

Dim N , i As Integer N= textBox1.Text ListBox1.Items.Clear()   For i = 1 t o N step 2 ListBox1.Items.Add ( i ) Next i Method Control Property Increase counter variable i Display the odd numbers from 1 to entered value ( N) in ListBox1 Receive value inTextBox1 and assign to variableN the condition (i<=N) is true

Final Revision sheet- term2 (Sample test #3)

TextBox5.Text = TextBox5.Text & “ “ & M Next M √ X √ X √ X Dim M As Integer TextBox5.Text = “ ”  For i = 1 t o 17 step 2 TextBox5.Text = TextBox5.Text & “ “ & M Next M

IDE helps handling Const Pi as single = 3.14 Syntax error Dim x As Integer x = Me.textbox1.text Select Case x Case 0 label1.text = " Equal Zero" Case is > 0 Label1.Text = "Greater than Zero" Case is < 0 Label1.Text = "Less than Zero" End Select IDE helps handling Const Pi as single = 3.14 Syntax error Area = pi * r * r Logical error Revise the code IDE helps handling Dim X As Byte Syntax error

2 4 1 3

Const BirthDate as date = # 22/ 11/ 1972 # Dim St_Name as String TextBox1.Text = “ “ ListBox1 . Items . Add ( X ) MsgBox(“Welcome”) TextBox4. Focus ( )