Class 3 Remote Instruction Computer Math EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your volume is.

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Select Case Statements and Selection Input.
Advertisements

Microsoft Visual Basic: Reloaded Chapter Seven More on the Repetition Structure.
Advanced PowerPoint Techniques and Introduction to VBA Coding Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
Flowchart Start Input weight and height
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.
Android Apps: Building Blocks Module 6, Intro to I.T., Fall 2011 Sam Scott.
3/9/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore Bostrup 1 Introduction to VB6 Week 2.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Creating Embedded Formative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
Working with Numbers in Alice - Converting to integers and to strings - Rounding numbers. - Truncating Numbers Samantha Huerta under the direction of Professor.
Ch 11: Userforms CP212 Winter Topics Designing User Forms o Controls Setting Properties o Tab Order o Testing Writing Event Handlers o Userform_Initialize.
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg,
Class 2 Remote Instruction Introduction to Variables EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your.
Chapter 12: How Long Can This Go On?
Chapter 9 - VB.Net by Schneider1 Chapter 9 – Additional Controls and Objects 9.1 List Boxes, Combo Boxes, and the File-Opening Control The List Box Control.
3 - Variables Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Representing Data: Constants and Variables CHAPTER THREE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
Class 1 Remote Instruction More with Forms and Controls EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure.
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
Class 3 Remote Instruction Decision Structures and Global Variables EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast.
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.
Fundamentals of GUI Programming. Objectives: At the end of the session, you should be able to: describe the guidelines that are used for creating user-friendly.
CS0004: Introduction to Programming Project 1 – Lessons Learned.
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.
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.
1 Advanced Computer Programming Lab Calculator Project.
Class 2 Remote Instruction Review of Working with Buttons EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure.
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
Nonvisual Arrays by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Pay Example (PFirst98) Please use speaker notes for additional information!
Tutorial 3: Using Variables and Constants1 Tutorial 3 Using Variables and Constants.
MIS 3200 – Unit 5.1 Iteration (looping) – while loops – for loops Working with List Items.
31/01/ Selection If selection construct.
Variables Continued In the last session we saw how variables are objects that allow us to store values in the RAM of the computer In this session we shall.
Slide 1 Controls v Control naming convention –Label: lblName –Command Button: cmdName –Text Box: txtName.
© by Pearson Education, Inc. All Rights Reserved.-Edited By Maysoon Al-Duwais 2.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
IMS 3253: Controls 1 Dr. Lawrence West, MIS Dept., University of Central Florida Topics Check Boxes Radio Buttons Date Time Picker Masked.
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.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Chapter 4.  Variables – named memory location that stores a value.  Variables allows the use of meaningful names which makes the code easier to read.
Slide 1 Chapter 3 Variables  A variable is a name for a value stored in memory.  Variables are used in programs so that values can be represented with.
© 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.
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.
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”
Computer Science Up Down Controls, Decisions and Random Numbers.
COMPUTER PROGRAMMING I Apply Procedures to Develop List Box and Combo Box Objects.
Input, Output and Variables GCSE Computer Science – Python.
Visual Basic Fundamental Concepts
A variable is a name for a value stored in memory.
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming UTPA – Fall 2012 This set of slides is revised from lecture.
Introduction to Computing
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
3rd prep. – 2nd Term MOE Book Questions.
3rd prep. – 2nd Term MOE Book Questions.
Variables and Arithmetic Operations
Microsoft Visual Basic 2005 BASICS
Visual Basic..
Visual Basic.
Visual Basic Programming Chapter Four Notes Working with Variables, Constants, Data Types, and Expressions GROUPBOX CONTROL The _____________________________________.
Chapter (3) - Looping Questions.
Using Lists and Functions to Create Dialogue
Introduction to Programming
Data Types and Maths Programming Guides.
Input, Variables, and Mathematical Expressions
Presentation transcript:

Class 3 Remote Instruction Computer Math 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.

Quick Review of Variables Declare a variable: – Dim variable_name As Type Popular types: – String: Text. – Integer: Whole number. – Single: Decimal number. – Boolean: True/false. Can declare in 3 places: – Within a button (event procedure). – On the form. – In a module. Will be “alive” for entire program.

Review of Working with Controls To gather input from a textbox: – variable_name = txtInput.text To output information to a label: – lblOutput.text = variable_name To change a control’s properties: – lblOutput.visible = True – lblOutput.text = "Here is the text to appear." – txtInput.text = "" Concatenation: – variable_name = "My age is " & age & "." Clears all the text from the control.

Review of Text Boxes Don’t forget that you may want to change the “autosize” property of a text box in order to be able to resize it.

Introducing Some New Controls

Working with Graphics 1.Double-click the picturebox control. 2.Press the little arrow in the upper right of the box, and select “choose image.” 3.Press “import” under local resource. Choose your image.

Hiding/Displaying Graphics PictureBox1.visible = True PictureBox1.visible = False

Numeric Up/Down Control Set minimum and maximum properties. Allows user to set a number. Different way to gain user input.

Combo Box Control Press little arrow on the combobox to add a menu of items from which users can select. Different way to gather user input.

Introduction to Computer Math

Intro. to Computer Math Dim num1, num2, answer As Integer num1 = 2 num2 = 2 answer = num1 + num2 answer = num1 – num2 answer = num1 * num2 answer = num1 / num2 Declare variables. Store numbers in variables. Now you can do math, using the numbers stored in the variables.

Input and Output Math First, declare the variables you will need: – Dim num1, num2, answer As Integer Then, gather student numbers from textboxes: – num1 = txtInputNum1.text – num2 = txtInputNum2.text Now you are ready to do the math: – answer = num1 + num2 Finally, output the answer in a label: – lblOutput.text = answer

Put It All Together Enter 2 numbers: Answer Dim num1, num2, answer As Integer num1 = txtInputNum1.text num2 = txtInputNum2.text answer = num1 + num2 lblOutput.text = answer lblOutput txtInputNum2 txtInputNum1

Using a Counter Variable counter = counter + 1 lblOutput.text = counter Form Form1 Dim counter As Integer lblOutput

Remote Assignment Please enter 2 numbers: Answer