Posts

Module 5 Activity

Image
activity

Module 5

Computers can perform mathematical calculations much faster than human beings.  However, the computer itself will not be able to perform any mathematical calculations  without receiving instructions from the programmer. In VB2010, we can write code to  instruct the computer to perform mathematical calculations such as addition, subtraction,  multiplication, division and other kinds of arithmetic operations. In order for VB2010 to  carry out arithmetic calculations, we need to write code that involves the use of various  arithmetic operators. The VB2010 arithmetic operators are very similar to the normal  arithmetic operators, only with slight variations. The plus and minus operators are the  same while the multiplication operator use the * symbol and the division operator use the /  symbol. The list of VB2010 arithmetic operators are shown in table 5.1 below: Summary  In this chapter, you learned how to use various mathematical operators...

Module 4

Managing VB2010 Data   Getting to know various data types in Visual Basic 2010   Assigning values to the variables   Getting to know various arithmetic operators in Visual Basic 2010  In our daily life we come across many types of data. For example, we need to handle data  such as names, addresses, money, dates, stock quotes, statistics and more everyday.  Similarly, in Visual Basic 2010, we have to deal with all sorts of data; some are numeric in  natrure while some are in the form of text or other forms. VB2010 divides data into different  types so that it is easier to manage when we need to write the code involving those data.  4.1 Visual Basic 2010 Data Types Visual Basic classifies the information mentioned above into two major data types; namely  the numeric data types and the non-numeric data types.  4.1.1 Numeric Data Types  Numeric data types are types of data that consist of numbers, which you can compute  the...

Module 3 Activity 1

Image
Module 3 Activity 1

Module 3

3.1 Understanding Event Driven Programming VB2010 is an object oriented and event driven programming language. In fact, all windows  applications are event driven. Event driven means the user decides what to do with the  program, whether he or she wants to click the command button, enter text in a text box, or  close the application and more. An event is related to an object, it is an incident that  happens to the object due to the action of the user, such as a click or pressing a key on the  keyboard. A class contains events as it creates instant of a class or an object Summary   In section 3.1, you learned the concept of event driven programming.   In section 3.2, you learned how to write a simple code for an event procedure,  including the usage of MsgBox().   In section 3.3, you learned how to create a multiplication program.   In section 3.4, you learned how to write a program to add some items to a list  bo...

Module 2 Activity 1

Image
Module 2 Activity 1

Module 2 Activity 2

Image
mod 2 activity 2