Class 3 Remote Instruction Decision Structures and Global Variables EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast.

Slides:



Advertisements
Similar presentations
5.04 Apply Decision Making Structures
Advertisements

CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 3 Tariq Aziz and Kevin Jones.
Compunet Corporation Programming with Visual Basic.NET GUI Chapter 3 Week 13 Tariq Aziz and Kevin Jones.
Solving Linear Equations Adapted from Walch Education.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Visual Basic Chapter 1 Mr. Wangler.
Creating Embedded Formative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
JavaScript Form Validation
A453 Exemplar Password Program using VBA
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 05 Learning To Program.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Class 2 Remote Instruction Introduction to Variables EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your.
Class 1 Remote Instruction More with Forms and Controls EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure.
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.
Remote Instruction: Teaching with Visual Basic EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your volume.
Class 3 Remote Instruction Computer Math EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your volume is.
Data Types and Variables. Data Type! Computers are all about Data! Data can be in the form of Text Dates Sounds Pictures.
Advanced Work with Embedded and Summative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
CS 101 Test 2 Study Guide Acronyms RAD - Rapid Application Development IDE - Integrated Development Environment GUI - Graphical User Interface VB - Visual.
How to Register your clicker and set the Channel First of course check- out a clicker at HH 114.
1 Week 5 More on the Selection Structure. 2 Nested, If/ElseIf/Else, and Case Selection Structures Lesson A Objectives After completing this lesson, you.
Sample CBT Template Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
Class 2 Remote Instruction Review of Working with Buttons EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure.
Spreadsheets Lesson 2 Introduction to basic formula and spreadsheet.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 4 Working with Variables, Constants, Data Types, and Expressions.
Chapter 3 Control Structures. The If…Then Statement The If…Then statement is a Decision statement = that executes a set of statements when a condition.
COMPUTER PROGRAMMING I 3.02 Apply Properties Associated with the Controls.
Pay Example (PFirst98) Please use speaker notes for additional information!
1 Chapter 4 – Decisions 4.1 Relational and Logical Operators (see other set of slides) 4.2 If Blocks (see other set of slides) 4.3 Select Case Blocks (see.
2e – RadioButtons Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
MIS 3200 – Unit 5.1 Iteration (looping) – while loops – for loops Working with List Items.
Lesson 1. Security At the menu bar at the top you will see the word Tools. Click your mouse on Tools scroll down to Macro. Move the Mouse over and down.
Lesson 16. Practical Application 1 We can take advantage of JavaScript and the DOM, to set up a form so that the first text box of a form automatically.
31/01/ Selection If selection construct.
Basic ActionScript and PHP Cis 126. Getting Started set up a basic folder structure so we can keep our files organized. Mirror this structure on your.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Microsoft Visual Basic 2012 CHAPTER FIVE Decision Structures.
Knowledge Base. Defining a Variable Dim statement Dim intXX As Integer Public in a Module Public dblNN As Double.
CSD 340 (Blum)1 Introducing Text Input elements and Ifs.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
1 4.2 Selection Logical Operators. 2 Learning Objectives Explain how the logical operator AND Boolean statements works. Directly testing if text boxes.
National Diploma Unit 4 Introduction to Software Development Procedures and Functions.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Programming with Visual Basic.NET. Quick Links Program Code The Code Window The Event Procedure Assignment Statements Using AutoList Radio Buttons Buttons.
Visual Basic.NET BASICS Lesson 9 Nested If Statements and Radio Buttons.
Using Forms and Form Elements In Visual Basic.NET.
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.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Course ILT Using complex selection structures Unit objectives Include radio buttons and check boxes in an interface, create and call a user- defined Sub.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
Client-side (JavaScript) Validation. Associating a function with a click event – Part 1 Use the input tag’s onclick attribute to associate a function.
Visual Basic.NET Windows Programming
CHAPTER 4 DECISIONS & LOOPS
Chapter 4 The If…Then Statement
3.01 Apply Controls Associated With Visual Studio Form
CHAPTER FIVE Decision Structures.
Visual programming Chapter 1: Introduction
3.01 Apply Controls Associated With Visual Studio Form
Web Programming– UFCFB Lecture 17
3rd prep. – 2nd Term MOE Book Questions.
CHAPTER FIVE Decision Structures.
And the text with form..
Solving Linear Inequalities
Lesson 8: Boolean Expressions and "if" Statements
Conditions and Ifs BIS1523 – Lecture 8.
المحاضرة السادسة.
Items, Group Boxes, Check Boxes & Radio Buttons
Tooltip -Radio Button.
MIS 3200 – Unit 5.1 Iteration (looping) Working with List Items
Group Boxes, Radio buttons and Checked List Boxes
Presentation transcript:

Class 3 Remote Instruction Decision Structures and Global Variables EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your volume is turned up, and press F5 to begin. Click to advance as usual.

Global Variables Remember there are 3 places you can declare a variable, depending on how long you want the variable to “live.” – Whole program (global—declare in a module). – Form (declare on top of form). – Button (declare within button procedure/coding).

To Declare a Global Variable Select add new item—module. – The module will appear in the Solution Explorer. – Only code on module; no design. Declare the global variable in the module using the following coding: Friend variable_name As type

Global Variable Example 56 globalCounter = globalCounter + 1 lblOutput.Text = globalCounter

Decision Structures If condition Then statement Example: If score >= 70 Then lblOutput.text = “pass” End If

Decision Structures If condition Then statement Else statement Example: If score >= 70 Then lblOutput.text = “pass” Else lblOutput.text = “fail” End If

Conditional Statements Conditions = (equal to) <> (not equal to) > (greater than) < (less than) >= (greater than or equal to) <= (less than or equal to) Examples If score = 12 Then… If answer <> 10 Then… If age > 21 Then… If numCorrect < 3 Then… If score >= 70 Then… If answer <= 35 Then… If condition Then statement Else statement

Test Questions: Textboxes Test question. If txtInput.Text = “George Washington" Then totalCorrect = totalCorrect + 1 End If Use the If statement to see if the text property holds the correct answer.

Test Questions: Radio Buttons Test question. If RadioButton1.Checked = True Then totalCorrect = totalCorrect + 1 End If RadioButton1 RadioButton2 Radiobutton3 With radio buttons, the user can only select 1 answer. Use the If statement to see if the checked property for the correct answer is true.

Test Questions: Check Boxes Test question. If CheckBox1.Checked = True Then totalCorrect = totalCorrect + 1 End If Checkbox1 Checkbox2 Checkbox3 With check boxes, the user can select as many answers as desired. Use the If statement to see if the checked property for the correct answer is true.

Test Questions: Textboxes 3 lblOutput.text = totalCorrect Because we declared a global variable in the module, we can show the total correct on this form. Coding for “end” button is: End

Review Declare a global variable: – Friend variable_name As type – Declare in module. Conditional statements: – If condition Then statement – If condition Then statement Else statement Use a global variable with text boxes, check boxes, and radio buttons to create test questions and score them.