Microsoft Visual Basic 2015: Reloaded
|
|
- Kathlyn Brooks
- 6 years ago
- Views:
Transcription
1 Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Five More on the Selection Structure
2 Objectives After studying this chapter, you should be able to: Determine whether a solution requires a nested selection structure Include a nested selection structure in pseudocode and in a flowchart Code a nested selection structure Determine whether a solution requires a multiplealternative selection structure Include a multiple-alternative selection structure in pseudocode and in a flowchart 2
3 Objectives (cont d.) Prevent the division by zero run time error Code a multiple-alternative selection structure Include radio buttons in an interface Display a message in a message box Use a message box s return value Prevent the entry of invalid characters in a text box 3
4 Making More than One Decision Some solutions require selection structures with only one decision Figure 5-1: A problem that requires a selection structure 4
5 Making More than One Decision (cont d.) The Nested Selection Structure Some solutions require selection structures with more than one decision When either a selection structure s True path or its False path contains another selection structure, the inner selection structure is referred to as a nested selection structure because it is contained (nested) within the outer selection structure 5
6 Making More than One Decision (cont d.) Figure 5-2: A problem that requires a nested selection structure 6
7 Making More than One Decision (cont d.) 7 Figure 5-3: A problem that requires two nested selection structures
8 Making More than One Decision (cont d.) The Cookie Palace Application The application calculates the total amount a customer owes, including a discount rate The discount rate depends on two items: Number of baskets ordered Club membership 8
9 Making More than One Decision (cont d.) The Cookie Palace Application If the number of baskets ordered is at least 3 The discount rate is 20% Else if the number of baskets ordered is less than 3 If the customer is a member of the Cookie Club, the discount rate is 15% If the customer is not a member of the Cookie Club, the discount rate is 5% 9
10 Making More than One Decision (cont d.) Figure 5-4: Problem specification and a solution for the Cookie Palace application (continues) 10
11 Making More than One Decision (cont d.) Figure 5-4: Problem specification and a solution for the Cookie Palace application 11
12 Making More than One Decision (cont d.) Figure 5-5: Another correct solution for the Cookie Palace application (continues) 12
13 Making More than One Decision (cont d.) Figure 5-5: Another correct solution for the Cookie Palace application 13
14 Making More than One Decision (cont d.) Figure 5-6: Code and sample run for the flowcharts in Figures 5-4 and 5-5 (continues) 14
15 Making More than One Decision (cont d.) Figure 5-6: Code and sample run for the flowcharts in Figures 5-4 and
16 Multiple-Alternative Selection Structures The Multiple-Alternative Selection Structure A selection structure that can choose from several alternatives Also referred to as extended selection structures 16
17 Multiple-Alternative Selection Structures (cont'd.) Figure 5-7: Problem specification and a solution for the Anderson Roofing application 17
18 Multiple-Alternative Selection Structures (cont'd.) Figure 5-8: Code versions and sample run for the Anderson Roofing solution in Figure
19 The Select Case Statement The Select Case statement is used when a multiple-alternative selection structure has many paths from which to choose Figure 5-9 How to use the Select Case statement 19
20 The Select Case Statement (cont d.) Specifying a Range of Values in a Case Clause Figure 5-10: How to specify a range of values in a Case clause 20
21 Using Radio Buttons in an Interface You create a Radio Button using the RadioButton tool in the Toolbox Radio buttons allow you to limit the user to only one choice from a group of two or more related but mutually exclusive choices Each radio button is labeled so the user knows the choice it represents Enter the label using sentence capitalization in the radio button s Text property 21
22 Using Radio Buttons in an Interface (cont d.) Add a group box to a form using the GroupBox tool Placing each group of radio buttons in a separate group box allows the user to select one button from each group Selecting a radio button deselects any others in the group The recommended maximum number of radio buttons in a group is seven Windows applications normally have one of the radio buttons in each group already selected as a default radio button 22 Figure 5-11: Interface for In a Flash application
23 Using Radio Buttons in an Interface (cont d.) 23 Figure 5-12 Price chart, displaybutton_click procedure, and a sample run of the In a Flash application
24 The MessageBox.Show Method Using a message box is one way that an application can communicate with the user during run time The MessageBox.Show method displays a message box The message box contains text, one or more buttons, and an icon 24
25 The MessageBox.Show Method (cont'd.) Figure 5-13 How to use the MessageBox.Show method 25
26 The MessageBox.Show Method (cont'd.) 26 Figure 5-14 Message boxes created by the code in Figure 5-13
27 The MessageBox.Show Method (cont'd.) Figure 5-15 How to use the MessageBox.Show method s return value 27
28 Using the KeyPress Event A control s KeyPress event occurs each time the user presses a key while the control has the focus The KeyPress event procedure has parameters, which appear within the parentheses in the procedure header A parameter represents information that is passed to the procedure when the event occurs. Figure 5-16: Code template for the basketstextbox_keypress procedure 28
29 Using the KeyPress Event The character corresponding to the pressed key is sent to the event s e parameter To prevent a text box from accepting an inappropriate character, you first use the e parameter s KeyChar property to determine the pressed key You then use the e parameter s Handled property to cancel the pressed key if it is an inappropriate one Cancel the key by setting the Handled property to True, like this: e.handled = True 29
30 Using the KeyPress Event (cont d.) You refer to the Backspace key on your keyboard using Visual Basic s ControlChars.Back constant The KeyPress event automatically allows the use of the Delete key for editing The line continuation character is used to split a long instruction into two or more physical lines in the Code Editor window The line continuation character is an underscore that is immediately preceded by a space and appears at the end of a physical line of code in the Code Editor window 30
31 Using the KeyPress Event (cont d.) 31 Figure 5-17: How to use the KeyPress event to control the characters accepted by a text box
32 Programming Tutorial 1 Figure 5-18 Rules and TOE chart for the Rock, Paper, Scissors Game application 32
33 Programming Tutorial 1 Figure 5-19 MainForm for the Rock, Paper, Scissors Game application Figure 5-23 Sample run of the rockpicturebox_click procedure 33
34 Programming Tutorial 2 Figure 5-27: Options and MainForm Figure 5-28: TOE chart for the Bubbles Car Wash application 34
35 Programming Example Figure 5-34: Price list and TOE Chart TOE chart 35 Figure 5-35: MainForm and tab order
36 Summary You can nest a selection structure in either the True or False path of another selection structure The primary decision is always made by an outer selection structure. The secondary decision is always made by a nested selection structure You can code a multiple-alternative selection structure using either If Then Else statements or the Select Case statement In a flowchart, a diamond is used to represent the condition in a multiple-alternative selection structure The diamond has several flowlines leading out of the symbol, with each flowline representing a possible path 36
37 Summary (cont'd.) In a Select Case statement, the data type of the expressions in the Case clauses should match the data type of the statement s selectorexpression A Case clause in a Select Case statement can contain more than one expression The selectorexpression needs to match only one of the expressions for the instructions in that Case to be processed In a Case clause s expressionlist: Use the keyword To when you know both the upper and lower values of the range you want to specify Use the keyword Is when you know only one end of the range 37
38 Summary (cont'd.) Radio buttons allow you to limit the user to only one choice from a group of two or more related but mutually exclusive choices If you need to include two groups of radio buttons in an interface, at least one of the groups must be placed within a container, such as a group box, panel, or table layout panel It is customary to have one radio button in each group of radio buttons selected when the interface first appears The selected radio button is the default radio button 38
39 Summary (cont'd.) If a radio button is selected, its Checked property contains the Boolean value True; otherwise, it contains the Boolean value False The MessageBox.Show method allows an application to communicate with the user while the application is running The MessageBox.Show method displays a message box that contains text, one or more buttons, and an icon Use sentence capitalization for the text argument in the MessageBox.Show method, but book title capitalization for the caption argument 39
40 Summary (cont'd.) You can code a text box s KeyPress event procedure to prevent the text box from accepting an inappropriate character The character is stored in the e parameter s KeyChar property To cancel the character, you set the e parameter s Handled property to True 40
Microsoft Visual Basic 2012: Reloaded
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter Five More on the Selection Structure Objectives After studying this chapter, you should be able to: Determine whether a solution requires a nested
More informationMicrosoft Visual Basic 2005: Reloaded
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 4 Making Decisions in a Program Objectives After studying this chapter, you should be able to: Include the selection structure in pseudocode
More informationChapter Two Creating a User Interface
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Two Creating a User Interface Objectives After studying this chapter, you should be able to: Plan an application using a TOE chart Use a text
More informationMicrosoft Visual Basic 2015: Reloaded
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Seven More on the Repetition Structure Objectives After studying this chapter, you should be able to: Code a counter-controlled loop Nest repetition
More informationMicrosoft Visual Basic 2015: Reloaded
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Three Memory Locations and Calculations Objectives After studying this chapter, you should be able to: Declare variables and named constants
More informationChapter Ten String Manipulation and Menus
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Ten String Manipulation and Menus Objectives After studying this chapter, you should be able to: Determine the number of characters in a string
More informationChapter Nine Arrays. Sixth Edition
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Nine Arrays Objectives After studying this chapter, you should be able to: Declare and initialize one-dimensional and twodimensional arrays Store
More informationAn Introduction to Programming with C++ Sixth Edition. Chapter 8 More on the Repetition Structure
An Introduction to Programming with C++ Sixth Edition Chapter 8 More on the Repetition Structure Objectives Include a posttest loop in pseudocode Include a posttest loop in a flowchart Code a posttest
More informationAn Introduction to Programming with C++ Sixth Edition. Chapter 7 The Repetition Structure
An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure Objectives Differentiate between a pretest loop and a posttest loop Include a pretest loop in pseudocode Include
More informationChapter 4: Making Decisions
Chapter 4: Making Decisions Understanding Logic-Planning Tools and Pseudocode Decision Making A tool that helps programmers plan a program s logic by writing plain English statements Flowchart You write
More informationMicrosoft Visual Basic 2005: Reloaded
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 3 Variables, Constants, Methods, and Calculations Objectives After studying this chapter, you should be able to: Declare variables and named
More informationSKILL AREA 306: DEVELOP AND IMPLEMENT COMPUTER PROGRAMS
Add your company slogan SKILL AREA 306: DEVELOP AND IMPLEMENT COMPUTER PROGRAMS Computer Programming (YPG) LOGO 306.1 Review Selected Programming Environment 306.1.1 Explain the concept of reserve words,
More informationProgramming Logic and Design Sixth Edition
Objectives Programming Logic and Design Sixth Edition Chapter 4 Making Decisions In this chapter, you will learn about: Evaluating Boolean expressions to make comparisons The relational comparison operators
More informationCreating Web Applications Using ASP.NET 2.0
12 Creating Web Applications Using ASP.NET 2.0 12 Chapter CXXXX 39147 Page 1 07/14/06--JHR After studying Chapter 12, you should be able to: Define the terms used when talking about the Web Create a Web
More informationCourse Outline. Introduction to java
Course Outline 1. Introduction to OO programming 2. Language Basics Syntax and Semantics 3. Algorithms, stepwise refinements. 4. Quiz/Assignment ( 5. Repetitions (for loops) 6. Writing simple classes 7.
More informationB.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University
Unit 1 Programming Language and Overview of C 1. State whether the following statements are true or false. a. Every line in a C program should end with a semicolon. b. In C language lowercase letters are
More informationFull file at Chapter 2: Creating a User Interface
Chapter 2: Creating a User Interface TRUE/FALSE 1. Text boxes accept and display information automatically, so no special event is necessary for them to do their assigned task. T PTS: 1 REF: 84 2. A button
More informationIn this lab, you will learn more about selection statements. You will get familiar to
Objective: In this lab, you will learn more about selection statements. You will get familiar to nested if and switch statements. Nested if Statements: When you use if or if...else statement, you can write
More informationCST242 Windows Forms with C# Page 1
CST242 Windows Forms with C# Page 1 1 2 4 5 6 7 9 10 Windows Forms with C# CST242 Visual C# Windows Forms Applications A user interface that is designed for running Windows-based Desktop applications A
More informationProblem Solving FLOWCHART. by Noor Azida Binti Sahabudin Faculty of Computer Systems & Software Engineering
Problem Solving FLOWCHART by Noor Azida Binti Sahabudin Faculty of Computer Systems & Software Engineering azida@ump.edu.my OER Problem Solving by Noor Azida Binti Sahabudin work is under licensed Creative
More informationDecision Control Structure. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan
Decision Control Structure DCS COMSATS Institute of Information Technology Rab Nawaz Jadoon Assistant Professor COMSATS IIT, Abbottabad Pakistan Introduction to Computer Programming (ICP) Decision control
More informationMicrosoft Word 2007 Tutorial CIS*1000*DE
Microsoft Word 2007 Tutorial CIS*1000*DE Open Microsoft Word 2007 START PROGRAMS Microsoft Office 2007 OR Double click on the ICON on desktop Microsoft Word 2007 Saving your Document To save your document,
More informationOverview: Programming Concepts. Programming Concepts. Names, Values, And Variables
Chapter 18: Get With the Program: Fundamental Concepts Expressed in JavaScript Fluency with Information Technology Third Edition by Lawrence Snyder Overview: Programming Concepts Programming: Act of formulating
More informationOverview: Programming Concepts. Programming Concepts. Chapter 18: Get With the Program: Fundamental Concepts Expressed in JavaScript
Chapter 18: Get With the Program: Fundamental Concepts Expressed in JavaScript Fluency with Information Technology Third Edition by Lawrence Snyder Overview: Programming Concepts Programming: Act of formulating
More informationProgramming Language 2 (PL2)
Programming Language 2 (PL2) 337.1.1 - Explain rules for constructing various variable types of language 337.1.2 Identify the use of arithmetical and logical operators 337.1.3 Explain the rules of language
More informationProgramming Fundamentals - A Modular Structured Approach using C++ By: Kenneth Leroy Busbee
1 0 1 0 Foundation Topics 1 0 Chapter 1 - Introduction to Programming 1 1 Systems Development Life Cycle N/A N/A N/A N/A N/A N/A 1-8 12-13 1 2 Bloodshed Dev-C++ 5 Compiler/IDE N/A N/A N/A N/A N/A N/A N/A
More informationCIS 3260 Intro. to Programming with C#
Running Your First Program in Visual C# 2008 McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Run Visual Studio Start a New Project Select File/New/Project Visual C# and Windows must
More informationAn Introduction to Programming with C++ Sixth Edition. Chapter 2 Beginning the Problem-Solving Process
An Introduction to Programming with C++ Sixth Edition Chapter 2 Beginning the Problem-Solving Process Objectives Explain the problem-solving process used to create a computer program Analyze a problem
More informationSkill Area 306: Develop and Implement Computer Program
Add your company slogan Skill Area 306: Develop and Implement Computer Program Computer Programming (YPG) LOGO Skill Area 306.2: Produce Structured Program 306.2.1 Write Algorithm 306.2.2 Apply appropriate
More informationPseudo Code and Flow Charts. Chapter 1 Lesson 2
Pseudo Code and Flow Charts Chapter 1 Lesson 2 Pseudocode Using Pseudocode Statements and Flowchart Symbols English-like representation of the logical steps it takes to solve a problem Flowchart Pictorial
More informationLAB 5: SELECTION STATEMENTS
Statement Purpose: The purpose of this lab is to familiarize students with Conditional statements and explain how to control the sequence of statement execution, depending on the value of an expression
More informationITEC102 INFORMATION TECHNOLOGIES
ITEC102 INFORMATION TECHNOLOGIES LECTURE 5 ALGORITHMS AND FLOW CHARTS EASTERN MEDITERRANEAN UNIVERSITY SCHOOL OF COMPUTING AND TECHNOLOGY Aim of the course Aim of this course to have information about,
More informationChapter 1. Introduction to Programming and Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of
Chapter 1 Introduction to Programming and Visual Basic Addison Wesley is an imprint of 2011 Pearson Addison-Wesley. All rights reserved. Section 1.1 COMPUTER SYSTEMS: HARDWARE AND SOFTWARE Computer systems
More informationSince you can designate as many symbols as needed as baseline symbols it s possible to show multiple baselines with unique symbology.
In this lesson you will learn how to: Tutorials Lesson 17 - Work with a Baseline Set up the symbols and bars used to display a baseline using the Baseline Setup Wizard. Insert a baseline. Highlight, lock
More informationIntroduction to Programming
Introduction to Programming session 6 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Spring 2011 These slides are created using Deitel s slides Sharif University of Technology Outlines
More informationProgramming Logic and Design Sixth Edition
Objectives Programming Logic and Design Sixth Edition Chapter 6 Arrays In this chapter, you will learn about: Arrays and how they occupy computer memory Manipulating an array to replace nested decisions
More informationUsing Visual Basic Studio 2008
Using Visual Basic Studio 2008 Recall that object-oriented programming language is a programming language that allows the programmer to use objects to accomplish a program s goal. An object is anything
More informationChapter 2: Using Data
Chapter 2: Using Data TRUE/FALSE 1. A variable can hold more than one value at a time. F PTS: 1 REF: 52 2. The legal integer values are -2 31 through 2 31-1. These are the highest and lowest values that
More informationLECTURE 04 MAKING DECISIONS
PowerPoint Slides adapted from *Starting Out with C++: From Control Structures through Objects, 7/E* by *Tony Gaddis* Copyright 2012 Pearson Education Inc. COMPUTER PROGRAMMING LECTURE 04 MAKING DECISIONS
More informationThe sequence of steps to be performed in order to solve a problem by the computer is known as an algorithm.
CHAPTER 1&2 OBJECTIVES After completing this chapter, you will be able to: Understand the basics and Advantages of an algorithm. Analysis various algorithms. Understand a flowchart. Steps involved in designing
More informationLecture 5 Tao Wang 1
Lecture 5 Tao Wang 1 Objectives In this chapter, you will learn about: Selection criteria Relational operators Logical operators The if-else statement Nested if statements C++ for Engineers and Scientists,
More informationDarrell Bethea May 25, 2011
Darrell Bethea May 25, 2011 Yesterdays slides updated Midterm on tomorrow in SN014 Closed books, no notes, no computer Program 3 due Tuesday 2 3 A whirlwind tour of almost everything we have covered so
More informationIDENTIFY WAYS OF REPRESENTING ALGORITHMS.
IDENTIFY WAYS OF REPRESENTING ALGORITHMS. OBJECTIVES: Identify ways of representing algorithms: Content Representation of algorithms as Pseudocode or Flowcharts; use of flow chart symbols: input/output
More informationIT 374 C# and Applications/ IT695 C# Data Structures
IT 374 C# and Applications/ IT695 C# Data Structures Module 2.1: Introduction to C# App Programming Xianrong (Shawn) Zheng Spring 2017 1 Outline Introduction Creating a Simple App String Interpolation
More informationChapter 4: Making Decisions
Chapter 4: Making Decisions 4.1 Relational Operators Relational Operators Used to compare numbers to determine relative order Operators: > Greater than < Less than >= Greater than or equal to
More informationChecking Multiple Conditions
Checking Multiple Conditions Conditional code often relies on a value being between two other values Consider these conditions: Free shipping for orders over $25 10 items or less Children ages 3 to 11
More informationVisual BASIC Creating an Application. Choose File New Project from the menu
Creating an Application Choose File New Project from the menu Choose Windows Application Name the project Copyright Project Place a check in the Create directory for solution box Click Browse Choose and/or
More information\n is used in a string to indicate the newline character. An expression produces data. The simplest expression
Chapter 1 Summary Comments are indicated by a hash sign # (also known as the pound or number sign). Text to the right of the hash sign is ignored. (But, hash loses its special meaning if it is part of
More informationChapter 4: Making Decisions
Chapter 4: Making Decisions CSE 142 - Computer Programming I 1 4.1 Relational Operators Relational Operators Used to compare numbers to determine relative order Operators: > Greater than < Less than >=
More informationNine Essential Excel 2010 Skills
Nine Essential Excel 2010 Skills Detailed Description of My Video Resource I created this video resource with two target customers in mind: 1) People who use Excel on a regular basis and want to follow
More informationMATVEC: MATRIX-VECTOR COMPUTATION LANGUAGE REFERENCE MANUAL. John C. Murphy jcm2105 Programming Languages and Translators Professor Stephen Edwards
MATVEC: MATRIX-VECTOR COMPUTATION LANGUAGE REFERENCE MANUAL John C. Murphy jcm2105 Programming Languages and Translators Professor Stephen Edwards Language Reference Manual Introduction The purpose of
More information1. Managing Information in Table
1. Managing Information in Table Spreadsheets are great for making lists (such as phone lists, client lists). The researchers discovered that not only was list management the number one spreadsheet activity,
More informationboolean Expressions Relational and Equality Operators and if-then-else Conditional Control Statement
boolean Expressions Relational and Equality Operators and if-then-else Conditional Control Statement Go to poll.unc.edu Sign-in via this website then go to pollev.com/compunc VSCode: Open Project -> View
More informationChapter 1 Summary. Chapter 2 Summary. end of a string, in which case the string can span multiple lines.
Chapter 1 Summary Comments are indicated by a hash sign # (also known as the pound or number sign). Text to the right of the hash sign is ignored. (But, hash loses its special meaning if it is part of
More informationبسم اهلل الرمحن الرحيم
بسم اهلل الرمحن الرحيم Fundamentals of Programming C Session # 3 By: Saeed Haratian Spring 2016 Outlines Equality and Relational Operators A Simple C Program: Relations Keywords Algorithm Flow Chart Pseudo
More informationDesktop Command window
Chapter 1 Matlab Overview EGR1302 Desktop Command window Current Directory window Tb Tabs to toggle between Current Directory & Workspace Windows Command History window 1 Desktop Default appearance Command
More informationCHAPTER 2 PROBLEM SOLVING TECHNIQUES. Mr Mohd Hatta Bin Hj Mohamed Ali Computer Programming BFC2042
CHAPTER 2 PROBLEM SOLVING TECHNIQUES Mr Mohd Hatta Bin Hj Mohamed Ali Computer Programming BFC2042 Software Engineering vs Problem Solving Software Engineering - A branch of Computer Science & provides
More informationObject-Oriented Programming in Java
CSCI/CMPE 3326 Object-Oriented Programming in Java Loop Statements Dongchul Kim Department of Computer Science University of Texas Rio Grande Valley The Increment and Decrement Operators There are numerous
More informationDefinite Loops. Computer Science S-111 Harvard University David G. Sullivan, Ph.D. Using a Variable for Counting
Unit 2, Part 2 Definite Loops Computer Science S-111 Harvard University David G. Sullivan, Ph.D. Using a Variable for Counting Let's say that we're using a variable i to count the number of times that
More informationProgramming with Java
Programming with Java String & Making Decision Lecture 05 First stage Software Engineering Dep. Saman M. Omer 2017-2018 Objectives By the end of this lecture you should be able to : Understand another
More informationChapter 4 Introduction to Control Statements
Introduction to Control Statements Fundamentals of Java: AP Computer Science Essentials, 4th Edition 1 Objectives 2 How do you use the increment and decrement operators? What are the standard math methods?
More informationCS5000: Foundations of Programming. Mingon Kang, PhD Computer Science, Kennesaw State University
CS5000: Foundations of Programming Mingon Kang, PhD Computer Science, Kennesaw State University Generating random numbers Obtain a random double value between 0.0 and 1.0, excluding 1.0 Math.random() Random
More informationChapter 3. More Flow of Control. Copyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Chapter 3 More Flow of Control Overview 3.1 Using Boolean Expressions 3.2 Multiway Branches 3.3 More about C++ Loop Statements 3.4 Designing Loops Slide 3-3 Flow Of Control Flow of control refers to the
More informationRecommended GUI Design Standards
Recommended GUI Design Standards Page 1 Layout and Organization of Your User Interface Organize the user interface so that the information follows either vertically or horizontally, with the most important
More informationIntroduction to C Final Review Chapters 1-6 & 13
Introduction to C Final Review Chapters 1-6 & 13 Variables (Lecture Notes 2) Identifiers You must always define an identifier for a variable Declare and define variables before they are called in an expression
More informationFUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING UNIT III. 2 Marks PROBLEM SOLVING AND OFFICE AUTOMATION
FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING UNIT III 2 Marks PROBLEM SOLVING AND OFFICE AUTOMATION Planning the Computer Program Purpose Algorithm Flow Charts Pseudocode -Application Software Packages-
More informationVariables and Functions Chapter 3
Variables and Functions Chapter 3 3-1 Variables Named storage location in computer s memory Programs may need to store data when running o Stored in a variable Types of data that can be stored o Local
More informationBIL101E: Introduction to Computers and Information systems Lecture 8
BIL101E: Introduction to Computers and Information systems Lecture 8 8.1 Algorithms 8.2 Pseudocode 8.3 Control Structures 8.4 Decision Making: Equality and Relational Operators 8.5 The if Selection Structure
More informationUse Web Event Bubbling
Use Web Event Bubbling Contents Introduction... 1 Use event bubbling... 1 Test event bubbling... 9 Feedbacks... 11 Introduction Every element in a web page has a parent element. For example, a button s
More informationProblem Solving: Storyboards for User Interaction
Topic 6 1. The while loop 2. Problem solving: hand-tracing 3. The for loop 4. The do loop 5. Processing input 6. Problem solving: storyboards 7. Common loop algorithms 8. Nested loops 9. Problem solving:
More informationUNIVERSITY OF CALGARY Information Technologies NEWS DRUPAL 7 WEB CONTENT MANAGEMENT
UNIVERSITY OF CALGARY Information Technologies NEWS DRUPAL 7 WEB CONTENT MANAGEMENT Table of Contents Creating News Stories... 1 Displaying News Stories... 7 News Drupal 7 Web Content Management The News
More informationLecture 9. Assignment. Logical Operations. Logical Operations - Motivation 2/8/18
Assignment Lecture 9 Logical Operations Formatted Print Printf Increment and decrement Read through 3.9, 3.10 Read 4.1. 4.2, 4.3 Go through checkpoint exercise 4.1 Logical Operations - Motivation Logical
More informationQuick Access Toolbar. You click on it to see these options: New, Open, Save, Save As, Print, Prepare, Send, Publish and Close.
Opening Microsoft Word 2007 in the practical room UNIT-III 1 KNREDDY 1. Nyelvi beállítások az Office 2007-hez (Language settings for Office 2007 (not 2003)) English. 2. Double click on the Word 2007 icon
More informationComputers Programming Course 7. Iulian Năstac
Computers Programming Course 7 Iulian Năstac Recap from previous course Operators in C Programming languages typically support a set of operators, which differ in the calling of syntax and/or the argument
More informationSTUDENT OUTLINE. Lesson 8: Structured Programming, Control Structures, if-else Statements, Pseudocode
STUDENT OUTLINE Lesson 8: Structured Programming, Control Structures, if- Statements, Pseudocode INTRODUCTION: This lesson is the first of four covering the standard control structures of a high-level
More informationSetting Up a Paper in APA Style Using Microsoft Word 2007
Setting Up a Paper in APA Style Using Microsoft Word 007 Open Microsoft Word 007. By default Word opens a new blank document. It is easiest if you create all of these settings before you begin your paper.
More informationDecision Making in C
Decision Making in C Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed
More information4.1. Chapter 4: Simple Program Scheme. Simple Program Scheme. Relational Operators. So far our programs follow a simple scheme
Chapter 4: 4.1 Making Decisions Relational Operators Simple Program Scheme Simple Program Scheme So far our programs follow a simple scheme Gather input from the user Perform one or more calculations Display
More informationSMS 3515: Scientific Computing. Sem /2015
s s SMS 3515: Scientific Computing Department of Computational and Theoretical Sciences, Kulliyyah of Science, International Islamic University Malaysia. Sem 1 2014/2015 The if s that are conceptually
More informationControl Flow. COMS W1007 Introduction to Computer Science. Christopher Conway 3 June 2003
Control Flow COMS W1007 Introduction to Computer Science Christopher Conway 3 June 2003 Overflow from Last Time: Why Types? Assembly code is typeless. You can take any 32 bits in memory, say this is an
More informationLESSON A. The Splash Screen Application
The Splash Screen Application LESSON A LESSON A After studying Lesson A, you should be able to: Start and customize Visual Studio 2010 or Visual Basic 2010 Express Create a Visual Basic 2010 Windows application
More informationDesigning Reports. eivf Designing Reports Note Types 1
Designing Reports Designing Reports...1 Note Types...3 Notes...3 Shorthands...3 Quick Note...3 Click N Build...3 Reports (Data Plates )...3 Most commonly use of the Note Types...4 Notes...5 To create a
More informationMicrosoft Visual Basic 2005: Reloaded
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 1 An Introduction to Visual Basic 2005 Objectives After studying this chapter, you should be able to: Explain the history of programming languages
More informationLesson 04. Control Structures I : Decision Making. MIT 31043, VISUAL PROGRAMMING By: S. Sabraz Nawaz
Lesson 04 Control Structures I : Decision Making MIT 31043, VISUAL PROGRAMMING Senior Lecturer in MIT Department of MIT Faculty of Management and Commerce South Eastern University of Sri Lanka Decision
More informationLesson 3: Basic Programming Concepts
3 ICT Gaming Essentials Lesson 3: Basic Programming Concepts LESSON SKILLS After completing this lesson, you will be able to: Explain the types and uses of variables and operators in game programming.
More informationOverview Describe the structure of a Windows Forms application Introduce deployment over networks
Windows Forms Overview Describe the structure of a Windows Forms application application entry point forms components and controls Introduce deployment over networks 2 Windows Forms Windows Forms are classes
More informationFlow of Control Branching 2. Cheng, Wei COMP May 19, Title
Flow of Control Branching 2 Cheng, Wei COMP110-001 May 19, 2014 Title Review of Previous Lecture If else Q1: Write a small program that Reads an integer from user Prints Even if the integer is even Otherwise,
More informationCommon Loop Algorithms 9/21/16 42
Common Loop Algorithms 9/21/16 42 Common Loop Algorithms 1. Sum and Average Value 2. Coun4ng Matches 3. Promp4ng un4l a Match Is Found 4. Maximum and Minimum 5. Comparing Adjacent Values 9/21/16 43 Sum
More informationIntroduction to Decision Structures. Boolean & If Statements. Different Types of Decisions. Boolean Logic. Relational Operators
Boolean & If Statements Introduction to Decision Structures Chapter 4 Fall 2015, CSUS Chapter 4.1 Introduction to Decision Structures Different Types of Decisions A decision structure allows a program
More informationBasic Operations jgrasp debugger Writing Programs & Checkstyle
Basic Operations jgrasp debugger Writing Programs & Checkstyle Suppose you wanted to write a computer game to play "Rock, Paper, Scissors". How many combinations are there? Is there a tricky way to represent
More informationSubquery: There are basically three types of subqueries are:
Subquery: It is also known as Nested query. Sub queries are queries nested inside other queries, marked off with parentheses, and sometimes referred to as "inner" queries within "outer" queries. Subquery
More informationTest #2 October 8, 2015
CPSC 1040 Name: Test #2 October 8, 2015 Closed notes, closed laptop, calculators OK. Please use a pencil. 100 points, 5 point bonus. Maximum score 105. Weight of each section in parentheses. If you need
More informationChapter 4: Making Decisions. Copyright 2012 Pearson Education, Inc. Sunday, September 7, 14
Chapter 4: Making Decisions 4.1 Relational Operators Relational Operators Used to compare numbers to determine relative order Operators: > Greater than < Less than >= Greater than or equal to
More informationMethod & Tools for Program Analysis & Design
Method & Tools for Program Analysis & Design TMB208 Pemrograman Teknik Kredit: 3 (2-3) 1 Programming Logic and Design, Introductory, Fourth Edition 2 1 Programming Methods Based on structures of programming
More informationRelius Documents ASP Checklist Entry , select option 2
Relius Documents ASP Checklist Entry 1 800 326 7235, select option 2 Table of Contents Overview...3 Question and Answer...4 View Commentary & View Exclusion Logic...5 Tree View...7 Toolbar...8 Checklist
More informationc) Comments do not cause any machine language object code to be generated. d) Lengthy comments can cause poor execution-time performance.
2.1 Introduction (No questions.) 2.2 A Simple Program: Printing a Line of Text 2.1 Which of the following must every C program have? (a) main (b) #include (c) /* (d) 2.2 Every statement in C
More information9691 COMPUTING. 9691/22 Paper 2 (Written Paper), maximum raw mark 75
CAMBRIDGE INTERNATIONAL EXAMINATIONS Cambridge International Advanced Subsidiary and Advanced Level MARK SCHEME for the May/June 2015 series 9691 COMPUTING 9691/22 Paper 2 (Written Paper), maximum raw
More information1. Beginning (Important)
Appointway Wordpress" Documentation by InkThemes Get Your Site Ready in Just 1 Click Thank you for purchasing our theme. If you have any questions that are beyond the scope of this help file, please feel
More informationComputational Physics - Fortran February 1997
Fortran 90 Decision Structures IF commands 3 main possibilities IF (logical expression) IF (logical expression) THEN IF (logical expression) THEN IF (logical expression) THEN expression TRUE expression
More informationA Quick Introduction to Emacs. Jim Diamond CAR 409 Jodrey School of Computer Science Acadia University
A Quick Introduction to Emacs Jim Diamond CAR 409 Jodrey School of Computer Science Acadia University 1 Overview 2 Availability History Basic Concepts Psychoanalysis Built-In Help My Video Tutorial Keyboard
More information