COMPUTER IV LESSON 2

60 %
40 %
Information about COMPUTER IV LESSON 2
Education

Published on July 3, 2008

Author: sdreyes102877

Source: authorstream.com

Slide 1: June 30 - July 3, 2008 Prepared by: SDReyes 1 Slide 2: June 30 - July 3, 2008 Prepared by: SDReyes 2 Lesson Objectives Slide 3: June 30 - July 3, 2008 Prepared by: SDReyes 3 (Program with declaration of Variable, elseif and conjunction AND) DIM A AS INTEGER A = TXTAREA Or Else MsgBox (“out of range”) Slide 4: June 30 - July 3, 2008 Prepared by: SDReyes 4 SYNTAX: ( Case Statement) SELECT CASE <EXPRESSION> CASE <TEST – RANGE 1> <STATEMENT> CASE <TEST – RANGE 2> <STATEMENT> END SELECT Example: Select Case txtArea Case 101 To 1000 MsgBox ("BIG”) Case 0 To 100 MsgBox (“small”) End Select SAMPLE PROGRAM : June 30 - July 3, 2008 Prepared by: SDReyes 5 SAMPLE PROGRAM Area of a rectangle with CASE Statement Private Sub cmdcompute_click() TXTArea = Val(TXTLength) * Val(TXTWidth) Select Case txtArea Case 101 To 1000 MsgBox ("BIG”) Case 0 To 100 MsgBox (“small”) End Select End Sub Slide 6: June 30 - July 3, 2008 Prepared by: SDReyes 6 CMDCOMPUTE _ click With variable declaration A = L * W Dim A, L, W As Integer A = txtarea L = txtLength W = txtWidth Select Case A Case 101 To 1000 MsgBox ("BIG”) Case 0 To 100 MsgBox (“small”) Case Is < 0 MsgBox (“out of range”) Case Is > 1000 MsgBox (“out of range”) End select You can change the two CASE IS with this code: Case Else Msgbox(“out of range”)

Add a comment

Related presentations

Related pages

Computer Lessons, Part IV - YouTube

Basic copying and pasting lessons with keyboard shortcuts, etc. Thanks to my friends Bill and Gloria.
Read more

Computer Lessons for Grade 4 - BU Personal Websites

Computer Lessons for Grade 4: Welcome to the class! This is unit one of the course Introduction to Computers.This site will give students at the fouth ...
Read more

Computer Basics: What is a Computer? - Free Online ...

A computer is an electronic device that manipulates information, or data. It has the ability to store, retrieve, and process data. You probably already ...
Read more

Computers & Internet Lesson Plans, Ideas, and Activities

This section of The Lesson Plans Page contains computer lesson plans, computer ideas, computer lessons, computer thematic units, internet lessons, internet
Read more

PARTS OF A COMPUTER (Class III, IV and V) thinking of ...

PARTS OF A COMPUTER (Class III, IV and V) ... 2 What is kind of ... These lessons will spend a lot of time talking about files.
Read more

Macmillan McGraw-Hill

Computer Literacy Lessons: Unit 1: Online Computer Literacy Practice: Computer Basics: Unit 2: Online Computer Literacy Practice: Use the Mouse and Keyboard:
Read more

Introduction to Computers - Lesson 2 - Memory Basics - YouTube

Introduction to Computers - Lesson 2 - Memory Basics ... Introduction to Computers - Lesson 1 - The CPU - Duration: 16:16. wilkuacode 32,253 views.
Read more

Browse lesson plans - LEARN NC: Search Results

The lesson plans, articles, and textbooks you use and love aren’t going away. ... Format: lesson plan (grade 2–4 English Language Arts) By Jennifer Reid.
Read more

Basics of Computer - Home: The National Institute of Open ...

Basics of Computer :: 3 2. Control Unit (CU): The process of input, output, processing and storage is performed under the supervision of a unit
Read more