MIS 216 Exam1 Review Spring 2007. What to expect Questions like those on the home works and on the quizzes Evaluate code Create code Multiple choice and.

Slides:



Advertisements
Similar presentations
Decision Structures - If / Else If / Else. Decisions Often we need to make decisions based on information that we receive. Often we need to make decisions.
Advertisements

Integrated Business Applications with Databases (D3) Jenny Pedler
Chapter 13 Control Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display Control Structures Conditional.
CSI 1306 PROGRAMMING IN VISUAL BASIC PART 2. Part 2  1. Strings  2. Translating Conditional Branch Instructions  3. Translation Set 2  4. Debugging.
5.04 Apply Decision Making Structures
Chapter 5 - VB.Net by Schneider
Selection Structures Relational and Logical Operators; If Statements.
CS 117 Spring 2002 Decision Making Hanly Chapter 3 Friedman-Koffman Chapter 4.
Visual C++ Programming: Concepts and Projects
ACSE th Conference The Iconic Programmer Stephen Chen.
CSI 101 Elements of Computing Spring 2009 Lecture # 14 – Classes and Objects Wednesday, April 15th, 2009 and Monday, April 20th, 2009.
Chapter 51 Select Case block A decision-making structure that simplifies choosing among several actions. Avoids complex nested If constructs. If blocks.
Manipulating Strings.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Java Programming Constructs 1 MIS 3023 Business Programming Concepts II The University of Tulsa Professor: Akhilesh Bajaj All slides in this presentation.
Tutorial 11 Using and Writing Visual Basic for Applications Code
1 Visual Basic for Applications (VBA) for Excel Prof. Yitzchak Rosenthal.
Chapter 5 – Decisions 5.1 Relational and Logical Operators 5.2 If Blocks 5.3 Select Case Blocks.
Representing Data: Constants and Variables CHAPTER THREE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
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.
110-G1 Motivation: Within a program, may have to perform the same computation over and over Many programs share the same computation (e.g. sorting) To.
Visual Basic CODE. Basics of Code Declaration Declaration Set aside a named place to put things Set aside a named place to put things Assignment Assignment.
Chapter 5 - VB 2005 by Schneider1 Chapter 5 – Decisions 5.1 Relational and Logical Operators 5.2 If Blocks.
CSCI 3327 Visual Basic Chapter 4: Control Statements in Visual Basic (Part 1B) UTPA – Fall 2011.
Input Textboxes Input Boxes Different than textboxes Good for small amount of input (form full of textboxes is not nice) X = Inputbox(“prompt message”,
Visual Basic.net Loops. Used to do multiple executions of the same block of code Do while loops Do until loops For next loops.
Introduction to Java Java Translation Program Structure
Chapter 4 Conditional Statements. A Programmer's Lament I really hate this damned machine; I wish that they would sell it It never does quite what I want.
# 1# 1 Using Procedures and Functions What is a procedure? What is a sub procedure (subroutine)? Built-in functions in your code What is a function? CS.
Lecture 2 Conditional Statement. chcslonline.org Conditional Statements in PHP Conditional Statements are used for decision making. Different actions.
Chapter 51 Logical Operators Used with Boolean expressions Not – makes a False expression True and vice versa And – will yield a True if and only if both.
Other Variable Types Dim lab as String makes a box that can store a label tag Dim ColHead As String ColHead = “function” ColHead function Dim lab as Boolean.
Pay Example (PFirst98) Please use speaker notes for additional information!
A Macro to Exchange the Values of Arbitrary Cells.
Created by Alia Al-Abdulkarim 2008 Visual Basic Vs. Java.
1 Microsoft® Visual Basic®.NET Language # 2. 2 Flow-Control Statements If … End If Select Case … End Select For… Next Do … Loop Exit.
# 1# 1 Nested If Statements in VBA What is a compound condition that we evaluate? What is a Nested If statement? How do we use ElseIf? CS 105 Spring 2010.
Error Trapping Exception Catching 1. Syntax & Compile-time  VB – Editor/Compiler Logic and Design  You Runtime  You Types of Errors: 2 When your program.
Variables in VB. What is a variable? ► A named memory location that stores a value.
DATA TYPES, VARIABLES AND CONSTANTS. LEARNING OBJECTIVES  Be able to identify and explain the difference between data and information  Be able to identify,
Variables  A piece of memory set aside to store data  When declared, the memory is given a name  by using the name, we can access the data that sits.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 11 So Many Paths … So Little Time.
Inside Class Methods Chapter 4. 4 What are variables? Variables store values within methods and may change value as the method processes data.
Making Interactive Programs with Visual Basic .NET
Chapter 4.  Variables – named memory location that stores a value.  Variables allows the use of meaningful names which makes the code easier to read.
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.
Chapter 6 Controlling Program Flow with Looping Structures.
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”
Chapter 4 - VB 2008 by Schneider1 Chapter 4 – Decisions 4.1 Relational and Logical Operators 4.2 If Blocks 4.3 Select Case Blocks.
Week 4 Relational and Logical Operators Dr. Jennifer Cunningham.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
Welcome to Computer Programming II! Computer Programming II Summer 2015.
Use TryParse to Validate User Input
Visual Basic Fundamental Concepts
Exam 2 Review.
Exam 3 Review.
Use TryParse to Validate User Input
Decision Making in Code Logical Tests & Truth Logical Expressions
Engineering Innovation Center
CSCI 3327 Visual Basic Chapter 7: Data Manipulation in Arrays
Chapter 10 Programming Fundamentals with JavaScript
Visual Basic..
Chapter (3) - Looping Questions.
Visual Basic – Decision Statements
Selection Statements.
Intro to Programming Concepts
The Data Element.
The Data Element.
Variables and Constants
CSCI 3328 Object Oriented Programming in C# Review: Exam I
Presentation transcript:

MIS 216 Exam1 Review Spring 2007

What to expect Questions like those on the home works and on the quizzes Evaluate code Create code Multiple choice and True False on these and terms and concepts Questions from Chapters 1-4 Questions will focus on important concepts and coding statements.

How about some specifics? What should you focus on? What are the coding statements we’ve worked on so far? How do each of these work? What are they used for? When would you use one vs. another? How can I manipulate string values?

Additional specifics How do those statements appear in Visual studio? What is the syntax for the statements? Where do values get stored in textboxes etc? Where are variables declared? How are they declared?

Variable Level Private frmNew Dim intAge as integer intAge=22 Sub btn1 Dim intAge as integer intAge = 176 End Sub Sub btn2 Dim intAge as integer intAge = 822 End Sub Sub btn3 messageBox.show (intAge) End Sub

If and Case Statements Dim sngPurchasePrice as single = If (sngPurchasePrice < 100) Then MessageBox.show ("Less Then 100") Else If (sngPurchasePrice < 500) Then MessageBox.show ("Less Then 500") Else If (sngPurchasePrice < 1000) Then MessageBox.show ("Less Then 1000") Else MessageBox.show ("Other Value") End If

More with If Statements Dim strAnswer1 as string = "YES" Dim strAnswer2 as string = "YES" If (strAnswer1 = "No") Then If (strAnswer2.Text = "No") MessageBox.show ("Basketball") Else MessageBox.show ("Hockey") End If Else If (strAnswer1 = "No") Then MessageBox.show ("Opera") Else MessageBox.show ("Philharmonic") End If

If/Case Statements How could I create a statement that would do the following? I have a system with 3 tax brackets. I need to determine who falls into which one and set the tax rate accordingly. The brackets and tax rates are $0-$5,000 (2%), $5,001 - $10,000 (4%), $10,001 + (6%). Assume that there is a variable (intAnnualIncome) that holds the data.

If/Case Statements How could I create a statement that would do the following? Manages the withdrawl from a bank. If the person withdraws less than they have in the bank, let them have the money. If they try to withdraw more than the have, block the access. Also, they cannot withdraw more than $250 at a time regardless of how much they have.

If/Case Statements How could I create a statement that would do the following? In order to take a 300 level course, a student must first take any two of three 200 level courses. Assume that the classes are 201, 205 and 210 and that the record of taking them or not are in blnClass201, blnClass205 and blnClass210.