Fast Food Store Group Boxes and Other User Controls

Size: px
Start display at page:

Download "Fast Food Store Group Boxes and Other User Controls"

Transcription

1 VISUAL BASIC Fast Food Store Group Boxes and Other User Controls Copyright 2014 Dan McElroy Sample Program Execution The customer receipt is updated each time another selection is made and the Enter button is clicked. More than one selection can be made, but the Enter button must be clicked for each selection. The receipt and all selections are cleared when the Clear button is clicked. 1

2 Label Font Size = 20 Bold 2

3 GroupBox Text=Sandwich GroupBox Text=Sandwich 3

4 GroupBox Text=Sandwich Radio Buttons Two more GroupBoxs with RadioButtons or CheckBoxes GroupBox Text=Sandwich Radio Buttons Two more GroupBoxs with RadioButtons or CheckBoxes Check Boxes 4

5 Buttons Label AutoSize=False BorderStyle = Fixed3D 5

6 Name Each Object These are the names that I chose. You can choose any names you wish as long as they are descriptive. frmfastfood lbltitle btnclear btnenter btnexit chkcdheese chkfries chkonionrings chktomato radnosandwich radhamburger radchickensandwich radfishsandwich radnodrink radcola radorange radrootbeer lblorderreceipt Sturctured Design Form_Load Event Clear Button Event Enter Button Event Exit Button Event Initialize Variables Clear Receipt Clear Selections Compute Selections Update Receipt Global Constants and Variables 6

7 Initialize Variables: set all variables to zero Sub Tasks Clear Receipt Set the label used for the receipt to an empty string Clear Selections For each group of RadioButtons, set the Checked property for the None button to True. This will set the Checked property all of the other radio buttons in the group to False For each CheckBox, set its Checked property to False Compute Selections Examine each customer selection (RadioButton or CheckBox), keep a count of the number of times an item from the group has been selected, and add the price of the item to the subtotal. Update Receipt Display the number of items and price for each group, compute and display the subtotal, tax and total The Code (so far) I have completed the code for the sandwiches, the cheese and tomatoes You need to complete the code for drinks and the extras, and any additional code for these items that would be included in the Enter and Clear buttons. 7

8 Class Level Constants ' Class level Constants Const TAX_RATE As Decimal = ' 8.75% tax rate Const PRICE_HAMBURGER As Decimal = 2.75 Const PRICE_FISH_SANDWICH As Decimal = 3.25 Const PRICE_CHICKEN_SANDWICH As Decimal = 2.49 Const PRICE_CHEESE As Decimal = 0.1 ' 10 cents Const PRICE_TOMATO As Decimal = 0.2 ' 20 cents ' --- You need to include the price of all items Class Level Variables ' Class Level Variables - Count of Each Item Dim countofsandwiches As Integer '--- You need to include the count of each group items ' Class Level Variables - Subtotal, Tax and Total Dim subtotalsandwiches As Decimal Dim subtotaldrinks As Decimal Dim subtotalextras As Decimal Dim subtotal As Decimal Dim tax As Decimal Dim total As Decimal 8

9 Form_Load Event The Form_Load event occurs when the form is first loaded. The Form_Load event needs to: Initialize the variables Clear the customer selections Clear the customer receipt Individual helper subroutines are provided to implement these tasks. Form_Load Event ' Form Load Event ' Initialize variables and clear the form Private Sub frmfastfood_load(... ) Handles MyBase.Load InitializeVariables() ClearTheCustomerSelections() ClearTheReceipt() End Sub 9

10 Enter_Button Event The Enter_Button event occurs when Enter button is clicked: Compute the counts and prices of the current selection Update the customer receipt Clear the customer selections Individual helper subroutines are provided to implement these tasks. Enter_Button Event Private Sub btnenter_click(... ) Handles btnenter.click ComputeCurrentSelection() UpdateCustomerReceipt() ClearTheCustomerSelections() End Sub 10

11 Clear_Button Event The Clear_Button event occurs when Clear button is clicked: The Clear_Button event needs to Initialize the variables Clear the customer selections Clear the customer receipt Individual helper subroutines are provided to implement these tasks. Clear_Button Event The Clear_Button event occurs when Clear button is clicked: The Clear_Button event needs to Initialize the variables Clear the customer selections Clear the customer receipt Individual helper subroutines are provided to implement these tasks. 11

12 Exit_Button Event The Exit_Button event occurs when Exit button is clicked: The Exit_Button event needs to Quit the program Private Sub btnexit_click(... ) Handles btnexitclick Me.Close() End Sub 12

Music and Videos. with Exception Handling

Music and Videos. with Exception Handling VISUAL BASIC LAB with Exception Handling Copyright 2015 Dan McElroy - Lab Assignment Develop a Visual Basic application program that is used to input the number of music songs and the number of videos

More information

Program Example 15 String Handling 2

Program Example 15 String Handling 2 Program Example 15 String Handling 2 Objectives Program Purpose Count the number of words, spaces and alphabetic characters in a sentence. Display the tally of letters Learning Goals To develop string

More information

Department of Computer and Mathematical Sciences. Lab 7: Selection

Department of Computer and Mathematical Sciences. Lab 7: Selection Unit 2: Visual Basic.NET, pages 1 of 11 Department of Computer and Mathematical Sciences CS 1408 Intro to Computer Science with Visual Basic.NET 7 Lab 7: Selection Objectives: The main objective of this

More information

1. Create your First VB.Net Program Hello World

1. Create your First VB.Net Program Hello World 1. Create your First VB.Net Program Hello World 1. Open Microsoft Visual Studio and start a new project by select File New Project. 2. Select Windows Forms Application and name it as HelloWorld. Copyright

More information

(conditional test) (action if true) It is common to place the above selection statement in an If block, as follows:

(conditional test) (action if true) It is common to place the above selection statement in an If block, as follows: Making Decisions O NE OF THE MOST IMPORTANT THINGS that computers can do is to make decisions based on a condition, and then take an action based on that decision. In this respect, computers react almost

More information

A Second Visual BASIC Application : Greetings

A Second Visual BASIC Application : Greetings The Greetings Program A Second Visual BASIC Application : Greetings The following instructions take you through the steps to create a simple application. A greeting is displayed in one of four different

More information

Creating an event driven computer program using C# Level 2 Notes for City & Guilds 7540 Unit 008 Written for Microsoft Visual C# 2005 Express

Creating an event driven computer program using C# Level 2 Notes for City & Guilds 7540 Unit 008 Written for Microsoft Visual C# 2005 Express Creating an event driven computer program using C# Level 2 Notes for City & Guilds 7540 Unit 008 Written for Microsoft Visual C# 2005 Express Version 1 Tench Computing Ltd Pines Glendale Road Burgess Hill

More information

First Visual Basic Lab Paycheck-V1.0

First Visual Basic Lab Paycheck-V1.0 VISUAL BASIC LAB ASSIGNMENT #1 First Visual Basic Lab Paycheck-V1.0 Copyright 2013 Dan McElroy Paycheck-V1.0 The purpose of this lab assignment is to enter a Visual Basic project into Visual Studio and

More information

Full file at

Full file at T U T O R I A L 3 Objectives In this tutorial, you will learn to: Set the text in the Form s title bar. Change the Form s background color. Place a Label control on the Form. Display text in a Label control.

More information

Dive Into Visual C# 2010 Express

Dive Into Visual C# 2010 Express Dive Into Visual C# 2010 Express 2 Seeing is believing. Proverb Form ever follows function. Louis Henri Sullivan Intelligence is the faculty of making artificial objects, especially tools to make tools.

More information

Full file at https://fratstock.eu Programming in Visual Basic 2010

Full file at https://fratstock.eu Programming in Visual Basic 2010 OBJECTIVES: Chapter 2 User Interface Design Upon completion of this chapter, your students will be able to 1. Use text boxes, masked text boxes, rich text boxes, group boxes, check boxes, radio buttons,

More information

CS708 Lecture Notes. Visual Basic.NET Object-Oriented Programming. Implementing Client/Server Architectures. Part (I of?) (Lecture Notes 5A)

CS708 Lecture Notes. Visual Basic.NET Object-Oriented Programming. Implementing Client/Server Architectures. Part (I of?) (Lecture Notes 5A) CS708 Lecture Notes Visual Basic.NET Object-Oriented Programming Implementing Client/Server Architectures Part (I of?) (Lecture Notes 5A) Professor: A. Rodriguez CHAPTER 1 IMPLEMENTING CLIENT/SERVER APPLICATIONS...

More information

NOTES: Variables & Constants (module 10)

NOTES: Variables & Constants (module 10) Computer Science 110 NAME: NOTES: Variables & Constants (module 10) Introduction to Variables A variable is like a container. Like any other container, its purpose is to temporarily hold or store something.

More information

Visual Basic/C# Programming (330)

Visual Basic/C# Programming (330) Page 1 of 16 Visual Basic/C# Programming (330) REGIONAL 2016 Program: Character Stats (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores and answer keys! Property

More information

Copyright 2014 Pearson Education, Inc. Chapter 7. Multiple Forms, Modules, and Menus. Copyright 2014 Pearson Education, Inc.

Copyright 2014 Pearson Education, Inc. Chapter 7. Multiple Forms, Modules, and Menus. Copyright 2014 Pearson Education, Inc. Chapter 7 Multiple Forms, Modules, and Menus Topics 7.1 Multiple Forms 7.2 Modules 7.3 Menus 7.4 Focus on Problem Solving: Building the High Adventure Travel Agency Price Quote Application Overview This

More information

Liam Chowdhury Event Driven Programming st STUDENT NUMBER: st YEAR:2013/14 GROUP:

Liam Chowdhury Event Driven Programming st STUDENT NUMBER: st YEAR:2013/14 GROUP: STUDENT NAME: Liam Chowdhury PROGRAMME: BSc Software Engineering STUDENT NUMBER: st20043420 YEAR:2013/14 GROUP: Module Number: BCO4014 Term: 2 Module Title: Event Driven Programming Tutor Responsible For

More information

Introductionto the Visual Basic Express 2008 IDE

Introductionto the Visual Basic Express 2008 IDE 2 Seeing is believing. Proverb Form ever follows function. Louis Henri Sullivan Intelligence is the faculty of making artificial objects, especially tools to make tools. Henri-Louis Bergson Introductionto

More information

Chapter 2. Creating Applications with Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

Chapter 2. Creating Applications with Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 2 Creating Applications with Visual Basic Addison Wesley is an imprint of 2011 Pearson Addison-Wesley. All rights reserved. Section 2.1 FOCUS ON PROBLEM SOLVING: BUILDING THE DIRECTIONS APPLICATION

More information

Customer details are included on a separate worksheet (Customer Look Up) Item details are included on a separate worksheet (Item Look Up)

Customer details are included on a separate worksheet (Customer Look Up) Item details are included on a separate worksheet (Item Look Up) Creating an Invoice System using Excel Purpose To create a basic invoicing system which can be used to create invoices which can then be printed to pdf to provide a permanent copy and to print out and

More information

Procedures (Subroutines) and Functions

Procedures (Subroutines) and Functions VISUAL BASIC Procedures (Subroutines) and Functions Copyright 2014 Dan McElroy Procedures and Functions Serve Two Purposes They allow a programmer to say: `this piece of code does a specific job which

More information

Chapter 2 Visual Basic Interface

Chapter 2 Visual Basic Interface Visual Basic Interface Slide 1 Windows GUI A GUI is a graphical user interface. The interface is what appears on the screen when an application is running. A GUI is event-driven, which means it executes

More information

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants These notes are available on the IMS1906 Web site http://www.sims.monash.edu.au Tutorial Sheet 4/Week 5 Please

More information

Microsoft Visual Basic 2015: Reloaded

Microsoft 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 information

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment.

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment. IT3101 -Rapid Application Development Second Year- First Semester Practical 01 Visual Basic.NET Environment. Main Area Menu bar Tool bar Run button Solution Explorer Toolbox Properties Window Q1) Creating

More information

Wyo VB Lecture Notes - Objects, Methods, & Properties

Wyo VB Lecture Notes - Objects, Methods, & Properties Wyo VB Lecture Notes - Objects, Methods, & Properties Objective #1: Use forms appropriately. A form is a basic building block of a Visual Basic project. Eventually, you'll be creating projects that consist

More information

Interface Design in C#

Interface Design in C# Interface Design in C# Project 1: Copy text from TextBox to Label as shown in the figure. TextBox and Label have the same property: display.text = nameentry.text; private void nameentry_textchanged display.text

More information

Chapter 12: Using Controls

Chapter 12: Using Controls Chapter 12: Using Controls Examining the IDE s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton A Label has been dragged onto Form1

More information

C HAPTER S EVEN F OCUS ON J AVAS CRIPT AND VBSCRIPT E XTENSIONS

C HAPTER S EVEN F OCUS ON J AVAS CRIPT AND VBSCRIPT E XTENSIONS C HAPTER S EVEN F OCUS ON J AVAS CRIPT AND VBSCRIPT E XTENSIONS Among the more creative and interesting ways to enhance the Web store is through advanced HTML tags. Today, among the most advanced of these

More information

Microsoft Visual Basic 2005: Reloaded

Microsoft 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 information

Data Types Literals, Variables & Constants

Data Types Literals, Variables & Constants C/C++ PROGRAMMING Data Types Literals, Variables & Constants Copyright 2013 Dan McElroy Under the Hood As a DRIVER of an automobile, you may not need to know everything that happens under the hood, although

More information

Starting Out With Visual Basic 2012, 6th Edition Page 1

Starting Out With Visual Basic 2012, 6th Edition Page 1 Starting Out With Visual Basic 2012, 6th Edition Page 1 Instant download and all chapters Solutions Manual Starting Out With Visual Basic 2012 6th Edition Gaddis, Irvine https://testbankdata.com/download/solutions-manual-starting-visual-basic-

More information

DEVELOPING OBJECT ORIENTED APPLICATIONS

DEVELOPING OBJECT ORIENTED APPLICATIONS DEVELOPING OBJECT ORIENTED APPLICATIONS By now, everybody should be comfortable using form controls, their properties, along with methods and events of the form class. In this unit, we discuss creating

More information

Rock-Paper-Scissors Multiple versions Nested If / Else If / Else Random Numbers

Rock-Paper-Scissors Multiple versions Nested If / Else If / Else Random Numbers VISUAL BASIC Rock-Paper-Scissors Multiple versions Nested If / Else If / Else Random Numbers Copyright 2015 Dan McElroy Topics Covered OProject Definition OMultiple versions of the program ODetermine the

More information

CASIO SE-S2000 Cash Register

CASIO SE-S2000 Cash Register WWW.HOTPOS.COM.AU TECHNICAL INFORMATION FOR THE QUICK SETUP OF CASIO CASH REGISTERS MAC Clear ECR CASIO SE-S2000 Cash Register Set mode switch to off Hold Down the [JOURNAL FEED] button while still holding

More information

Data Types Literals, Variables & Constants

Data Types Literals, Variables & Constants VISUAL BASIC Data Types Literals, Variables & Constants Copyright 2013 Dan McElroy Under the Hood As a DRIVER of an automobile, you may not need to know everything that happens under the hood, although

More information

How to Create Fields in Microsoft CRM Online

How to Create Fields in Microsoft CRM Online How to Create Fields in Microsoft CRM Online Go to https://portal.office.com and log in. Then switch from portal to CRM from the square menu. Once in CRM you need to go to the form you wish to add fields

More information

Our first program is a simple calculator, which will carry out the arithmetic operations of adding, subtracting, multiplying and dividing numbers.

Our first program is a simple calculator, which will carry out the arithmetic operations of adding, subtracting, multiplying and dividing numbers. Chapter 2: Calculations 29 2 Calculations Most computer programs need to carry out calculations, for example: with money, quantities of materials, or dates and times. In this chapter, we will examine how

More information

SKILL AREA 306: DEVELOP AND IMPLEMENT COMPUTER PROGRAMS

SKILL 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 information

CS 106A, Lecture 5 Booleans and Control Flow

CS 106A, Lecture 5 Booleans and Control Flow CS 106A, Lecture 5 Booleans and Control Flow suggested reading: Java Ch. 3.4-4.6 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5

More information

1 Dept: CE.NET Programming ( ) Prof. Akash N. Siddhpura. Working with Form: properties, methods and events

1 Dept: CE.NET Programming ( ) Prof. Akash N. Siddhpura. Working with Form: properties, methods and events Working with Form: properties, methods and events To create a New Window Forms Application, Select File New Project. It will open one dialog box which is shown in Fig 2.1. Fig 2.1 The New Project dialog

More information

Class Test 4. Question 1. Use notepad to create a console application that displays a face. See figure 1. Figure 1. Question2

Class Test 4. Question 1. Use notepad to create a console application that displays a face. See figure 1. Figure 1. Question2 Class Test 4 Marks will be deducted for the following: -2 If the program is named anything other than Question1,2 etc. -5 if the program does not contain your name & student number at the top. Question

More information

Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions

Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions 5-menus.htm; updated September 12, 2011 Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions Coverage: This chapter covers several important topics: (1) use of menus and context

More information

You will learn how to plan an OO application in this lesson. Steps three through six of the process are covered in Lessons B and C.

You will learn how to plan an OO application in this lesson. Steps three through six of the process are covered in Lessons B and C. Planning an Object-Oriented Application LESSON A LESSON A After studying Lesson A, you should be able to: Plan an object-oriented Windows application in Visual Basic 2010 Complete a TOE (Task, Object,

More information

Chapter 12. OOP: Creating Object- Oriented Programs. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.

Chapter 12. OOP: Creating Object- Oriented Programs. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 12 OOP: Creating Object- Oriented Programs McGraw-Hill Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. Objectives (1 of 2) Use object-oriented terminology correctly. Create

More information

Project 3 Restaurant or Store

Project 3 Restaurant or Store HNHS Computer Programming I / IPFW CS 11400 Bower - Page 1 Project 3 Restaurant or Store HNHS Computer Programming I / IPFW CS 11400 Bower - Page 2 Description You will create a program that calculates

More information

CS 2316 Homework 9b GT Thrift Shop Due: Wednesday, April 20 th, before 11:55 PM Out of 100 points. Premise

CS 2316 Homework 9b GT Thrift Shop Due: Wednesday, April 20 th, before 11:55 PM Out of 100 points. Premise CS 2316 Homework 9b GT Thrift Shop Due: Wednesday, April 20 th, before 11:55 PM Out of 100 points Files to submit: 1. HW9b.py 2. any image files (.gif ) used in database This is an INDIVIDUAL assignment!

More information

How-To: Build your Menu a condensed manual

How-To: Build your Menu a condensed manual How-To: Build your Menu a condensed manual MicroSale Version 9 [2016] For the full Menu Programming Guide, please visit www.microsale.net/help How-To: Build your Menu Thank you for purchasing a MicroSale

More information

Visual C# Program: Temperature Conversion Program

Visual C# Program: Temperature Conversion Program C h a p t e r 4B Addendum Visual C# Program: Temperature Conversion Program In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Writing a

More information

Controls. By the end of this chapter, student will be able to:

Controls. By the end of this chapter, student will be able to: Controls By the end of this chapter, student will be able to: Recognize the (Properties Window) Adjust the properties assigned to Controls Choose the appropriate Property Choose the proper value for the

More information

1. Getting Started Learning Outcomes Introduction Starting up Visual Basic for Applications Exercise 1...

1. Getting Started Learning Outcomes Introduction Starting up Visual Basic for Applications Exercise 1... 1. Getting Started... 6 Learning Outcomes... 6 Introduction... 6 Starting up Visual Basic for Applications... 7 Exercise 1... 8 2. Writing your first programme... 9 Learning Outcomes... 9 Introduction...

More information

How to Run Reports in Version 12

How to Run Reports in Version 12 How to Run Reports in Version 12 Reports are grouped by functional area Owner, Property, Tenant, Vendor, GL (Financial), Budget, etc. Each grouping has a report selection screen that includes a variety

More information

Module 1 - Applied Named Formulas: Invoice 2-1

Module 1 - Applied Named Formulas: Invoice 2-1 Module 1 - Applied Named Formulas: Invoice 2 TOPICS COVERED: 1) Setting up Named Ranges (0:00) 2) The Apply Names Function (3:15) 3) Examining Named Formulas Using the Name Manager (4:20) 4) Creating a

More information

Extra Fee for Magento 2

Extra Fee for Magento 2 Extra Fee for Magento 2 Magento 2 Extension User Guide Official extension page: Extra Fee for Magento 2 Page 1 Table of contents: 1. General settings.....3 2. Extra Fees Creation.....5 3. Condition Settings...11

More information

Design Of Human Computer Interfaces Assignment 1- Hello World. Compliance Report

Design Of Human Computer Interfaces Assignment 1- Hello World. Compliance Report Design Of Human Computer Interfaces Assignment 1- Hello World Compliance Report Prepared for: Skip Poehlman Prepared By: K C Course: SE 4D03 Date: September 30, 2008 Contents 1. Code Listing a. Module

More information

Function: function procedures and sub procedures share the same characteristics, with

Function: function procedures and sub procedures share the same characteristics, with Function: function procedures and sub procedures share the same characteristics, with one important difference- function procedures return a value (e.g., give a value back) to the caller, whereas sub procedures

More information

Reasoning Through Applications

Reasoning Through Applications Reasoning Through Applications Algorithm design, programming and problem solving usually require thinking and creativity, and they benefit from experience. But it is possible to approach these tasks to

More information

! Two questions when we design an OO system : ! Our Initial goal: learn to design and implement simple objects.

! Two questions when we design an OO system : ! Our Initial goal: learn to design and implement simple objects. Designing Interactive Classes CS234 Chapter 3 Designing with objects! Two questions when we design an OO system :! what are the objects?! what features should these objects have?! Our Initial goal: learn

More information

This homework has an opportunity for substantial extra credit, which is described at the end of this document.

This homework has an opportunity for substantial extra credit, which is described at the end of this document. CS 2316 Pair Homework Box Packer Due: Tuesday, June 17th, before 11:55 PM Out of 100 points Files to submit: 1. boxpacker.py For Help: - TA Helpdesk Schedule posted on class website. - Email TA's or use

More information

Lab 3 - Pizza. Purpose. Assignment

Lab 3 - Pizza. Purpose. Assignment Lab 3 - Pizza Purpose To assess your ability to apply the knowledge and skills developed in weeks 1 through 9. Emphasis will be placed on the following learning outcomes: 1. Create syntactically correct

More information

DATA WAREHOUSE BASICS

DATA WAREHOUSE BASICS DATA WAREHOUSE BASICS A Software Overview using the Retail Golf Model with version 9 NOTE: This course material was developed using Hummingbird version 9 with Windows XP. There will be navigational differences

More information

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples: VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the

More information

Long Distance Call. Long Distance Call 9/28/2015

Long Distance Call. Long Distance Call 9/28/2015 VISUAL BASIC PROGRAMMING PROJECT Long Distance Call Long Distance Call DESCRIPTION: Write a program that computes the cost of a long-distance call. The cost of the call is determined according to the following

More information

Full file at Chapter 2: Creating a User Interface

Full 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 information

Lab 5: Repetition Structures This lab accompanies Chapter 5 of Starting Out with Programming Logic & Design.

Lab 5: Repetition Structures This lab accompanies Chapter 5 of Starting Out with Programming Logic & Design. Starting Out with Programming Logic and Design 1 Lab 5: Repetition Structures This lab accompanies Chapter 5 of Starting Out with Programming Logic & Design. Name: Lab 5.1 Repetition Structures Pseudocode:

More information

Variable A variable is a value that can change during the execution of a program.

Variable A variable is a value that can change during the execution of a program. Declare and use variables and constants Variable A variable is a value that can change during the execution of a program. Constant A constant is a value that is set when the program initializes and does

More information

Finally, a receipt is printed on the screen and, after a pause, the process repeats for the next customer.

Finally, a receipt is printed on the screen and, after a pause, the process repeats for the next customer. 1 CS 215 Spring 2019 Project 1 (Version 1 Jan 24) Learning Objectives: - implementing an application using if/else and loops - introductory use of file input and output - validating user input and formatting

More information

CECS 189D EXAMINATION #1

CECS 189D EXAMINATION #1 CECS 189D EXAMINATION #1 SPRING 10 70 points MULTIPLE CHOICE 2 points for each correct answer Identify the choice that best answers the question on a Scantron 882 with a pencil #2. When you're on the campus

More information

NOTES: Procedures (module 15)

NOTES: Procedures (module 15) Computer Science 110 NAME: NOTES: Procedures (module 15) Introduction to Procedures When you use a top-down, structured program design, you take a problem, analyze it to determine what the outcome should

More information

CS Homework 11

CS Homework 11 CS 328 - Homework 11 p. 1 Deadline CS 328 - Homework 11 Problem 4 (presenting something operational from Problem 3) is due during lab on Friday, April 29; the remainder of this homework is due by 11:59

More information

Decision Structures. Start. Do I have a test in morning? Study for test. Watch TV tonight. Stop

Decision Structures. Start. Do I have a test in morning? Study for test. Watch TV tonight. Stop Decision Structures In the programs created thus far, Visual Basic reads and processes each of the procedure instructions in turn, one after the other. This is known as sequential processing or as the

More information

TO EARN ANY CREDIT, YOU MUST SHOW STEPS LEADING TO THE ANSWER

TO EARN ANY CREDIT, YOU MUST SHOW STEPS LEADING TO THE ANSWER Prof. Israel N. Nwaguru MATH 0306 CHAPTER 5 - REVIEW WORKOUT EACH PROBLEM NEATLY AND ORDERLY ON SEPARATE SHEET THEN CHOSE THE BEST ANSWER TO EARN ANY CREDIT, YOU MUST SHOW STEPS LEADING TO THE ANSWER SHORT

More information

Pandell Projects Tip Sheet

Pandell Projects Tip Sheet Pandell Technology Corporation #400 4954 Richard Road SW Calgary AB Canada T3E 6L1 403.271.0701 Tel 403.217.0730 Fax www.pandell.com Pandell Projects Tip Sheet Obligations Pandell Projects keeps track

More information

I101/B100 Problem Solving with Computers

I101/B100 Problem Solving with Computers I101/B100 Problem Solving with Computers By: Dr. Hossein Hakimzadeh Computer Science and Informatics IU South Bend 1 What is Visual Basic.Net Visual Basic.Net is the latest reincarnation of Basic language.

More information

Microsoft Visual Basic 2012: Reloaded

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 information

Honors Introduction to C (COP 3223H) Program 5 Pizza Shack Inventory and Finances

Honors Introduction to C (COP 3223H) Program 5 Pizza Shack Inventory and Finances Honors Introduction to C (COP 3223H) Program 5 Pizza Shack Inventory and Finances Objective To give students practice writing a program with structs, functions and arrays, all interleaved. The Problem:

More information

Program Organization and Comments

Program Organization and Comments C / C++ PROGRAMMING Program Organization and Comments Copyright 2013 Dan McElroy Programming Organization The layout of a program should be fairly straight forward and simple. Although it may just look

More information

Boolean Algebra Boolean Algebra

Boolean Algebra Boolean Algebra What is the result and type of the following expressions? Int x=2, y=15; float u=2.0, v=15.0; -x x+y x-y x*v y / x x/y y%x x%y u*v u/v v/u u%v x * u (x+y)*u u / (x-x) x++ u++ u = --x u = x -- u *= ++x

More information

Level 2 Creating an event driven computer program using C# ( )

Level 2 Creating an event driven computer program using C# ( ) Level 2 Creating an event driven computer program using C# (7540-008) Assignment guide for Candidates Assignment A www.cityandguilds.com October 2017 Version 1.0 About City & Guilds City & Guilds is the

More information

GUI Design and Event-Driven Programming

GUI Design and Event-Driven Programming Chapter 4 GUI Design and Event-Driven Programming The first three chapters of this book introduced you to the basics of designing applications with Visual Studio 2010 and the components of the Visual Basic

More information

Programming Logic Beginning

Programming Logic Beginning Programming Logic Beginning 152-101 Designing Programs and Applications Quick Links & Text References Program Design Pages 23 27 Algorithms Pages 25 26 Levels of Design Pages IOPs Pages User Interface

More information

Programming Logic - Beginning

Programming Logic - Beginning Instructor s Programming Logic - Beginning Designing Programs and Applications Programming Logic - Beginning 152-101 Designing Programs and Applications Quick Links & Text References Program Design Pages

More information

Graphical User Interface Canvas Frame Event structure Platform-free GUI operations Operator << Operator >> Operator = Operator ~ Operator + Operator

Graphical User Interface Canvas Frame Event structure Platform-free GUI operations Operator << Operator >> Operator = Operator ~ Operator + Operator Graphical User Interface Canvas Frame Event structure Platform-free GUI operations Operator > Operator = Operator ~ Operator + Operator - Operator [] Operator size Operator $ Operator? Operator!

More information

EXCEL ADVANCED Linda Muchow

EXCEL ADVANCED Linda Muchow EXCEL ADVANCED 2016 Alexandria Technical and Community College Customized Training Technology Specialist 1601 Jefferson Street, Alexandria, MN 56308 320-762-4539 Linda Muchow lindac@alextech.edu 1 Table

More information

Copyright 2014 Pearson Education, Inc. Chapter 3. Variables and Calculations. Copyright 2014 Pearson Education, Inc.

Copyright 2014 Pearson Education, Inc. Chapter 3. Variables and Calculations. Copyright 2014 Pearson Education, Inc. Chapter 3 Variables and Calculations Topics 3.1 Gathering Text Input 3.2 Variables and Data Types 3.3 Performing Calculations 3.4 Mixing Different Data Types 3.5 Formatting Numbers and Dates 3.6 Class-Level

More information

WinForms Lab (developed by Joe Hummel, modified by Shereen Khoja)

WinForms Lab (developed by Joe Hummel, modified by Shereen Khoja) WinForms Lab (developed by Joe Hummel, modified by Shereen Khoja) Today you'll work in Visual Studio.NET to create your first form-based, Windows GUI application. Your GUI app will display information

More information

Functions and Procedures. Functions. Built In Functions. Built In Functions in VB FIT 100 FIT 100

Functions and Procedures. Functions. Built In Functions. Built In Functions in VB FIT 100 FIT 100 Functions Functions and Procedures Similarities: Little mini-programs that are named and include a series of code statements (instructions) to be executed when called. Differences: Functions have a specific

More information

Introduction to Computer Science II (CSI 1101)

Introduction to Computer Science II (CSI 1101) Introduction to Computer Science II (CSI 1101) Professor: M. Turcotte February 2002, duration: 75 minutes Identification Student name: last name: Section: Student number: initials: Signature: Instructions

More information

IN COLLABORATION WITH IVTB. Diploma in Information Technology. Examinations for / Semester 2

IN COLLABORATION WITH IVTB. Diploma in Information Technology. Examinations for / Semester 2 IN COLLABORATION WITH IVTB Diploma in Information Technology DIP/03/Full Time Examinations for 2004 2005 / Semester 2 MODULE: VISUAL PROGRAMMING MODULE CODE: BISE070 Duration: 2 Hours + 10 Minutes (Reading

More information

After logging in successfully, a list of all the leads generated from your exclusive postcode or postcodes will be displayed.

After logging in successfully, a list of all the leads generated from your exclusive postcode or postcodes will be displayed. Leads After logging in successfully, a list of all the leads generated from your exclusive postcode or postcodes will be displayed. You are able to view the details of your leads, create follow up property

More information

Introduction to the Visual Basic Express 2005IDE

Introduction to the Visual Basic Express 2005IDE 2 Introduction to the Visual Basic Express 2005IDE OBJECTIVES In this chapter, you will learn The basics of the VisualStudio Integrated Development Environment (IDE) that assists you in writing, running

More information

Chapter 3. Variables and Calculations Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

Chapter 3. Variables and Calculations Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 3 Variables and Calculations Addison Wesley is an imprint of 2011 Pearson Addison-Wesley. All rights reserved. Section 3.1 GATHERING TEXT INPUT In this section, we use the TextBox control to gather

More information

Copyright 2014 Pearson Education, Inc. Chapter 6. Procedures and Functions. Copyright 2014 Pearson Education, Inc.

Copyright 2014 Pearson Education, Inc. Chapter 6. Procedures and Functions. Copyright 2014 Pearson Education, Inc. Chapter 6 Procedures and Functions Topics 6.1 Procedures 6.2 Passing Arguments to Procedures 6.3 Functions 6.4 More about Debugging: Stepping Into, Over, and Out of Procedures and Functions 6.5 Focus on

More information

Final Examination Semester 2 / Year 2010

Final Examination Semester 2 / Year 2010 Southern College Kolej Selatan 南方学院 Final Examination Semester 2 / Year 2010 COURSE : VISUAL BASIC.NET COURSE CODE : PROG2024 TIME : 2 1/2 HOURS DEPARTMENT : COMPUTER SCIENCE LECTURER : LIM PEI GEOK Student

More information

MARKING GUIDELINE NATIONAL CERTIFICATE (VOCATIONAL) NOVEMBER EXAMINATION. PRINCIPLES OF COMPUTER PROGRAMMING (First Paper) NQF LEVEL 3

MARKING GUIDELINE NATIONAL CERTIFICATE (VOCATIONAL) NOVEMBER EXAMINATION. PRINCIPLES OF COMPUTER PROGRAMMING (First Paper) NQF LEVEL 3 MARKING GUIDELINE NATIONAL CERTIFICATE (VOCATIONAL) NOVEMBER EXAMINATION (First Paper) NQF LEVEL 3 20 NOVEMBER 2014 This marking guideline consists of 7 pages. MARKING GUIDELINE -2- NC2370(E)(N20)V SECTION

More information

Programming. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies

Programming. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies 9 Programming Based on Events C# Programming: From Problem Analysis to Program Design 2nd Edition David McDonald, Ph.D. Director of Emerging Technologies Chapter Objectives Create applications that use

More information

Learning VB.Net. Tutorial 19 Classes and Inheritance

Learning VB.Net. Tutorial 19 Classes and Inheritance Learning VB.Net Tutorial 19 Classes and Inheritance Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you

More information

Sourcing - How to Create a Negotiation

Sourcing - How to Create a Negotiation Martin Baker Secure Source-To-Pay Sourcing - How to Create a Negotiation December 07 Contents To Create a Project... To Create a Negotiation... 5 Attachments... 7 Private File Archive... 7 Creating Lines,

More information

Programming Language 2 (PL2)

Programming 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 information

Visual BASIC Creating an Application. Choose File New Project from the menu

Visual 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

CST242 Windows Forms with C# Page 1

CST242 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 information