Final Revision sheet- term2

Slides:



Advertisements
Similar presentations
Practical Programming COMP153-08S Lecture: Repetition Continued.
Advertisements

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 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
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.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.1.
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!
Design the form above that calculates GPAs. It has a ComboBox of grades, a NumericUpDown control for credits, a button to add grades and credits to two.
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.
Error Trapping Exception Catching 1. Syntax & Compile-time  VB – Editor/Compiler Logic and Design  You Runtime  You Types of Errors: 2 When your program.
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.
Knowledge Base. Defining a Variable Dim statement Dim intXX As Integer Public in a Module Public dblNN As Double.
© 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.
VBA Excel Macro 1.Create a Macro: To create a macro in Excel VBA, Create a Macro: To create a macro in Excel VBA,Create a Macro: To create a macro.
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.
VBA - Excel VBA is Visual Basic for Applications
while Repetition Structure
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.
CSC115 Introduction to Computer Programming
Chapter 19 JavaScript.
البرمجة بلغة فيجول بيسيك
مراحل كتابة البرنامج بلغة فيجول بيسك ستديو
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.
Data Types List Box Combo Box Checkbox Option Box Visual Basic 6.0
Suppose I want to add all the even integers from 1 to 100 (inclusive)
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
Loops ISYS 350.
MIS 3200 – Unit 5.1 Iteration (looping) Working with List Items
Final Revision sheet- term2
F T T T F.
Presentation transcript:

Final Revision sheet- term2 (Sample test #1)

X √ X X √ X

Syntax 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 ( )