Creating Embedded Formative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.

Slides:



Advertisements
Similar presentations
Lists, Loops, Validation, and More
Advertisements

EasyGUI “Probably the Easiest GUI in the world”. Assumptions (Teachers’ Notes) This resources sets out an introduction to using easyGUI and Python
PROGRAMMING IN VISUAL BASIC PART 1
30/04/ Selection Nested If structures & Complex Multiple Conditions.
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Programming in Visual Basic
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Advanced PowerPoint Techniques and Introduction to VBA Coding Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
String Variables Visual Basic for Applications 4.
SUNY Morrisville-Norwich Campus-Week 12 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Repeating Program Instructions Chapter Microsoft Visual Basic.NET: Reloaded 1.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Advanced Techniques: PowerPoint as a Platform to Deliver CBT EDU 553 – Principles of Instructional Design Dr. Steve Broskoske.
Saeed Ghanbartehrani Summer 2015 Lecture Notes #4: Working with Variables and User Interfaces IE 212: Computational Methods for Industrial Engineering.
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 05 Learning To Program.
1 Visual Basic for Applications (VBA) for Excel Prof. Yitzchak Rosenthal.
Using Action Buttons and Action Settings Hands-on Approach to Learning How to Use Action Buttons by Dr. Steve Broskoske.
Chapter 17: Arrays Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Microsoft Office Excel Copyright © 2008 Pearson Prentice Hall. All rights reserved
Class 2 Remote Instruction Introduction to Variables EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your.
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
Chapter 12: How Long Can This Go On?
First tutorial.
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Access VBA Programming for Beginners - Class 2 - by Patrick Lasu
VBA Lab 2 I ns.Samia Al-blwi. Visual Basic Grammar Object: Visual Basic is an object-oriented language. This means that all the items in Excel are thought.
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.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Input Textboxes Input Boxes Different than textboxes Good for small amount of input (form full of textboxes is not nice) X = Inputbox(“prompt message”,
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.
Tutorial 51 Programming Structures Sequence - program instructions are processed, one after another, in the order in which they appear in the program Selection.
University of Sunderland CIF 102/FIF102 Fundamentals of DatabasesUnit 15 Programming in Microsoft Access using VBA Using VBA to add functionality.
Visual Basic Programming
Chapter 16: Programming Structures Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Class 3 Remote Instruction Computer Math EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your volume is.
Overview of VBA Programming & Syntax. Programming With Objects u Objects –Properties: attributes or characteristics of an object (e.g., font size, color,
Advanced Work with Embedded and Summative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
Chapter 16: Programming Structures Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Sample CBT Template Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
Lab 6 (2) Arrays ► Lab 5 (1) Exercise Review ► Array Concept ► Why Arrays? ► Array Declaration ► An Example of Array ► Exercise.
Class 2 Remote Instruction Review of Working with Buttons EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure.
1 Scripting Languages VBScript - Recognized mainly by Internet Explorer only - Netscape does have a plug-in JavaScript - Recognized by Internet Explorer.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Macro’s Within excel. Most functionality can be driven from VBA VBA is the programming language that runs inside of excel. It uses visual basic as the.
1 Printing in Python Every program needs to do some output This is usually to the screen (shell window) Later we’ll see graphics windows and external files.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
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.
Chapter 4 Getting Started with VBA. Subroutines Subroutine is the logical section of code that performs a particular task. Subroutine is also called a.
CECS 5020 Computers in Education Visual Basic Variables and Constants.
31/01/ Selection If selection construct.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 13 How Long Can This Go On?
Controlling Program Flow with Looping Structures
Variables and Strings. Variables  When we are writing programs, we will frequently have to remember a value for later use  We will want to give this.
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
Controlling Program Flow with Decision Structures.
Tutorial 81 Field, Record, Data File Field - a single item of information about a person, place, or thing Record - a group of related fields that contain.
Creation of Variables with Numeric, alphanumeric, date, picture, memo data types Constant - A quantity that does not change during the execution of a program.
Subroutines (PrArith, Math,projCP1, PrAdrProc, PrAdrProcFunc) Please use speaker notes for additional information!
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
IE 8580 Module 4: DIY Monte Carlo Simulation
3rd prep. – 2nd Term MOE Book Questions.
Final Exam Review Part 4 - VBA
Exploring Microsoft Excel
T. Jumana Abu Shmais – AOU - Riyadh
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Python Basics with Jupyter Notebook
Presentation transcript:

Creating Embedded Formative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education

Outline Review of Variables Personalizing CBT –New object: InputBox Creating embedded assessment with variables –Providing feedback with MsgBox –Counting variable Working with conditional statements –Advanced MsgBox properties –Navigating

Review of Variables

What is a Variable? variable: Named location in program code for storing data. Analogous to the memory function on a calculator. A variable in VBA is like saying in Algebra: x = 5 OR x = “Dr. Steve” Review

Declare a Variable To use a variable, start by declaring it with a dim statement. –Dim variable_name As data_type Make up a name for a variable. Use underscore (_) for compound names. Variable types are either text (string) or a numerical type. Review long single Boolean string

Local vs. Public Variables Where a variable is declared affects how it functions. –public variable: A variable that is declared as public is “alive” and available to all subroutines throughout the project. Declare a public variable at the top of the form. –private variable: A variable that is declared within one subroutine is “alive” only as long as the subroutine is running. Declare a private variable within one subroutine. Review

Concatenation with Strings –Add additional strings to a string variable. Dim age As Integer, maxcount As Integer Dim sentence As string age = 5 maxcount = 100 sentence = “I am ” & age & “years old.” sentence = sentence & “I can count to ” & maxcount Review

Do Not Duplicate Names As you create names for procedures and variables, be careful not to: –Name 2 procedures by the same name. –Name 2 variables by the same name. –Name a procedure the same as a variable, or vice versa. Review

Personalizing CBT with an InputBox and a Variable

VBA allows teachers to personalize the application. Let’s write the following procedures: –Remember user name (stores name in a variable). In the process, let’s compare local vs. public variables. –Prompt a user to enter his/her name. New object: InputBox.

Elements We Need Sub Name() scripting goes here End Sub Dim userName As String –Place within procedure to create local. –Place on top of form to create public. userName = “Dr. Steve” 'Comments after quote. MsgBox ("Your user name is " & userName) –Must concatenate new text and a string variable.

New Object InputBox: Prompts user to enter something. Entered material must be stored in a variable. Syntax: Variable = InputBox(Prompt:=“text”, Title:=“title bar text”)

TRY IT 1.enterUserName() 2.printName() Enter User Name Print name using MsgBox

TRY IT 1.Have students enter name using a public variable (you already scripted this code; reuse this macro). 2.Create personalized student feedback. Give Personalized Positive Feedback Enter Name Using Public Variable (Use VBA already created.)

TRY IT enterUserName() [Reuse this code. Realize that if this PP was one continuously running application, we would not have to prompt user to enter name again. The variable would already contain in.] enterAge() enterBooksRead() printNameAgeBooks() [Use a MsgBox to print out personalized information.] Enter Name (reuse code) Enter AgeEnter Books Read Print Name, Age, Books in a Personalized Way

Creating Embedded Assessment with Variables

Importance of Embedded Assessment In CBT, we want to have: –Make learners interact vs. just passively read. –Rehearse small chunk of material already learned. In a live classroom, teachers don’t simply teach at students. We provide examples, ask questions, review important items, and provide opportunities to rehearse and apply material.

Providing Feedback with Standard PP Tools Pick the farm animal that gives us milk. Remember that graphics and even text boxes can have action settings applied. You could use buttons here in place of graphics.

Feedback Screen INCORRECT. Please try again. Try Again

Feedback Screen CORRECT. A cow provides milk. Good job! Continue

Providing Feedback with VBA With VBA, we can provide feedback by using MsgBoxes. If we create a standard message, we can simply call the same procedure at different times without having to do extra work.

Providing Feedback with VBA enterUserName() [You already created this code. Just use what you already made.] doingWell() doingPoorly() Enter User Name (reuse code) Correct Response Incorrect Response

Providing Feedback with VBA You can now call these procedures from another slide. (Start the show from the previous slide so the student’s name will be available.) b. c. a. This is an INCORRECT response to this item. This is the CORRECT response to this item. This is an INCORRECT response to this item.

Adding a Counting Variable You can add a counting variable to keep track of how many times a student has taken to locate the correct response. Dim tries As Integer tries = tries + 1

Adding a Counting Variable Declare a public variable to keep track of tries. Simply increment the counter in each procedure. Later, we can take some action depending on the number of tries taken. (Requires more code.) –Note: It’s a good practice to initialize variables. We’ll look at this shortly. b. c. a. INCORRECT response to this item. CORRECT response to this item. INCORRECT response to this item. Show Number of Tries to Teacher

Working with Conditional Statements

Conditional Statements Much of the power that VBA adds to PP is the capacity to make decisions based on student input. We can evaluate student input/responses and then make decisions and take actions.

Conditional Statements Syntax for a conditional statement: If condition Then coding Else coding End If

Conditional Statements If tries>2 Then MsgBox(“Statement”) Else MsgBox(“Statement”) End If If overLimit=false Then code to do something Else code to do something End If

TRY IT Reapply macros already created to this slide. displayProgress() –If tries is less than 3, then give positive feedback in a MsgBox. –If tries is anything else (meaning greater than 3), give a comment that the student needs improvement. b. c. a. INCORRECT response to this item. CORRECT response to this item. INCORRECT response to this item. Review Progress

If Statement with Advanced MsgBox You can customize the buttons displayed in a message box to help gather user input. (MsgBox now functions like a simple InputBox.) If you add an “IF…THEN” statement to evaluate this user input, you can then have more powerful decision-making at your disposal.

Making Decision with Message Boxes Displayed button options: –MsgBox(“question”, vbYesNo) –MsgBox(“question”, vbRetryCancel) Just as with an InputBox, let a variable equal the input. The variable will contain “yes” or “no” or “retry” or “cancel”.

Making Decision with Message Boxes Dim readyOrNot 'Does not need type: constant. readyOrNot = MsgBox(“Are you ready to try the assessment?”, vbYesNo) If readyOrNot = yes Then MsgBox(“Good. You are prepared.”) Else MsgBox(“Sorry you do not feel ready.”) End If

TRY IT finishedWithHomework() –Create a variable homeworkDone to hold user input from the constant from vbYesNo in a MsgBox. –Give feedback with MsgBox using If…Then. Answer a Question

Navigating Action settings allow you to navigate to a specified slide. With VBA and conditional statements (If…Then), you can control where a student navigates next. Syntax: ActivePresentation.SlideShowWindow.View. –GotoSlide (num) –Next –Previous

TRY IT Navigate to the next slide Navigate to the previous slide Navigate to a numbered slide

TRY IT Question 3: IncorrectCorrect Direct User based on answer

Assignments

Assignment 1.Using VBA, create a brief assessment in PP with the following parameters: –3 questions (items) –Each item can have 2 possible responses. a b Possible answer number 1. Possible answer number 2.

Assignment On the first slide, use an input box to enter the learner’s name in a public variable. When the user clicks a response: –Navigate to the next slide to view the next question. –Increment a public variable that keeps track of how many questions the learner answered correctly.

Assignment On the last slide, create a button that provides personalized input: –Use a message box to display information. –List user’s name. –Display number of corrections that the user got correct.

Next Week Working with object properties. More advanced work with variables. Looping.