Week 1 Activity—Pseudocode and Visual Basic

In: Computers and Technology

Submitted By spillcanvas93
Words 477
Pages 2
Week 1 Activity—Pseudocode and Visual Basic
-------------------------------------------------
TCO 1—Given a simple business problem, design and desk-check a solution that is expressed in terms of pseudocode, flowchart, and/or input-process-output (IPO) diagrams.
-------------------------------------------------

Assignment This activity will assist you in the understanding of how output should appear after statements are executed (results) and how to write proper pseudocode, as well as the relationship between pseudocode, flowcharts, and programming language code. 1. Show the result of each pseudocode program. 2. Also, rewrite the pseudocode statements or flowchart using assignment statements.
Rubric
When completed, compile the following documents together neatly in 1 and 2 order. 1) This instruction sheet first 2) Your answer sheet second
Point distribution for this activity: Activity | Document | Points possible | Points received | Problem #1 | 6 | | Problem #2 | 6 | | Problem #3 | 8 | | Total Points | 20 | |

Example

The variable A starts with value 5.
Add 1 to A
Display the value of A on the screen.

Example Output
-------------------------------------------------

------------------------------------------------- 6
-------------------------------------------------

Example Pseudocode
-------------------------------------------------

------------------------------------------------- Let A = 1
-------------------------------------------------
Let A = A+1
-------------------------------------------------
Output A
-------------------------------------------------

Example Flowchart (Use MS Visio and paste flowchart here or submit in separate file.)

Problem #1

The variable X starts with the value, 0. The variable Y starts with the value, 5. Add…...

Similar Documents

Visual Basic

...Visual Basic – Messages and data input/output Introduction One way for a user to communicate with a procedure is via a dialogue box. The easiest way to do this in VB is to use one of the pre-defined ones. VB has two kinds, a Message box and an Input box. Message box The MsgBox function displays a message, waits for the user to click a button and returns a value indicating which button has been chosen. The simplest MsgBox contains only a message string and an OK button. The general syntax is MsgBox(prompt [,buttons] [,title]), where the quantities within [] are optional arguments, with prompt: string expression displayed in the message (max length 1024 characters) buttons: numerical expression that is sum of values specifying the type of buttons to display, title: string expression displayed in the title bar. Some of the button values are given below. (For a full list see the Help file). Value Constant Display 0 vbOKOnly OK button only 1 vbOKCancel OK and Cancel buttons 3 vbYesNoCancel Yes, No and Cancel buttons 4 vbYesNo Yes and No buttons 32 vbQuestion Query icon 48 vbExclamation Warning message icon 0 vbDefaultButton1 First button is default 256 vbDefaultButton2 Second button is default 512 vbDefaultButton3 Third button is default The value returned by the MsgBox function depends on the button pressed. Some values are listed below. Button selected Value Constant OK 1 vbOK Cancel 2 vbCancel Yes 6 vbYes No 7 vbNo The MsgBox function can be used as a simple debug tool.......

Words: 930 - Pages: 4

Visual Basic Naming Rules

...Visual Basic Naming Rules Use the following rules when you name procedures, constants, variables, and arguments in a Visual Basic module: •You must use a letter as the first character. •You can't use a space, period (.), exclamation mark (!), or the characters @, &, $, # in the name. •Name can't exceed 255 characters in length. •Generally, you shouldn't use any names that are the same as the functions, statements, and methods in Visual Basic. You end up shadowing the same keywords in the language. http://msdn.microsoft.com/en-us/library/office/ee440536(v=office.12).aspx Python Variable Naming Rules: 1. Must begin with a letter (a - z, A - B) or underscore (_). 2. Other characters can be letters, numbers or _ only. 3. Variable names are Case Sensitive. 4. There are some reserved words which we cannot use as a variable name because Python uses them for other things. These are: and,del,from,not,while,as,elif,global,or,with,assert,else,if,pass,yield,break,except,import,print,break,except,import,print,class,exec,in,raise,class,exec,in,raise,continue,finally,is,return,continue,finally,is,return,def,for,lambda and try. http://www.programr.com/python-variable-naming-rules General Naming Conventions for Java. Names representing packages should be in all lower case. Package naming convention used by Sun for the Java core packages. The initial package name representing the domain name must be in lower case. Names representing types must be nouns and......

Words: 723 - Pages: 3

Week 8 Discussion: Visual Basic Programming

...•Imagine that your company has decided to expand to the Web. You want to reuse some data entry code that has been developed in Windows and place it on the Web. Visual Basic code has the capability to run on a Web server. Explain the process you would go through to develop a Web page locally. You can create HTML pages and Web Forms pages as the user interface for a Web application. HTML pages are generally used for static content. In contrast, Web Forms pages give you a programmable interface that works much like a Visual Basic form, except that the user interface is rendered in a Web browser or other Web device. Web Forms pages are built on the ASP.NET Page framework. Each Web Forms page is an object that derives from the ASP.NET Page class, which acts as a container for controls. The page actually consists of two files: an .aspx file that contains the UI elements (static HTML text and control elements) and a class file that contains the code that runs the page. •Internet Explorer is the number-one Web browser, but many users are moving to Chrome and Firefox Web browsers. Each of these browsers has slight differences in displaying the screen content. Explain how this can occur to your Web screen and any ways to prevent this. Web Forms applications are, by definition, platform-independent — that is, they are "reach" applications. Users can interact with your application regardless of what type of browser they have and even what type of computer they are using. At the same......

Words: 705 - Pages: 3

Visual Basic

...Textbook problem #3 on Page 232/234 Public Class Form1 Private Sub Btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn1.Click Dim Visited As String = "", Dates As String = "", Location As String = "" 'Declaring information entered in txtboxes 1-3 Dim Meals As Double, Airfare As Double, Lodging As Double, Taxifare As Double 'Declaring information entered in txtboxes 4-7 DisplayBox.Visible = True Inputs(Visited, Dates, Location, Meals, Airfare, Lodging, Taxifare) Displayexpenses(Visited, Dates, Location, Meals, Airfare, Lodging, Taxifare) End Sub Sub Inputs(ByRef Visited As String, ByRef Dates As String, ByRef Location As String, _ ByRef Meals As Double, ByRef Airfare As Double, ByRef Lodging As Double, ByRef Taxifare As Double) 'all wordlike inputs as string, all number inputs being recognized as double Visited = CStr(TxtBox1.Text) 'telling us where information is located on the form Dates = CStr(TxtBox2.Text) Location = CStr(TxtBox3.Text) Meals = CDbl(TxtBox4.Text) Airfare = CDbl(TxtBox5.Text) Lodging = CDbl(TxtBox6.Text) Taxifare = CDbl(TxtBox7.Text) End Sub Sub Displayexpenses(ByVal Visited As String, ByVal Dates As String, ByVal Location As String, ByVal Meals As Double, ByVal Airfare As Double, ByVal Lodging As Double, ByVal Taxifare As Double) 'Display Expenses as per book......

Words: 447 - Pages: 2

Semantics of Visual Basics

...| Purpose In this project, a database management system will be implemented to make the self-ordering easier. The users for this program will be used for customers in various restaurants. It will take a customer’s order, total it, and give them an amount. The system will instruct the customer to enter the correct amount. If the amount is not enough, the system will instruct them to enter more money. If it is too less, however, the system will them issue out change. Use of Visual Basics Visual Basic for Applications (VBA) will be used because it is a programming language built right into many Microsoft programs. This language is built on the Basic programming language made popular by PCs over the past 25 years. VBA shares similarities with other Windows implementations of the Basic language, such as Visual Basic. If you are familiar with programming in a different language (including using macros), you can quickly get up to speed with VBA. There are a few terms you should know before you start programming in VBA: * Procedure. A section of programming code, designed to accomplish a specific task, which your program statements can use throughout your program. There are two types of procedures: functions and subroutines. * Function. A procedure that returns a value after it completes its task. When called, functions typically appear on the right side of an equal sign in an expression. * Subroutine. A procedure that does not return a value after it completes......

Words: 3627 - Pages: 15

Visual Basic Preview

...Visual Basic 2010 Essentials Visual Basic 2010 Essentials Visual Basic 2010 Essentials – First Edition © 2010 Payload Media. This eBook is provided for personal use only. Unauthorized use, reproduction and/or distribution strictly prohibited. All rights reserved. The content of this book is provided for informational purposes only. Neither the publisher nor the author offers any warranties or representation, express or implied, with regard to the accuracy of information contained in this book, nor do they accept any liability for any loss or damage arising from any errors or omissions. 2 Visual Basic 2010 Essentials Table of Contents Chapter 1. Chapter 2. 2.1 2.2 2.3 2.4 About Visual Basic Essentials .................................................................................. 11 Downloading and Installing Visual Studio............................................................... 12 Getting Visual Studio ...................................................................................................... 12 Downloading a Visual Studio Trial .................................................................................. 12 Installing Visual Studio ................................................................................................... 13 Starting Visual Studio for the First Time ........................................................................ 14 Creating a New Visual Basic Project ....................................................

Words: 5044 - Pages: 21

Cgd 218 Week 1 Dq 1 Using Visuals to Communicate

...CGD 218 Week 1 DQ 1 Using Visuals to Communicate Purchase here http://chosecourses.com/CGD%20218/cgd-218-week-1-dq-1-using-visuals-to-communicate Description This work of CGD 218 Week 1 DQ 1 contains: Using Visuals to Communicate Regardless of where you work or what your career is, learning how to communicate effectively and professionally is important if you want to succeed. Further, learning how to successfully utilize visual media in your communication can dramatically enhance the effectiveness of your message. As you will learn, preparing and packaging visual communication is critical to the success of the message being delivered! Take a moment to read the instructions for your final project in Week 5. Throughout the next five weeks, you will work on preparing a message of your choice, through the use of effective visual strategies. For this discussion, identify at least one specific message that you might communicate in the workplace CGD 218 Week 1 DQ 1 Using Visuals to Communicate Purchase here http://chosecourses.com/CGD%20218/cgd-218-week-1-dq-1-using-visuals-to-communicate Description This work of CGD 218 Week 1 DQ 1 contains: Using Visuals to Communicate Regardless of where you work or what your career is, learning how to communicate effectively and professionally is important if you want to succeed. Further, learning how to successfully utilize visual media in your communication can......

Words: 1092 - Pages: 5

Pos 408 Entire Class Pos 408 Week 1 Individual Assignment Simple Visual Basic Programe

...408 Week 1 Individual Assignment Simple Visual Basic Programe Click Link Below To Buy: http://hwcampus.com/shop/pos-408-entire-class/ Or Visit www.hwcampus.com Design, implement, test, and debug a simple Visual Basic® program. Requirements Create a VB form inside of Visual Studio. The form needs the following components and functionality: Two text boxes. Limit the boxes to accept only 15 characters. Rename the text boxes to something meaningful (like, 'txtFirstName') Two labels to the left of the text boxes that prompts the user to enter a first and last name. Rename the labels. Two buttons. One to clear the contents of the text boxes, and one to exit the application. Include hot keys on the buttons. Rename the buttons to reflect their purpose ( from 'button1' to something like 'btnClear') Name the form, "Week 1" and have that label show on the title bar of the form (instead of the default 'form1') Rename the form to 'frmweek1' Include documentation at the top of the code in the form which includes your name and a short description of the assignment Include anything else you would like to try on the form. Play around and get familiar with the toolbox. Change colors of objects or whatever. Experiment around. Include a block at the top of the code that contains your information: programmer, date, and information about the application Zip the files of the project together. Submit the zipped file POS 408 Week 1 ......

Words: 3074 - Pages: 13

Pos 408 Entire Class Pos 408 Week 1 Individual Assignment Simple Visual Basic Programe

...408 Week 1 Individual Assignment Simple Visual Basic Programe Click Link Below To Buy: http://hwcampus.com/shop/pos-408-entire-class/ Or Visit www.hwcampus.com Design, implement, test, and debug a simple Visual Basic® program. Requirements Create a VB form inside of Visual Studio. The form needs the following components and functionality: Two text boxes. Limit the boxes to accept only 15 characters. Rename the text boxes to something meaningful (like, 'txtFirstName') Two labels to the left of the text boxes that prompts the user to enter a first and last name. Rename the labels. Two buttons. One to clear the contents of the text boxes, and one to exit the application. Include hot keys on the buttons. Rename the buttons to reflect their purpose ( from 'button1' to something like 'btnClear') Name the form, "Week 1" and have that label show on the title bar of the form (instead of the default 'form1') Rename the form to 'frmweek1' Include documentation at the top of the code in the form which includes your name and a short description of the assignment Include anything else you would like to try on the form. Play around and get familiar with the toolbox. Change colors of objects or whatever. Experiment around. Include a block at the top of the code that contains your information: programmer, date, and information about the application Zip the files of the project together. Submit the zipped file POS 408 Week 1 ......

Words: 3074 - Pages: 13

Acc 290 Week 1 Vocabulary Activity New

...ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW To purchase this visit here: http://www.nerdypupil.com/product/acc-290-week-1-vocabulary-activity-new/ Contact us at: nerdypupil@gmail.com ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW WileyPLUS Assignment: Week 1 Vocabulary Activity Resource: WileyPLUS Complete the following Week 1 Assignment in WileyPLUS: • Chapter 1 WileyPLUS Crossword Puzzle 1 Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 290 Week 1 Vocabulary Activity New in order to ace their studies. ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW To purchase this visit here: http://www.nerdypupil.com/product/acc-290-week-1-vocabulary-activity-new/ Contact us at: nerdypupil@gmail.com ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW WileyPLUS Assignment: Week 1 Vocabulary Activity Resource: WileyPLUS Complete the following Week 1 Assignment in WileyPLUS: • Chapter 1 WileyPLUS Crossword Puzzle 1 Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 290 Week 1 Vocabulary Activity New in order to ace their studies. ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW To purchase this visit here: http://www.nerdypupil.com/product/acc-290-week-1-vocabulary-activity-new/ Contact us at: nerdypupil@gmail.com ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW WileyPLUS Assignment: Week 1 Vocabulary Activity Resource: WileyPLUS Complete the following Week 1 Assignment in WileyPLUS: • Chapter 1 WileyPLUS Crossword Puzzle......

Words: 523 - Pages: 3

Acc 290 Week 1 Vocabulary Activity New

...290 WEEK 1 VOCABULARY ACTIVITY NEW To purchase this visit here: http://www.nerdypupil.com/product/acc-290-week-1-vocabulary-activity-new-2/ Contact us at: nerdypupil@gmail.com ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW WileyPLUS Assignment: Week 1 Vocabulary Activity Resource: WileyPLUS Complete the following Week 1 Assignment in WileyPLUS: • Chapter 1 WileyPLUS Crossword Puzzle 1 Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 290 Week 1 Vocabulary Activity New in order to ace their studies. ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW To purchase this visit here: http://www.nerdypupil.com/product/acc-290-week-1-vocabulary-activity-new-2/ Contact us at: nerdypupil@gmail.com ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW WileyPLUS Assignment: Week 1 Vocabulary Activity Resource: WileyPLUS Complete the following Week 1 Assignment in WileyPLUS: • Chapter 1 WileyPLUS Crossword Puzzle 1 Home Work Hour aims to provide quality study notes and tutorials to the students of ACC 290 Week 1 Vocabulary Activity New in order to ace their studies. ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW To purchase this visit here: http://www.nerdypupil.com/product/acc-290-week-1-vocabulary-activity-new-2/ Contact us at: nerdypupil@gmail.com ACC 290 WEEK 1 VOCABULARY ACTIVITY NEW WileyPLUS Assignment: Week 1 Vocabulary Activity Resource: WileyPLUS Complete the following Week 1 Assignment in WileyPLUS: • Chapter 1 WileyPLUS Crossword Puzzle......

Words: 441 - Pages: 2

Pos 408 Entire Class Pos 408 Week 1 Individual Assignment Simple Visual Basic Programe

...408 Week 1 Individual Assignment Simple Visual Basic Programe Click Link Below To Buy: http://hwcampus.com/shop/pos-408-entire-class/ Or Visit www.hwcampus.com Design, implement, test, and debug a simple Visual Basic® program. Requirements Create a VB form inside of Visual Studio. The form needs the following components and functionality: Two text boxes. Limit the boxes to accept only 15 characters. Rename the text boxes to something meaningful (like, 'txtFirstName') Two labels to the left of the text boxes that prompts the user to enter a first and last name. Rename the labels. Two buttons. One to clear the contents of the text boxes, and one to exit the application. Include hot keys on the buttons. Rename the buttons to reflect their purpose ( from 'button1' to something like 'btnClear') Name the form, "Week 1" and have that label show on the title bar of the form (instead of the default 'form1') Rename the form to 'frmweek1' Include documentation at the top of the code in the form which includes your name and a short description of the assignment Include anything else you would like to try on the form. Play around and get familiar with the toolbox. Change colors of objects or whatever. Experiment around. Include a block at the top of the code that contains your information: programmer, date, and information about the application Zip the files of the project together. Submit the zipped file POS 408 Week 1 ......

Words: 3074 - Pages: 13

Week 8 Activity 1

...Week 8 Activity 1 1. Best available treatment: a water treatment that is the most current and best available through research even though it may not be the treatment used most frequently. 2. Best conventional treatment: a water treatment that is generally used among industries; not always the best treatment available. 3. Clean Air Act: federal legislations that establishes standards for air pollution levels and prevents further deterioration of air quality. 4. Clean Water Act: federal legislations that regulates water pollution through a control system. 5. Due diligence: process of checking the environmental history and nature of land prior to purchase. 6. Emissions offset policy: controls whether new factories can be built in a non-attainment area. 7. Environmental impact statement (EIS): formal report prepared under NEPA to document findings on the impact of a federal project on the environment. 8. Injunction: order of a court of equity to refrain from doing or to do a specified act. 9. Private nuisance: nuisance that affects only one or a few individuals. 10. Zoning: restrictions imposed by government on the use of designated land to ensure an orderly physical development of the regulate area. 1. Solid waste disposal regulations today deal almost entirely with recycling. False 2. The EPA has the authority of have activities halted through the use of injunction. True 3. Conduct that unreasonably interferes with the enjoyment......

Words: 255 - Pages: 2

Pos 408 Entire Class Pos 408 Week 1 Individual Assignment Simple Visual Basic Programe

...408 Week 1 Individual Assignment Simple Visual Basic Programe Click Link Below To Buy: http://hwcampus.com/shop/pos-408-entire-class/ Or Visit www.hwcampus.com Design, implement, test, and debug a simple Visual Basic® program. Requirements Create a VB form inside of Visual Studio. The form needs the following components and functionality: Two text boxes. Limit the boxes to accept only 15 characters. Rename the text boxes to something meaningful (like, 'txtFirstName') Two labels to the left of the text boxes that prompts the user to enter a first and last name. Rename the labels. Two buttons. One to clear the contents of the text boxes, and one to exit the application. Include hot keys on the buttons. Rename the buttons to reflect their purpose ( from 'button1' to something like 'btnClear') Name the form, "Week 1" and have that label show on the title bar of the form (instead of the default 'form1') Rename the form to 'frmweek1' Include documentation at the top of the code in the form which includes your name and a short description of the assignment Include anything else you would like to try on the form. Play around and get familiar with the toolbox. Change colors of objects or whatever. Experiment around. Include a block at the top of the code that contains your information: programmer, date, and information about the application Zip the files of the project together. Submit the zipped file POS 408 Week 1 ......

Words: 3074 - Pages: 13

Pos 408 Entire Class Pos 408 Week 1 Individual Assignment Simple Visual Basic Programe

...408 Week 1 Individual Assignment Simple Visual Basic Programe Click Link Below To Buy: http://hwcampus.com/shop/pos-408-entire-class/ Or Visit www.hwcampus.com Design, implement, test, and debug a simple Visual Basic® program. Requirements Create a VB form inside of Visual Studio. The form needs the following components and functionality: Two text boxes. Limit the boxes to accept only 15 characters. Rename the text boxes to something meaningful (like, 'txtFirstName') Two labels to the left of the text boxes that prompts the user to enter a first and last name. Rename the labels. Two buttons. One to clear the contents of the text boxes, and one to exit the application. Include hot keys on the buttons. Rename the buttons to reflect their purpose ( from 'button1' to something like 'btnClear') Name the form, "Week 1" and have that label show on the title bar of the form (instead of the default 'form1') Rename the form to 'frmweek1' Include documentation at the top of the code in the form which includes your name and a short description of the assignment Include anything else you would like to try on the form. Play around and get familiar with the toolbox. Change colors of objects or whatever. Experiment around. Include a block at the top of the code that contains your information: programmer, date, and information about the application Zip the files of the project together. Submit the zipped file POS 408 Week 1 ......

Words: 3074 - Pages: 13