This chapter discusses variables and arithmetic operations in coding. It covers how to create and modify textbox and label objects, declare string and numeric variables, use assignment statements, literals and constants, arithmetic operators, format numeric output, debug programs, and more. The objectives are to understand variables and arithmetic operations, work with different data types, debug code, and perform tasks like data conversion and concatenation.
Chapter 4 — Variables and Arithmetic Operationsfrancopw
Chapter 4 introduces variables and arithmetic operations used in the coding of a Visual Basic application. The chapter provides in-depth coverage of declaring variables, gathering input for an application, differentiating data types, performing mathematical calculations, and understanding the proper scope of variables. The chapter also shows how to use various types of TextBox objects.
Chapter 3 provides students with the skills and knowledge necessary to complete phases 2,3,and 4 of the PDLC by enhancing a GUI mock-up, designing program processing objects, and coding a program. Topics include using IntelliSense when writing code and enhancing a Visual Basic 2010 form by changing the BackColor property of an object and displaying images. This chapter also explains how to enter Visual Basic 2010 code, correct errors, and run a completed program. Finally, the chapter discusses the value of creating an event planning document.
Chapter 2 — Program and Graphical User Interface Designfrancopw
Chapter 2 introduces students to the major elements of the Visual Studio 2010 integrated development environment (IDE) while designing a graphical user interface mock-up. Topics include opening Visual Studio 2010, creating a Windows Forms Application project,adding objects to a Windows form, assigning properties to objects,aligning objects on the Windows form,and saving Visual Basic projects. The chapter also discusses how to apply GUI design principles and examines the first two phases of the program development life cycle (PDLC).
Chapter 4 — Variables and Arithmetic Operationsfrancopw
Chapter 4 introduces variables and arithmetic operations used in the coding of a Visual Basic application. The chapter provides in-depth coverage of declaring variables, gathering input for an application, differentiating data types, performing mathematical calculations, and understanding the proper scope of variables. The chapter also shows how to use various types of TextBox objects.
Chapter 3 provides students with the skills and knowledge necessary to complete phases 2,3,and 4 of the PDLC by enhancing a GUI mock-up, designing program processing objects, and coding a program. Topics include using IntelliSense when writing code and enhancing a Visual Basic 2010 form by changing the BackColor property of an object and displaying images. This chapter also explains how to enter Visual Basic 2010 code, correct errors, and run a completed program. Finally, the chapter discusses the value of creating an event planning document.
Chapter 2 — Program and Graphical User Interface Designfrancopw
Chapter 2 introduces students to the major elements of the Visual Studio 2010 integrated development environment (IDE) while designing a graphical user interface mock-up. Topics include opening Visual Studio 2010, creating a Windows Forms Application project,adding objects to a Windows form, assigning properties to objects,aligning objects on the Windows form,and saving Visual Basic projects. The chapter also discusses how to apply GUI design principles and examines the first two phases of the program development life cycle (PDLC).
In this chaper we will learn how to change the BackColor property of an object
Understand Visual Basic 2010 code statement formatsand see how IntelliSense can be used to enter code statements.We will discuss the Visual Basic programming languge syntax and write coding statements. We will also see how to correct coding errors in Visual Basic 2010.
Correct errors in Visual Basic 2010 code. We will learn how to print code and how to prepare an Event Planning Document.
Adobe Illustrator CS5 is used to create graphics and type in vector format. Vector graphics are made up of points, lines, and curves that are defined by mathematical equations. Vector graphics are resolution independent, which means that they can be resized to any size without losing quality. This handout covers vector graphic effects which include text, color gradient, and gloss effects. The lessons include creating an icon and a customized t-shirt design.
If you would like to see more videos on Adobe Illustrator, please visit http://www.youtube.com/mycsula for more online training.
There you can find FREE tutorials on Illustrator, Photoshop, Microsoft Office, HTML5, and many more!
Chapter 1 — Introduction to Visual Basic 2010 Programming francopw
Chapter 1 provides an overview of programming with Visual Basic 2010.The chapter defines a computer program, describes the role of a developer in creating computer programs, and discusses event-driven programs that have a graphical user interface (GUI). The chapter also explains the roles of input, processing,output,and data when running a program on a computer; examines the basic arithmetic and logical operations a program can perform; and explores the use of databases and computer programming languages in general. Finally, the chapter introduces Visual Studio 2010 and the .NET 4.0 Framework, including the .NET class libraries and related features, and surveys the types of Visual Basic 2010 applications.
In this chaper we will learn how to change the BackColor property of an object
Understand Visual Basic 2010 code statement formatsand see how IntelliSense can be used to enter code statements.We will discuss the Visual Basic programming languge syntax and write coding statements. We will also see how to correct coding errors in Visual Basic 2010.
Correct errors in Visual Basic 2010 code. We will learn how to print code and how to prepare an Event Planning Document.
Adobe Illustrator CS5 is used to create graphics and type in vector format. Vector graphics are made up of points, lines, and curves that are defined by mathematical equations. Vector graphics are resolution independent, which means that they can be resized to any size without losing quality. This handout covers vector graphic effects which include text, color gradient, and gloss effects. The lessons include creating an icon and a customized t-shirt design.
If you would like to see more videos on Adobe Illustrator, please visit http://www.youtube.com/mycsula for more online training.
There you can find FREE tutorials on Illustrator, Photoshop, Microsoft Office, HTML5, and many more!
Chapter 1 — Introduction to Visual Basic 2010 Programming francopw
Chapter 1 provides an overview of programming with Visual Basic 2010.The chapter defines a computer program, describes the role of a developer in creating computer programs, and discusses event-driven programs that have a graphical user interface (GUI). The chapter also explains the roles of input, processing,output,and data when running a program on a computer; examines the basic arithmetic and logical operations a program can perform; and explores the use of databases and computer programming languages in general. Finally, the chapter introduces Visual Studio 2010 and the .NET 4.0 Framework, including the .NET class libraries and related features, and surveys the types of Visual Basic 2010 applications.
EX19_AC_CH03_GRADER_HOE_AS_Instructions.docx
Grader - Instructions Access 2019 ProjectExp19_Access_Ch03_HOEAssessment - Property Sales 1.0
Project Description:
In the following project, using data on homes for sale that Amy and Zac acquired, you are able to target properties that meet specific criteria. As you examine the data, you discover other ways to analyze the properties. You create several queries and present your results to the two investors for their comments. You also create several totals queries to evaluate the property lists.
Steps to Perform:
Step
Instructions
Points Possible
1
Start Access. Open the downloaded Access file named Exp19_Access_Ch03_HOEAssessment_Property_Sales. Grader has automatically added your last name to the beginning of the filename. Click Enable Content on the Security Warning message bar.
0
2
Now that you have opened the database, you begin your analysis by creating a query using the Properties and Agents tables from the Property database. The Properties table contains all the properties the investors will evaluate; the Agents table contains a list of real estate agents who represent the properties’ sellers. In this exercise, you will add requested fields and only show properties that have not been sold. You will then build an expression to calculate the price per square foot for each property.
Use Query Design to create a new query. The Show Table dialog box opens so you can specify the table(s) and/or queries to include in the query design. Add the Agents table then the Properties table. Close the Show Table dialog box.
Add the FirstName and LastNamefields from the Agents table to the query. Add the ListPrice, SqFeet, and Soldfields from the Properties table to the query. Run the query and view the 23 properties that display in the query results.
5
3
Switch back to Design view and add No in the Criteria row of the Sold field. Sort the query in Ascending order by the ListPrice field. Run the query and view the 17 unsold properties in order from least expensive to most expensive.
Save the query as Price Per Square Foot.
10
4
Switch to Design view. In the Field row of the first blank column of the query design grid, right-click and select Zoom. Add PricePerSqFt: xListPrice/xSqFeet and click OK. Access inserts square brackets around the fields for you. Be sure that you added the extra x’s to the field names. You are intentionally misspelling the field names to see how Access will respond.
Run the query. In the first Enter Parameter Value dialog box, enter 200000 and click OK. Access does not recognize xListPrice in the tables defined for this query in the first record. When Access does not recognize a field name, it will ask you to supply a value.
Another Enter Parameter Value dialog box displays, asking that you supply a value for xSqFeet. Again, this error occurs because the tables defined for this query do not contain an xSqFeet field. Type 1000 in the second parameter box and press ENTER. The query ...
Thanks for writing, I provide online training through GoTo Meeting for Cognos TM1 10.2 ver in 24 days with 210 technical documents + 15 assignments + 29 recorded videos + 2 business cases + 1 mini project + certification help + resume help + 3 months offline support in new job
Also, please find the attached course schedule where I'll be covering TM1 Development + TM1 Design (Architecture) + TM1 Administration incl Operations Console & Performance Modeler + Cognos Insight in TM1 Applications and the videos index for your reference.
This presentation discusses the basics of Variables and Arithmetic operations in Visual Basic, together with information on debugging resources within the program
Getting started with the visual basic editorputiadetiara
berikut adalah penjelasan tentang bagaimana memulai visual basic application.
oleh :
Ade Tiara Putri
Program Studi S1 Sistem Informasi
Fakultas Sains dan Teknologi
Universitas Islam Negeri Sultan Syarif Kasim Riau
please visit
http://sif.uin-suska.ac.id/
http://fst.uin-suska.ac.id/
http://www.uin-suska.ac.id/
Computer Assignment #2 Company Database GuideCustomer Table Da.docxzollyjenkins
Computer Assignment #2: Company Database Guide
Customer Table: Data Dictionary
-------------------------------
Field Name Data Type
CustomerID Autonumber
CustomerName Text (Properties=20)
PhoneNo Text (Properties=13)
City Text (Properties=15)
Product Table: Data Dictionary
------------------------------
Field Name Data Type
ProductID Autonumber
Product Name Text (Properties=15)
Price Currency (Properties=Standard)
ExpiryDate Date/Time (Properites=Medium Date)
Transaction Table: Data Dictionary
----------------------------------
Field Name Data Type
TransactionID Autonumber
CustomerID Lookup Wizard
ProductID Lookup Wizard
Quantity Number (Properties=Integer)
TransactionDate Date/Time (Properties=Medium Date)
Section I: TablesTask 1: Open MS Access
From the Start menu choose All Programs, MS Office, MS Access 2007.
Task 2: Blank Database
Under the heading New Blank Database click on Blank Database.
Task 3: Choose Folder and File Name
On the right side of the screen you can choose which folder that you want to save the database in. You can also choose the File Name of the database. Here the filename is Company.accdb. The file extension for MS Access 2007 database files is .accdb. Then click Create.
Task 4: Create the Customer Table
When you first create a table in MS Access 2007 the table will be in Datasheet View. We want to create the table in Design View. Click on the down arrow under View on the left side of the screen and choose Design View.
The Save As dialog box will pop up and you can type the name of the table which is the Customer table. Click OK.
Enter the field names and data types for each of the Customer table fields as shown below. Notice that CustomerID has a key to the left of it. We do not have to enter the key manually because we created the table using Design View.
For each field data type you may need to change the property. Check with the tables listed at the beginning of this guide to determine the field properties. In the example below the Field Properties for CustomerName was Field Size=20.
You will need to make sure the table is saved by either clicking on the save icon or using the shortcut key Ctrl+S.
Finally, you can close the table by click on the x on the left side of the table. It is a good idea to keep the table closed because some tasks cannot be completed with the tables open.
Task 5: Create the Product Table
Select the Create tab and click on Table.
Follow the same steps used to create the Customer table. Click on the down arrow under View and select Design View.
For the Table Name type Product and click OK to save the table.
Enter the field names and data types for each of the Customer table fields as shown. Refer to the Product table listed at the beginning of this guide. Note that the properties for the Currency data type is Standard and the properties for the ExpiryDate is Medium Date. Save the table.
Task 6: Create the Transaction Table
.
For Beginners
Demo Projects:
• Employee Information Form (Using advance controls)
What will you learn?
• Using following controls:
o Masked Textbox
o Multiline Textbox
o ComboBox, ListBox, CheckBoxList
o DateTimePicker
o NumericUpDown
o RadioButton
• Adding Items to ComboBox, ListBox and CheckBoxList Statically and Dynamically
• Enabling Autocomplete feature in ComboBox
• Getting Selected items form ComboBox, ListBox and CheckBoxList
• Clearing or resetting all these controls to default values.
2. Chapter 4: Variables and Arithmetic Operations 2 Objectives Create, modify, and program a TextBox object Use code to place data in the Text property of a Label object Use the AcceptButton and CancelButton properties Understand and declare String and Numeric variables Use assignments statements to place data in variables
3. Chapter 4: Variables and Arithmetic Operations 3 Objectives Use literals and constants in coding statements Understand scope rules for variables Convert string and numeric data Understand and use arithmetic operators and arithmetic operations
4. Chapter 4: Variables and Arithmetic Operations 4 Objectives Format and display numeric data as a string Create a form load event Create a concatenated string Debug a program
6. Chapter 4: Variables and Arithmetic Operations 6 TextBox Objects With Visual Studio open and the frmDigitalDownloads.vb [Design] tabbed page visible, point to the TextBox .NET component in the Toolbox Drag the TextBox .NET component onto the Windows Form object at the desired location When the upper-left corner of the pointer is located where you want the TextBox object’s upper-left corner, release the left mouse button
8. Chapter 4: Variables and Arithmetic Operations 8 Sizing and Positioning a TextBox Object Select the TextBox object. Select the (Name) property and name the TextBoxobject txtNumberOfDownloads. Scroll in the Properties window until the Text property is visible and then click the right column for the Text property Type the maximum number of characters the user normally will enter into the text box and then press the ENTER key. When entering numbers, the digit 8 often is entered because it is wider than other digits. In this example, the value 888 is entered because three digits is the maximum number of digits the user normally will enter
9. Chapter 4: Variables and Arithmetic Operations 9 Sizing and Positioning a TextBox Object Using the Font property in the Properties window, change the Font property to the correct font and font size. For this application, change the font to Century Gothic and change the font size to 12. Then, drag the right edge of the TextBox object to resize the TextBox object so it is slightly wider than the 888 entry To horizontally align the text in the label and the text in the text box, drag the text box up until a red snap line indicates the bottoms of the text are aligned. Then, release the left mouse button
10. Chapter 4: Variables and Arithmetic Operations 10 Sizing and Positioning a TextBox Object
11. Chapter 4: Variables and Arithmetic Operations 11 Aligning Text in a TextBox Object Select the TextBox object. In the Properties window, scroll until the TextAlign property is visible, click the TextAlign property in the left column, and then click the list arrow in the right column of the TextAlign property Click Center in the TextAlign property list Because the TextBox object is sized properly, remove the digits in the TextBox object. Select the characters 888 in the Text property, press the DELETE key on your keyboard, and then press the ENTER key
12. Chapter 4: Variables and Arithmetic Operations 12 Aligning Text in a TextBox Object
13. Chapter 4: Variables and Arithmetic Operations 13 Creating a MultiLine Text Box Select the TextBox object, click the Action tag, and point to the MultiLine check box Click the MultiLine check box
14. Chapter 4: Variables and Arithmetic Operations 14 Creating a MaskedTextBox Object
15. Chapter 4: Variables and Arithmetic Operations 15 Creating a MaskedTextBox Object Drag a MaskedTextBox .NET component from the Toolbox to the Windows Form object. Then, click the Action tag on the TextBox object and point to the Set Mask command Click Set Mask on the MaskedTextBox Tasks list and then click the Short date mask description in the Input Mask dialog box Click the OK button in the Input Mask dialog box and then click anywhere in the Windows Form object
16. Chapter 4: Variables and Arithmetic Operations 16 Creating a MaskedTextBox Object
17. Chapter 4: Variables and Arithmetic Operations 17 Label Objects Drag a Label object onto the Windows Form object to the correct location. Name the label lblTotalCostOfDownloads. Change the label to the appropriate font size (Century Gothic, 12 point). In the Text property for the Label object, enter the maximum number of characters ($888.88) that will appear in the label during execution of the program Drag the Label object up until the red snap line appears. Then release the left mouse button
19. Chapter 4: Variables and Arithmetic Operations 19 Accept Button in Form Properties The program will carry out the event handler processing associated with the Accept button if the user clicks the button or if the user presses the ENTER key Click a blank area in the Windows Form object to select it. Scroll in the Properties window until the AcceptButton property is visible. Click the AcceptButton property name in the left column and then click the AcceptButton property list arrow in the right column Click btnCalculateCost in the AcceptButton property list
20. Accept Button in Form Properties Chapter 4: Variables and Arithmetic Operations 20
21. Chapter 4: Variables and Arithmetic Operations 21 Cancel Button in Form Properties When the user presses the ESC key, the event handler processing for the button identified as the Cancel button will be executed Click a blank area in the Windows Form object to select it Click the CancelButton property name in the left column in the Properties window for the Windows Form object, and then click the CancelButton list arrow Click the button name (btnClear) in the CancelButton property list
22. Chapter 4: Variables and Arithmetic Operations 22 Visual Studio Preparation for Code Entry With the Toolbox visible, click the Toolbox Close button. The Toolbox closes and the work area expands in size. To reshow the Toolbox after it has been closed, click the Toolbox button on the Standard toolbar
23. Chapter 4: Variables and Arithmetic Operations 23 String Data Type A String data type allows every character available on the computer to be stored in it The data type for the value the user enters in a TextBox object and that is stored in the Text property of the TextBox object is string A variable is a named location in RAM where data is stored A String variable is a named location in RAM that can store a string value
25. Chapter 4: Variables and Arithmetic Operations 25 Assignment Statements One method to place data in the variable is to use an assignment statement
26. Chapter 4: Variables and Arithmetic Operations 26 Assignment Statements With Visual Studio displaying the code editing window and the insertion point located in the desired column, type Dim followed by a space. Then, type the name of the String variable you want to define, strNumberOfSongs on your keyboard Press the SPACEBAR, type the word As and then press the SPACEBAR again Because the entry should be String, type str on your keyboard Press the ENTER key
27. Chapter 4: Variables and Arithmetic Operations 27 Assignment Statements To begin the assignment statement, type strn. IntelliSense displays the only variable name that starts with the letter strn, the String variable strNumberOfDownloads Press the SPACEBAR, press the EQUAL SIGN key, and then press the SPACEBAR Type txt to display the IntelliSense list of the Form objects, and then type n to identify the txtNumberof Downloads Text Box object in the IntelliSense list Press the PERIOD key and then, if necessary, type te to highlight the Text entry in the IntelliSense list Press the ENTER key
35. Chapter 4: Variables and Arithmetic Operations 35 Literals A value is called a literal when the value being used in the assignment statement is literally the value that is required
36. Chapter 4: Variables and Arithmetic Operations 36 Forced Literal Types Sometimes you might want a literal to be a different data type than the Visual Basic default
37. Chapter 4: Variables and Arithmetic Operations 37 Constants A constant variable will contain one permanent value throughout the execution of the program
38. Chapter 4: Variables and Arithmetic Operations 38 Constants The declaration of a constant variable begins with the letters Const, not the letters Dim You must assign the value to be contained in the constant on the same line as the definition of the constant. You cannot attempt to change the value in the constant variable anywhere in the program. If you attempt this, you will produce a compiler error The letter c often is placed before the prefix of the constant variable name to identify throughout the program that it is a constant variable and cannot be changed Other than the letter c constant variable names are formed using the same rules and techniques as nonconstant names
39. Chapter 4: Variables and Arithmetic Operations 39 Referencing a Variable When a variable is declared, it will be underlined with a green squiggly line until it is referenced in a statement It is mandatory when using a variable in a program that the variable is defined prior to using the variable name in a statement
40. Chapter 4: Variables and Arithmetic Operations 40 Scope of Variables The scope of a variable specifies where within the program the variable can be referenced in a Visual Basic statement A variable can be referenced only within the region of the program where it is defined The code between the Sub statement and the End Sub statement is a procedure A variable that can only be referenced within the region of the program where it is defined is called a local variable Local variables have a certain lifetime in the program Global variables can be used in multiple regions of a program
41. Chapter 4: Variables and Arithmetic Operations 41 Converting Variable Data Visual Basic includes several procedures that allow you to convert one data type to another data type A procedure to convert a String data type to an Integer data type is named ToInt32 The procedure is found in the Convert class, which is available in a Visual Studio 2010 class library
42. Chapter 4: Variables and Arithmetic Operations 42 Using a Procedure A procedure that performs its task but does not return a value is called a Sub procedure A procedure that returns a value is called a Function procedure, or a function An argument identifies a value required by a procedure Every procedure is part of a class
44. Chapter 4: Variables and Arithmetic Operations 44 Option Strict On Visual Basic will, by default, automatically convert data types if the data type on the right side of the equal sign in an assignment statement is different from the data type on the left side of the equal sign To prevent automatic conversion of values, the developer must insert the Option Strict On statement in the program prior to any event handler code in the program The Option Strict On statement explicitly disallows any default data type conversions in which data loss would occur and any conversion between numeric types and strings
45. Option Strict On Chapter 4: Variables and Arithmetic Operations 45
48. Chapter 4: Variables and Arithmetic Operations 48 Multiple Operations A single assignment statement can contain multiple arithmetic operations Hierarchy of Operations Exponentiation (^) is performed first Multiplication (*) and division (/) are performed next Integer division ( is next MOD then occurs Addition (+) and subtraction (-) are performed last Within these five steps, calculations are performed left to right
50. Chapter 4: Variables and Arithmetic Operations 50 Format Specifications for the ToString Function Use the format specifierto identify the format for the numeric data to be returned by the ToString function
51. Chapter 4: Variables and Arithmetic Operations 51 Precision Specifier The precision specifieris a number that is included within the quotation marks in the function call to identify the number of positions to the right of the decimal point that should be returned
52. Chapter 4: Variables and Arithmetic Operations 52 Clear Procedure The Clear procedure clears any data currently placed in the Text property of a TextBox object
53. Chapter 4: Variables and Arithmetic Operations 53 Clearing the Text Property of a Label The Clear procedure cannot be used with a Label object You must write an assignment statement that assigns a null length string to the Text property of a Label object
54. Chapter 4: Variables and Arithmetic Operations 54 Setting the Focus When the focus is on a TextBox object, the insertion point is located in the text box
55. Chapter 4: Variables and Arithmetic Operations 55 Form Load Event A form load event occurs when the program starts and the Digital Downloads form is loaded This event handler completes the following tasks: Display the cost per download heading Clear the placeholder from the lblTotalCostOfDownloads Text property Set the focus on the txtNumberOfDownloads text box
56. Chapter 4: Variables and Arithmetic Operations 56 Concatenation The process of joining two different values into a single string is called concatenation The values being concatenated must be String data types
58. Chapter 4: Variables and Arithmetic Operations 58 Class Scope When a variable is referenced in two different event handling procedures, it must be defined at the class level instead of the procedure (event handler) level
59. Debugging Your Program A Format Exception occurs when the user enters data that a statement within the program cannot process properly Chapter 4: Variables and Arithmetic Operations 59
60. Chapter 4: Variables and Arithmetic Operations 60 Debugging Your Program An Overflow Exception occurs when the user enters a value greater than the maximum value that can be processed by the statement It is not possible to divide by zero, so if your program contains a division operation and the divisor is equal to zero, the Divide By Zero Exception will occur
64. Chapter 4: Variables and Arithmetic Operations 64 Summary Create, modify, and program a TextBox object Use code to place data in the Text property of a Label object Use the AcceptButton and CancelButton properties Understand and declare String and Numeric variables Use assignments statements to place data in variables
65. Chapter 4: Variables and Arithmetic Operations 65 Summary Use literals and constants in coding statements Understand scope rules for variables Convert string and numeric data Understand and use arithmetic operators and arithmetic operations
66. Chapter 4: Variables and Arithmetic Operations 66 Summary Format and display numeric data as a string Create a form load event Create a concatenated string Debug a program