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

Size: px
Start display at page:

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

Transcription

1 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 rate schedule: a. Any call started between 8:00 am and 6:00 pm, Monday through Friday, is billed at a rate of $0.40 per minute. b. Any call starting before 8:00 am or after 6:00 pm, Monday through Friday, is charged at a rate of $0.25 per minute. c. Any call started on a Saturday or Sunday is charged at a rate of $0.15 per minute. The input will consist of the day of the week, the time the call started, and the length of the call in minutes. The output will be the cost of the call. The time is to be input in 24-hour notation, so the time 1:30 pm is input as 13:30 The number of minutes will be input as a value of type Integer. (You can assume that the user rounds the input to a whole number of minutes.) 1

2 Analyze the Problem O Break it up into smaller pieces O Identify the Inputs and Outputs O Determine the Processing and any additional variables O See if anything special needs to be done with the inputs or outputs DESCRIPTION: Identify the Inputs and Outputs Write a program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule: a. Any call started between 8:00 am and 6:00 pm, Monday through Friday, is billed at a rate of $0.40 per minute. b. Any call starting before 8:00 am or after 6:00 pm, Monday through Friday, is charged at a rate of $0.25 per minute. c. Any call started on a Saturday or Sunday is charged at a rate of $0.15 per minute. The input will consist of the day of the week, the time the call started, and the length of the call in minutes. The output will be the cost of the call. INPUT PROCESSING OUTPUT DayOfWeek TimeStarted LengthOfCall CostOfCall 2

3 Determine the Processing DESCRIPTION: Write a program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule: a. Any call started between 8:00 am and 6:00 pm, Monday through Friday, is billed at a rate of $0.40 per minute. b. Any call starting before 8:00 am or after 6:00 pm, Monday through Friday, is charged at a rate of $0.25 per minute. c. Any call started on a Saturday or Sunday is charged at a rate of $0.15 per minute. INPUT PROCESSING OUTPUT DayOfWeek TimeStarted LengthOfCall If DayOfWeek = Mo through Fr If time >= 800 and time <= 1800 Then rate = 0.40 else if time < 800 or time > 1800 rate = 0.25 Else If DayOfWeek = Sa or DayOfWeek = Su rate = 0.15 CostOfCall = rate * LengthOfCall CostOfCall Get The Inputs The inputs for this program are just a little complicated: O DayOfWeek is a collection of RadioButtons. Only one RadioButtion can be active at a time. O TimeStarted is input like 7:35 an integer for the hour, a colon character and an integer for minutes O LengthOfCall in minutes. This is a simple one. You input the value using an Integer. 3

4 RadioButtons 9/28/2015 Sample Program Design Label used for the program's output. Set the AutoSize property to False Name Each Control (You can use different names, but the names you choose must be consistent the entire program) radsu radmo radtu radwe radth radfr radsa txtcallstart txtlengthofcall btncompute lblcostofcall 4

5 Create the Button's Event Handler Display the Design view. Double-click the 'Compute' button to create the code for the Compute button Event Handler. Define Constants for Billing Rates Use constants to define the billing rates. Place the constants at the top of the program. Since the billing rates have digits past the decimal, use either the Double or Decimal data type. 5

6 Define Variables Used in the Program Since the hour and minute are separated by a colon character in the user's input (example 17:35 is entered for 5:35pm), the variables for hour and minute will be defined a little later. Separate the Hour and Minute The start time is entered by the user into the txtcallstart TextBox in 24-hour format. For example, 5:35pm is entered as 17:35. The TextBox contains a collection of characters. It does not contain numeric values. The program needs to find the colon character and set the hours to the characters before the colon, and the minutes to the characters after the colon. These two character String values can then be converted into Integer values for use by the program. 6

7 Define Additional Variables Define some additional variables that will be used for parsing (separating parts of a string) the Start Time string. Place these variables after the variables that have already been defined. Find the Position of the Colon ":" The String library in Visual Basic has several Methods (functions or subroutines) that can be used to manipulate strings. The InStr method is used to find the position of one string within another string. For Example, if the contents of txtcallstart.text is "17:43" Dim ColonPosition As Integer ColonPosition = InStr(txtCallStart.Text, ":") The variable ColonPosition would be set to a 3 after InStr executes. 17:43 7

8 The Mid String Method The Mid String method is used to extract one string from the middle of another string. There are two ways of calling the Mid string method: 1) With two arguments The original string is the first argument and the starting position is the second argument. Mid returns all of the characters from the start position to the end of the string. 2) With three arguments The original string is the first argument the starting position is the second argument, and the number of characters to be returned is the third argument. The Mid String Method The Mid String method is used to extract one string from the middle of another string. There are two ways of calling the Mid string method: 1) With two arguments The original string is the first argument and the starting position is the second argument. Mid returns all characters from the start position to the end of the string. 2) With three arguments The original string is the first argument the starting position is the second argument, and the number of characters to be returned is the third argument. NewString = Mid(OriginalString, StartPos, CharCount) Optional 8

9 Get the Hour value The InStr method finds the position of the colon ":" and then Mid is used to get all of the characters up to but not including the ":" For Example, if the contents of txtcallstart.text is "17:43" Dim ColonPosition As Integer Dim HourString As String Dim Hour As Integer ColonPosition = InStr(txtCallStart.Text, ":") HourString = Mid(txtCallStart.Text, 1, ColonPosition - 1) Hour = CInt(HourString) Use -1 for up to but not Start Position including the colon 17:43 Get the Minute Value The Mid is used to get all of the characters after the colon ":" until the end of the string. For Example, if the contents of txtcallstart.text is "17:43" Dim ColonPosition As Integer Dim HourString As String Dim Hour As Integer Dim MinuteString As String Dim Minute As Integer ColonPosition = InStr(txtCallStart.Text, ":") HourString = Mid(txtCallStart.Text, 1, ColonPosition - 1) Hour = CInt(HourString) MinuteString = Mid(txtCallStart.Text, ColonPosition + 1) Minute = Cint(MinuteString) Use +1 to start after the colon. With only 2 parameters, Mid returns the rest of the string. 17:43 9

10 Define Out of Range Exception The InStr, Mid and Cint methods have built-in detection of when they are not able to process their input data. In these cases, they will throw an exception within a Try block that can detected by the Catch block. An out of range value, such as the 57 th hour in a day (57:32) will not be caught because the value 57 is a legal integer even though it is out of range for the number of hours in a day. The program can use an If statement to detect out of range values and then use a Throw statement to exit out of the Try block and into the Catch block. The Exception must first be defined. Dim IllegalTime As Exception = New Exception("Illegal Input Value") If Hour < 0 Or Hour > 23 Then Throw IllegalTime End If The Program So Far (Includes an Exception for out of range Hour or Minute) 10

11 Input the Length Of Call Determine the Billing Rate These are fairly straight forward. Make sure that you use the names of the RadioButtons the way they were defined when the form was being designed. Compute and Display the Bill These are fairly straight forward. Make sure that you use the names of the RadioButtons the way they were defined when the form was being designed. 11

12 The Entire Program 1/2 The Entire Program 2/2 12

13 13

BUP2 5/2 12/4/07 12:49 AM Page 1. Introduction

BUP2 5/2 12/4/07 12:49 AM Page 1. Introduction BUP2 5/2 12/4/07 12:49 AM Page 1 Introduction This booklet will give you easy to follow instructions to allow you to set your BUP2 Programmer to the Weekday/Weekend, (same times Monday - Friday, different

More information

The UP and DOWN buttons will toggle or scroll through the options in each section.

The UP and DOWN buttons will toggle or scroll through the options in each section. TECHNICAL BULLETIN: MWR-WE10, MWR-WE10N, MWR-WE11N Page 1 of 10 Throughout the scheduling process, the LEFT and RIGHT buttons will move forward and backward through each section of settings The UP and

More information

Programming Assignment #2

Programming Assignment #2 Programming Assignment #2 Due: 11:59pm, Wednesday, Feb. 13th Objective: This assignment will provide further practice with classes and objects, and deepen the understanding of basic OO programming. Task:

More information

Armstrong State University Engineering Studies MATLAB Marina Switch-Case Statements Primer

Armstrong State University Engineering Studies MATLAB Marina Switch-Case Statements Primer Armstrong State University Engineering Studies MATLAB Marina Switch-Case Statements Primer Prerequisites The Switch-Case Statements Primer assumes knowledge of the MATLAB IDE, MATLAB help, arithmetic operations,

More information

Agenda: Discussion Week 7. May 11, 2009

Agenda: Discussion Week 7. May 11, 2009 Agenda: Discussion Week 7 Method signatures Static vs. instance compareto Exceptions Interfaces 2 D arrays Recursion varargs enum Suggestions? May 11, 2009 Method signatures [protection] [static] [return

More information

Title. Syntax. stata.com. datetime business calendars creation Business calendars creation

Title. Syntax. stata.com. datetime business calendars creation Business calendars creation Title statacom datetime business calendars creation Business calendars creation Syntax Description Remarks and examples Also see Syntax Business calendar calname and corresponding display format %tbcalname

More information

Other conditional and loop constructs. Fundamentals of Computer Science Keith Vertanen

Other conditional and loop constructs. Fundamentals of Computer Science Keith Vertanen Other conditional and loop constructs Fundamentals of Computer Science Keith Vertanen Overview Current loop constructs: for, while, do-while New loop constructs Get out of loop early: break Skip rest of

More information

Assessment - Unit 3 lessons 16-21

Assessment - Unit 3 lessons 16-21 Name(s) Period Date Assessment - Unit 3 lessons 16-21 1. Which of the following statements about strings in JavaScript is FALSE? a. Strings consist of a sequence of concatenated ASCII characters. b. Strings

More information

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

Programming Language. Control Structures: Selection (switch) Eng. Anis Nazer First Semester

Programming Language. Control Structures: Selection (switch) Eng. Anis Nazer First Semester Programming Language Control Structures: Selection (switch) Eng. Anis Nazer First Semester 2018-2019 Multiple selection choose one of two things if/else choose one from many things multiple selection using

More information

DECISION CONTROL AND LOOPING STATEMENTS

DECISION CONTROL AND LOOPING STATEMENTS DECISION CONTROL AND LOOPING STATEMENTS DECISION CONTROL STATEMENTS Decision control statements are used to alter the flow of a sequence of instructions. These statements help to jump from one part of

More information

Manager Timekeeping Tasks

Manager Timekeeping Tasks The Exceptions Widget Summary View This view provides an at-a-glance view of timecard exceptions for employees with hourly timecards. You can access this view by selecting Exceptions in the GoTo menu,

More information

Service & Support. How do you create a weekly timer with WinCC flexible? WinCC flexible 2008 SP2. FAQ October Answers for industry.

Service & Support. How do you create a weekly timer with WinCC flexible? WinCC flexible 2008 SP2. FAQ October Answers for industry. Cover sheet www.infoplc.net How do you create a weekly timer with WinCC flexible? WinCC flexible 2008 SP2 FAQ October 2011 Service & Support Answers for industry. Question This entry originates from the

More information

Math 202 Test Problem Solving, Sets, and Whole Numbers 19 September, 2008

Math 202 Test Problem Solving, Sets, and Whole Numbers 19 September, 2008 Math 202 Test Problem Solving, Sets, and Whole Numbers 19 September, 2008 Ten questions, each worth the same amount. Complete six of your choice. I will only grade the first six I see. Make sure your name

More information

Instruction Manual Digital socket box timer

Instruction Manual Digital socket box timer Instruction Manual Digital socket box timer Grässlin UK Vale Rise Tonbridge/Kent TN9 TB Tel. (0 ) 98 88 Fax (0 ) www.tfc-group.co.uk OK page Safety precautions, short description, wiring diagram... Installation...

More information

1. Classify each number as one or more of the following: natural number, integer, rational number; or irrational number. ,,,,,

1. Classify each number as one or more of the following: natural number, integer, rational number; or irrational number. ,,,,, 1. Classify each number as one or more of the following: natural number, integer, rational number; or irrational number.,,,,, What are the natural numbers in this list? (Use commas to separate answers.

More information

2015 ICPC. Northeast North America Preliminary

2015 ICPC. Northeast North America Preliminary 2015 ICPC Northeast North America Preliminary sponsored by the Clarkson Student Chapter of the ACM Saturday, October 17, 2015 11:00 am 5:00 pm Applied CS Labs, Clarkson University Science Center 334-336

More information

Westpac phone banking

Westpac phone banking Westpac phone banking Fast, reliable, convenient banking Terms, conditions, fees and charges apply to Westpac products and services. See the Transaction and Service Fees brochure available from your local

More information

BUT2 7day 11/4/07 11:07 PM Page 1. Introduction

BUT2 7day 11/4/07 11:07 PM Page 1. Introduction BUT2 7day 11/4/07 11:07 PM Page 1 Introduction This booklet will give you easy to follow instructions to allow you to set your BUT2 Timeswitch to the 7 Day, (different times every day) program. Contents

More information

Registration Guide to the Customer Portal

Registration Guide to the Customer Portal Registration Guide to the Customer Portal Masterpiece Clients Before registering on the Customer Portal, you will need your current 7, 8, or 10 digit policy number, your 15 digit billing account number

More information

UNIT 5B Binary Search

UNIT 5B Binary Search 205/09/30 UNIT 5B Binary Search Course Announcements Written exam next week (Wed. Oct 7 ) Practice exam available on the Resources page Exam reviews: Sunday afternoon; watch Piazza for times and places

More information

Task 1: Print a series of random integers between 0 and 99 until the value 77 is printed. Use the Random class to generate random numbers.

Task 1: Print a series of random integers between 0 and 99 until the value 77 is printed. Use the Random class to generate random numbers. Task 1: Print a series of random integers between 0 and 99 until the value 77 is printed. Use the Random class to generate random numbers. Task 2: Print a series of random integers between 50 and 99 until

More information

Phone banking Fast, reliable and convenient service by phone.

Phone banking Fast, reliable and convenient service by phone. Phone banking. Contents Get to the bank when it suits you 6 Getting started 6 Setting up accounts 7 What does it cost? 7 Time saving options 7 Fast balances 7 Fast codes 7 Fax information 8 Bill payments

More information

Operating Instructions. Radio timer thermostat display. Table of contents

Operating Instructions. Radio timer thermostat display. Table of contents Operating Instructions Table of contents 1. On these instructions... 2 2. How the radio timer thermostat display functions... 2 3. Normal view in the display... 3 3.1. Basic operation of the radio timer

More information

Return equipment quickly and easily

Return equipment quickly and easily Return equipment quickly and easily Enhancements to AT&T Collaborate April 207 207 AT&T Intellectual Property. All rights reserved. AT&T, Globe logo, Mobilizing Your World and DIRECTV are registered trademarks

More information

The Year argument can be one to four digits between 1 and Month is a number representing the month of the year between 1 and 12.

The Year argument can be one to four digits between 1 and Month is a number representing the month of the year between 1 and 12. The table below lists all of the Excel -style date and time functions provided by the WinCalcManager control, along with a description and example of each function. FUNCTION DESCRIPTION REMARKS EXAMPLE

More information

Cisdem AppCrypt Tutorial

Cisdem AppCrypt Tutorial Cisdem AppCrypt Tutorial 1 Table of Contents I. About Cisdem AppCrypt... 3 II. Activating this Application... 4 III. Application Operating... 5 I. Get Started... 5 II. Add & Remove Applications... 6 III.

More information

Review: Object Diagrams for Inheritance. Type Conformance. Inheritance Structures. Car. Vehicle. Truck. Vehicle. conforms to Object

Review: Object Diagrams for Inheritance. Type Conformance. Inheritance Structures. Car. Vehicle. Truck. Vehicle. conforms to Object Review: Diagrams for Inheritance - String makemodel - int mileage + (String, int) Class #3: Inheritance & Polymorphism Software Design II (CS 220): M. Allen, 25 Jan. 18 + (String, int) + void

More information

New RISE STAFF TIME ENTRY AND PAY STUB VIEWING PROCEDURES

New RISE STAFF TIME ENTRY AND PAY STUB VIEWING PROCEDURES New RISE STAFF TIME ENTRY AND PAY STUB VIEWING PROCEDURES Attention RISE Staff: The City of Lakewood has recently changed to an all-electronic Time Entry and Pay Stub system. You will need to enter your

More information

Phone Banking BSP. User Guide. Why wait in line? Bank by phone with BSP. Bank South Pacific.

Phone Banking BSP. User Guide. Why wait in line? Bank by phone with BSP. Bank South Pacific. Phone Banking BSP User Guide Why wait in line? Bank by phone with BSP Bank South Pacific www.bsp.com.pg Contents: Banking by Phone 2 Getting Started 3 Your Phone 3 Your BSP Identification Number & PAC

More information

Laboratory 4. INSTRUCTIONS (part II) I. THEORETICAL BACKGROUND

Laboratory 4. INSTRUCTIONS (part II) I. THEORETICAL BACKGROUND PROGRAMMING LANGUAGES Laboratory 4 INSTRUCTIONS (part II) I. THEORETICAL BACKGROUND 1. Instructions (overview) 1.1. The conditional instruction (if..else) if(expresie) instruction1; else instruction2;

More information

Member Support Help Desk Solution

Member Support Help Desk Solution Member Support Help Desk Solution ComTrax, LLC. 18450 N. 46 th Drive Glendale, AZ. 85308 (800) 729-3083 1 P a g e The following instruction set will show how to use the ComTrax, LLC. Member Support Feature

More information

CMSC 201 Computer Science I for Majors

CMSC 201 Computer Science I for Majors CMSC 201 Computer Science I for Majors Lecture 02 Intro to Python Syllabus Last Class We Covered Grading scheme Academic Integrity Policy (Collaboration Policy) Getting Help Office hours Programming Mindset

More information

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this

More information

Substitute Quick Reference (SmartFindExpress Substitute Calling System and Web Center)

Substitute Quick Reference (SmartFindExpress Substitute Calling System and Web Center) Substitute Quick Reference (SmartFindExpress Substitute Calling System and Web Center) System Phone Number 578-6618 Help Desk Phone Number 631-4868 (6:00 a.m. 4:30 p.m.) Write your Access number here Write

More information

ebilling Training Invoicing

ebilling Training Invoicing ebilling Training Invoicing How to Search for an 1. Select or enter the appropriate service provider number (SPN) on the home screen. 2. Select the s tab. TIP: If you would like to search for an invoice

More information

CHAPTER : 9 FLOW OF CONTROL

CHAPTER : 9 FLOW OF CONTROL CHAPTER 9 FLOW OF CONTROL Statements-Statements are the instructions given to the Computer to perform any kind of action. Null Statement-A null statement is useful in those case where syntax of the language

More information

SUBSTITUTE EMPLOYEE WEB TIME INSTRUCTIONS

SUBSTITUTE EMPLOYEE WEB TIME INSTRUCTIONS SUBSTITUTE EMPLOYEE WEB TIME INSTRUCTIONS These instructions will show you how to record your time into the Frontline (formerly known as Aesop) system for payroll purposes. The following are critical elements

More information

Exceptions. CS162: Introduction to Computer Science II. Exceptions. Exceptions. Exceptions. Exceptions. Exceptions

Exceptions. CS162: Introduction to Computer Science II. Exceptions. Exceptions. Exceptions. Exceptions. Exceptions CS162: Introduction to Computer Science II A typical way to handle error conditions is through the return value. For example, suppose we create a loadfile() function that returns true if it loaded 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

Searching for Information. A Simple Method for Searching. Simple Searching. Class #21: Searching/Sorting I

Searching for Information. A Simple Method for Searching. Simple Searching. Class #21: Searching/Sorting I Class #21: Searching/Sorting I Software Design II (CS 220): M. Allen, 26 Feb. 18 Searching for Information Many applications involve finding pieces of information Finding a book in a library or store catalogue

More information

FLE» Reykjanesbær» Keilir» Fjörður» Reykjavík/HÍ

FLE» Reykjanesbær» Keilir» Fjörður» Reykjavík/HÍ Mondays - Fridays FLE» Reykjanesbær»»» Reykjavík/HÍ Bus nr 1 to Hlemmur Bus nr 21 to Mjódd 06:35 06:44 06:47 06:51 06:54 06:52 06: 07:17 07:20 07:22 07:18 07:22 07:28 07:31 07:32 07:36 07:38 07:40 06:34

More information

ONLINE AND MOBILE BANKING INFORMATIONAL GUIDE. Retain for easy reference.

ONLINE AND MOBILE BANKING INFORMATIONAL GUIDE. Retain for easy reference. ONLINE AND MOBILE BANKING INFORMATIONAL GUIDE Retain for easy reference. Contents Important dates... 3 Welcome! We are pleased to deliver enhanced online and mobile banking services to you, as part of

More information

SA-027WQ. Manual. 7-Day Timer. Lighting Systems Access Controls Security Systems Environmental Controls. Automate the following:

SA-027WQ. Manual. 7-Day Timer. Lighting Systems Access Controls Security Systems Environmental Controls. Automate the following: SA-027WQ 7-Day Timer Manual Automate the following: Lighting Systems Access Controls Security Systems Environmental Controls 12~24 VAC/VDC Program up to 60 flexible events Holiday function (up to 99 days)

More information

Maximize Operational Efficiency in a Tiered Storage Environment

Maximize Operational Efficiency in a Tiered Storage Environment W H I T E P A P E R : T E C H N I C A L Maximize Operational Efficiency in a Tiered Storage Environment Use Cases for Orchestrated Volume and Page-based Migration with Hitachi Tiered Storage Manager (HTSM)

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

Flow Control: Branches and loops

Flow Control: Branches and loops Flow Control: Branches and loops In this context flow control refers to controlling the flow of the execution of your program that is, which instructions will get carried out and in what order. In the

More information

Once Written, Twice Applied: The Basics of Array Processing In SAS Elizabeth A. Roth, RAND Corporation, Santa Monica, CA

Once Written, Twice Applied: The Basics of Array Processing In SAS Elizabeth A. Roth, RAND Corporation, Santa Monica, CA Once Written, Twice Applied: The Basics of Array Processing In SAS Elizabeth A. Roth, RAND Corporation, Santa Monica, CA ABSTRACT Using arrays in DATA step programming can streamline programming in important

More information

Principles of Compiler Design Prof. Y. N. Srikant Department of Computer Science and Automation Indian Institute of Science, Bangalore

Principles of Compiler Design Prof. Y. N. Srikant Department of Computer Science and Automation Indian Institute of Science, Bangalore (Refer Slide Time: 00:20) Principles of Compiler Design Prof. Y. N. Srikant Department of Computer Science and Automation Indian Institute of Science, Bangalore Lecture - 4 Lexical Analysis-Part-3 Welcome

More information

User Guide on Online Resource Booking System (ORBS) Centre for Genomic Sciences HKU

User Guide on Online Resource Booking System (ORBS) Centre for Genomic Sciences HKU User Guide on Online Resource Booking System (ORBS) Centre for Genomic Sciences HKU July 2013 Introduction to Online Resource Booking System The Online Resource Booking System (ORBS) is a convenient web-based

More information

Registration. To access SalesLink, open your web browser and type the following URL address:

Registration. To access SalesLink, open your web browser and type the following URL address: Registration To access SalesLink, open your web browser and type the following URL address: http://aasaleslink.com. Choose Login at the top right of the page. Page 1 of 6 Click on Register as a Travel

More information

Functions. Lecture 6 COP 3014 Spring February 11, 2018

Functions. Lecture 6 COP 3014 Spring February 11, 2018 Functions Lecture 6 COP 3014 Spring 2018 February 11, 2018 Functions A function is a reusable portion of a program, sometimes called a procedure or subroutine. Like a mini-program (or subprogram) in its

More information

LN #2 (3 Hrs) Variables, Sequence Boolean Logic & Selection CTPS Department of CSE,Coimbatore

LN #2 (3 Hrs) Variables, Sequence Boolean Logic & Selection CTPS Department of CSE,Coimbatore LN #2 (3 Hrs) Variables, Sequence Boolean Logic & Selection CTPS 2018 Objectives To understand variables and their values. To study the computational structure, form and functional elements for sequence

More information

Comp 151. Control structures.

Comp 151. Control structures. Comp 151 Control structures. admin quiz this week believe it or not only 2 weeks from exam. one a week each week after that. idle debugger Debugger: program that will let you look at the program as it

More information

Software Testing Prof. Meenakshi D Souza Department of Computer Science and Engineering International Institute of Information Technology, Bangalore

Software Testing Prof. Meenakshi D Souza Department of Computer Science and Engineering International Institute of Information Technology, Bangalore Software Testing Prof. Meenakshi D Souza Department of Computer Science and Engineering International Institute of Information Technology, Bangalore Lecture 04 Software Test Automation: JUnit as an example

More information

Web Time Entry in Self Service Banner for Hourly Students

Web Time Entry in Self Service Banner for Hourly Students Web Time Entry in Self Service Banner for Hourly Students Log in to BuzzIn Click the SSB link 1 From the Main Menu screen choose the Employee link. ( Personal Information tab is not yet available.) From

More information

Strings in Visual Basic. Words, Phrases, and Spaces

Strings in Visual Basic. Words, Phrases, and Spaces Strings in Visual Basic Words, Phrases, and Spaces Strings are a series of characters. Constant strings never change and are indicated by double quotes. Examples: Fleeb Here is a string. Strings are a

More information

FDX-2025TS User guide

FDX-2025TS User guide TS User guide 2 1. TABLE OF CONTENTS 2. General... 4 3. Start page... 4 4. Logon... 5 5. Points... 6 3.1 Point status... 6 3.2 Point dialog... 7 3.2.1 Manual command... 7 3.2.2 Trend table... 8 3.2.3 Trend

More information

Substitute Quick Reference Card

Substitute Quick Reference Card Substitute Quick Reference Card System Phone Number 240-439-6900 Help Desk Phone Number 301-644-5120 ID PIN System Calling Times Week Day Today s Jobs Future Jobs Weekdays Starts at 6:00 a.m. 5:00 p.m.

More information

guide to getting started

guide to getting started guide to getting started UTStarcom TM 6700 the future is friendly table of contents activate 3 self service 3 full service 3 setting up your email 4 corporate email accounts 4 internet service provider

More information

NAVICA PLUS MLS SYSTEM

NAVICA PLUS MLS SYSTEM NAVICA PLUS MLS SYSTEM Navica Plus offers a new user interface with a more streamlined look. Some of the new features include: The ability to Update Your Listings From Several Locations, have access to

More information

Fundamentals of Python: First Programs. Chapter 4: Strings (Indexing, Slicing, and Methods)

Fundamentals of Python: First Programs. Chapter 4: Strings (Indexing, Slicing, and Methods) Fundamentals of Python: First Programs Chapter 4: Strings (Indexing, Slicing, and Methods) Objectives After completing this lesson, you will be able to: 1) Know the definition of a string and that strings

More information

Announcements. Lab 1 this week! Homework posted Thursday -Due next Thursday at 11:55pm

Announcements. Lab 1 this week! Homework posted Thursday -Due next Thursday at 11:55pm C++ Basics Announcements Lab 1 this week! Homework posted Thursday -Due next Thursday at 11:55pm Variables Variables are objects in program To use variables two things must be done: - Declaration - Initialization

More information

NODE CONTROLLER PROGRAMMING GUIDE 2/2013 NODE CONTROLLER INTRODUCTION

NODE CONTROLLER PROGRAMMING GUIDE 2/2013 NODE CONTROLLER INTRODUCTION NODE CONTROLLER PROGRAMMING GUIDE 2/2013 NODE CONTROLLER INTRODUCTION THE PROGRAM MENU BUTTON ALLOWS YOU TO NAVIGATE BETWEEN MENUS. PRESS THE PROGRAM MENU BUTTON TO FIRST WAKE UP THE UNIT. DURING A SHORT

More information

Using the Program Guide

Using the Program Guide The program guide shows what is on TV. You can also use it to select programs, to set timers, and to purchase Pay-Per-View (PPV) programs. This chapter describes how you use the program guide in the following

More information

ANNEX A GETTING STARTED WITH SINGAPORE STUDENT LEARNING SPACE Instructions for Students

ANNEX A GETTING STARTED WITH SINGAPORE STUDENT LEARNING SPACE Instructions for Students ANNEX A GETTING STARTED WITH SINGAPORE STUDENT LEARNING SPACE Instructions for Students SYSTEM REQUIREMENTS 1. The Singapore Student Learning Space (SLS) is accessible through the internet browsers on

More information

Zodiac Link QUICKSTART GUIDE

Zodiac Link QUICKSTART GUIDE Zodiac Link QUICKSTART GUIDE May 2014 Table of Contents Step 1 Enroll Administrator... 3 Step 2 Set Mode... 3 Step 3 Set Slaves... 4 Step 4 Map Slaves... 4 Step 5 Set Reader Clock... 4 Step 6 - Synchronize

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

5 When a program calls a function, in which type of data structure is memory allocated for the variables in that function?

5 When a program calls a function, in which type of data structure is memory allocated for the variables in that function? 1 The finally block of an exception handler is: -executed when an exception is thrown -always executed when the code leaves any part of the Try statement -always executed -always executed when the code

More information

Before We Begin. Introduction to Computer Use II. Overview (1): Winter 2006 (Section M) CSE 1530 Winter Bill Kapralos.

Before We Begin. Introduction to Computer Use II. Overview (1): Winter 2006 (Section M) CSE 1530 Winter Bill Kapralos. Winter 2006 (Section M) Topic E: Subprograms Functions and Procedures Wednesday, March 8 2006 CSE 1530, Winter 2006, Overview (1): Before We Begin Some administrative details Some questions to consider

More information

TSI Server Configuration Mode Commands

TSI Server Configuration Mode Commands The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s). Important do show, page 1 end, page 2 exit, page 2 ip, page 3 logging, page

More information

Example: Which of the following expressions must be an even integer if x is an integer? a. x + 5

Example: Which of the following expressions must be an even integer if x is an integer? a. x + 5 8th Grade Honors Basic Operations Part 1 1 NUMBER DEFINITIONS UNDEFINED On the ACT, when something is divided by zero, it is considered undefined. For example, the expression a bc is undefined if either

More information

WebCalendar User Manual

WebCalendar User Manual WebCalendar User Manual Document Version: $Id: WebCalendar-UserManual.html,v 1.6 2004/06/26 10:35:04 cknudsen Exp $ WebCalendar Version: 0.9.42 Table of Contents Introduction Users and Events Repeating

More information

The University of Alabama in Huntsville ECE Department CPE Midterm Exam Solution March 2, 2006

The University of Alabama in Huntsville ECE Department CPE Midterm Exam Solution March 2, 2006 The University of Alabama in Huntsville ECE Department CPE 526 01 Midterm Exam Solution March 2, 2006 1. (15 points) A barrel shifter is a shift register in which the data can be shifted either by one

More information

PASCAL. PASCAL, like BASIC, is a computer language. However, PASCAL, unlike BASIC, is a Blocked Structured Language (BASIC is known as unstructured).

PASCAL. PASCAL, like BASIC, is a computer language. However, PASCAL, unlike BASIC, is a Blocked Structured Language (BASIC is known as unstructured). PASCAL 11 OVERVIEW OF PASCAL LANGUAGE PASCAL, like BASIC, is a computer language However, PASCAL, unlike BASIC, is a Blocked Structured Language (BASIC is known as unstructured) Let look at a simple {BLOCK

More information

Michele Van Dyne Museum 204B CSCI 136: Fundamentals of Computer Science II, Spring

Michele Van Dyne Museum 204B  CSCI 136: Fundamentals of Computer Science II, Spring Michele Van Dyne Museum 204B mvandyne@mtech.edu http://katie.mtech.edu/classes/csci136 CSCI 136: Fundamentals of Computer Science II, Spring 2016 1 Review of Java Basics Data Types Arrays NEW: multidimensional

More information

First Payment Merchant Services. PAX Terminal Update How to Guide

First Payment Merchant Services. PAX Terminal Update How to Guide First Payment Merchant Services PAX Terminal Update How to Guide 1 PREPARING FOR THE UPDATE This guide details the steps to follow on your PAX terminal which is required to download and apply the mandated

More information

Setting up the ServiceTitan Web Appointment Scheduler

Setting up the ServiceTitan Web Appointment Scheduler Setting up the ServiceTitan Web Appointment Scheduler ServiceTitan Best Practices When you use the Web Appointment Scheduler, customers will be able to instantly request an appointment when they visit

More information

************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE

************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE Program 10: 40 points: Due Tuesday, May 12, 2015 : 11:59 p.m. ************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE *************

More information

Visual Basic for Applications

Visual Basic for Applications Visual Basic for Applications Programming Damiano SOMENZI School of Economics and Management Advanced Computer Skills damiano.somenzi@unibz.it Week 1 Outline 1 Visual Basic for Applications Programming

More information

More Flow Control Functions in C++ CS 16: Solving Problems with Computers I Lecture #4

More Flow Control Functions in C++ CS 16: Solving Problems with Computers I Lecture #4 More Flow Control Functions in C++ CS 16: Solving Problems with Computers I Lecture #4 Ziad Matni Dept. of Computer Science, UCSB Administrative CHANGED T.A. OFFICE/OPEN LAB HOURS! Thursday, 10 AM 12 PM

More information

Fun facts about recursion

Fun facts about recursion Outline examples of recursion principles of recursion review: recursive linked list methods binary search more examples of recursion problem solving using recursion 1 Fun facts about recursion every loop

More information

CHRIST THE KING BOYS MATRIC HR. SEC. SCHOOL, KUMBAKONAM CHAPTER 9 C++

CHRIST THE KING BOYS MATRIC HR. SEC. SCHOOL, KUMBAKONAM CHAPTER 9 C++ CHAPTER 9 C++ 1. WRITE ABOUT THE BINARY OPERATORS USED IN C++? ARITHMETIC OPERATORS: Arithmetic operators perform simple arithmetic operations like addition, subtraction, multiplication, division etc.,

More information

CSE115 / CSE503 Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall Office hours:

CSE115 / CSE503 Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall Office hours: CSE115 / CSE503 Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall alphonce@buffalo.edu Office hours: Tuesday 10:00 AM 12:00 PM * Wednesday 4:00 PM 5:00 PM Friday 11:00 AM 12:00 PM OR

More information

Genesys Info Mart. date-time Section

Genesys Info Mart. date-time Section Genesys Info Mart date-time Section 11/27/2017 date-time Section date-time-max-days-ahead date-time-min-days-ahead date-time-start-year date-time-table-name date-time-tz first-day-of-week fiscal-year-start

More information

Claims Management - Delay analysis Online Workshop. Week No. 1: concept of claims

Claims Management - Delay analysis Online Workshop. Week No. 1: concept of claims Online Workshop Week No. 1: concept of claims Presented by : Hany Ismail, MSc, PMP Workshop Concept Online Workshop Course Duration. Course PDU s. Course weekly Schedule. Wednesday New Lecture by Instructor

More information

Cutting Edge Products Dealer Website Program USER MANUAL

Cutting Edge Products Dealer Website Program USER MANUAL Cutting Edge Products Dealer Website Program USER MANUAL Welcome to our Dealer Website Program! This User Manual will help you get your new online store up and running quickly. This step-by-step guide

More information

Crystal Reports. Overview. Contents. Cross-Tab Capabilities & Limitations in Crystal Reports (CR) 6.x

Crystal Reports. Overview. Contents. Cross-Tab Capabilities & Limitations in Crystal Reports (CR) 6.x Crystal Reports Cross-Tab Capabilities & Limitations in Crystal Reports (CR) 6.x Overview Contents This document provides an overview of cross-tab capabilities and limitations in Crystal Reports (CR) 6.

More information

EECS 183. Week 3 - Diana Gage. www-personal.umich.edu/ ~drgage

EECS 183. Week 3 - Diana Gage. www-personal.umich.edu/ ~drgage EECS 183 Week 3 - Diana Gage www-personal.umich.edu/ ~drgage Upcoming Deadlines Lab 3 and Assignment 3 due October 2 nd (this Friday) Project 2 will be due October 6 th (a week from Friday) Get started

More information

Microsoft Remote Desktop setup for OSX, ios and Android devices

Microsoft Remote Desktop setup for OSX, ios and Android devices Microsoft Remote Desktop setup for OSX, ios and Android devices Table of Contents Microsoft Remote Desktop Installation and Use: Introduction.. 3 OSX setup. 4 ios setup...10 Android setup..22 Page 2 of

More information

MBTA Semester Pass Program User Guide

MBTA Semester Pass Program User Guide MBTA Semester Pass Program User Guide CharlieCard Customer Service 1-888-844-0353 passprogram@mbta.com Monday through Friday 7AM to 8PM EST Saturday and Sunday 9AM to 5PM EST Welcome to the MBTA Semester

More information

Click: Double-click:

Click: Double-click: Computer Mouse The computer s mouse controls the mouse pointer on the screen. Roll the mouse left, and the pointer moves left; roll it in circles, and the pointer does the same on the screen. Click: A

More information

Enumerated Types. CSE 114, Computer Science 1 Stony Brook University

Enumerated Types. CSE 114, Computer Science 1 Stony Brook University Enumerated Types CSE 114, Computer Science 1 Stony Brook University http://www.cs.stonybrook.edu/~cse114 1 Enumerated Types An enumerated type defines a list of enumerated values Each value is an identifier

More information

Understanding the problem

Understanding the problem 2.1.1 Problem solving and design An algorithm is a plan, a logical step-by-step process for solving a problem. Algorithms are normally written as a flowchart or in pseudocode. The key to any problem-solving

More information

Control Statements. if for while

Control Statements. if for while Control Structures Control Statements if for while Control Statements if for while This This is is called called the the initialization initialization statement statement and and is is performed performed

More information

ADVANCED ALGORITHMS TABLE OF CONTENTS

ADVANCED ALGORITHMS TABLE OF CONTENTS ADVANCED ALGORITHMS TABLE OF CONTENTS ADVANCED ALGORITHMS TABLE OF CONTENTS...1 SOLVING A LARGE PROBLEM BY SPLITTING IT INTO SEVERAL SMALLER SUB-PROBLEMS CASE STUDY: THE DOOMSDAY ALGORITHM... INTRODUCTION

More information

Requesting Time Off: Employee Navigation Salaried Non-Exempt

Requesting Time Off: Employee Navigation Salaried Non-Exempt Requesting Time Off: Employee Navigation Salaried Non-Exempt Logging on Log in using your Clemson Primary* Username and Password. URL: https://clemson.kronos.net (*To determine your Primary Username, go

More information

E101B SINGLE 7/22/07 10:02 PM Page 1

E101B SINGLE 7/22/07 10:02 PM Page 1 E101B SINGLE 7/22/07 10:02 PM Page 1 E101B SINGLE 7/22/07 10:02 PM Page 2 TABLE OF CONTENTS Section Page Installation Instructions and Capabilities.................... 1 Key Functions....................

More information

ABORT_LOGIN_ON_MISSING_HOMEDIR=1 Exit the login session if the user s home directory does not exist. Default value: ABORT_LOGIN_ON_MISSING_HOMEDIR=0

ABORT_LOGIN_ON_MISSING_HOMEDIR=1 Exit the login session if the user s home directory does not exist. Default value: ABORT_LOGIN_ON_MISSING_HOMEDIR=0 NAME security - security defaults configuration file DESCRIPTION A number of system commands and features are configured based on certain attributes defined in the /etc/default/security configuration file.

More information

Section CTS Online. 7.1 What you can use CTS Online for Why you should use CTS Online Agent Access 2

Section CTS Online. 7.1 What you can use CTS Online for Why you should use CTS Online Agent Access 2 Section CTS Online Page 7.1 What you can use CTS Online for 1 7.2 Why you should use CTS Online 1 7.3 Agent Access 2 7.4 Who has access to your information? 2 7.5 How you can tell if CTS has got your 3

More information