Introduction to Programming and VBScript. Data and Information. Data are raw facts Examples of data include transactions, dates, amounts, etc. Information are data that have been processed into a usable form Information includes tables, documents, charts, etc.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
A program is a very specific set of rules that tell the computer which switches should be "ON" or "OFF".
The process of creating a program is called programming.
The computer only knows what it is told through programs, so they must be accurate and very specific.
OOP uses objects, or self contained modules that combine data and program code which pass strictly defined messages to one another.
OOED is easier to work with, because it is more intuitive than traditional programming methods.
Visual Basic is almost a OOP language
Users can combine the objects with relative ease to create new systems or extend existing ones.
Properties of objects are attributes associated with an object
Methods of objects are those activities that the object can carry out
Objects respond to events
1. Define problem (functional definition)
2. Determine form of input from browser (html)
3. Determine form of output to browser (html)
4. Write and debug client-side script to pre-process browser input
5. Write and debug server-side script to process input to generate output to browser in form of HTML
6. Test entire project (client and server side)
<% Dim ftsize, ftcolor %>
<% Dim ftsize, ftcolor
For ftsize = 1 to 7 %>
‘ This code loops 7 times changing the <ignored
‘ font size each time through the loop <ignored
for ftsize = 1 to 7 <executed
<% if weekday(date) > 3 and _
weekday(date) < 6 then
is the same as
<% if weekday(date) > 3 and weekday(date) < 6 then %>
<% Taxes = VideoPrice * TaxRate %>
<%Gross = 3 * (Salary - Taxes)^2 + Bonus/Months %>
3 1 2 5 4 (order)
1 Subtract Taxes from Salary
2 Square the result
3 Multiply this result by 3
4 Divide Bonus by Months
5 Add result to first expression
<% Option Explicit %>
<% Dim TotalCost, Videoprice, TaxRate, Taxes
VideoPrice = 2.99
TaxRate = 0.07
Taxes = TaxRate * VideoPrice
TotalCost = VideoPrice + Taxes %>
<font size = <%=ftsize%>>
<font size = 5>
<% Option Explicit %>
<% Dim FirstName, LastName, Name
FirstName = “Bill”
LastName = “Gates”
Name = FirstName & LastName %>
<% const constant name = value %>
<% Const TaxRate = 0.07%>