VB & Web Prog. 3rd Yr 6th Sem
VB & Web Prog. 3rd Yr 6th Sem
E-Mail: [email protected],Website:tsatamilcas.edu.in
Affiliated to Bharathiar University, Approved by UGC under Section 2(f) & 12(B)
SEMESTER – VI
NAME : ……………………………….
REGISTER NO : ……………………………….
THAVATHIRU SANTHALINGA ADIGALAR ARTS SCIENCE AND TAMIL COLLEGE
PERUR, COIMBATORE– 641 010
CERTIFICATE
Place : Perur
Date :
VISUVAL BASIC PROGRAMMING
3 CAPITAL BUDGETING
4 IMAGE CONTOL
5 COST OF CAPITAL
6 WORKING CAPITAL
8 PRODUCT DETAILS
11 HIGHLIGHTS OF BUDGETING
12 SUPERMARKET BILL
14 INVENTORY CONTROL
OUTPUT:
PROGRAM :2
PRODUCT LIST USING ARRAY
AIM:
To design a form to display the list of products by declaring array function,
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
Dim a(5) As String
Dim i As Integer
FORM DESIGN:
OUTPUT:
PROGRAM 3
CAPITAL BUDGETING
AIM:
To design a form to calculate capital budgeting technique by declaring finance function
and variable declaration using option /radio/check box
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
Dim INVEST, INFLOW, ELIFE, PAY, POST, INDEX As Integer
Private Sub Check1_Click()
INVEST = Val(Text1.Text)
INFLOW = Val(Text2.Text)
ELIFE = Val(Text3.Text)
PAY = INVEST / INFLOW
Text4.Text = PAY
If Check1.Value = 0 Then
Text4.Text = Clear
End If
End Sub
OUTPUT:
PROGRAM:4
ADVERTISEMENT BANNER
AIM:
To design a form to display an advertisement banner using image box control with string
function.
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
Dim S1, S2 As String
FORM DESIGN:
OUTPUT:
PROGRAM 5
COST OF CAPITAL
AIM:
To design a form to compute cost of capital using finance function in visual basic using
checkbox
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
Dim i, np, d, mp As Integer
Private Sub Check1_Click()
i = Val(Text1.Text)
np = Val(Text2.Text)
Text3.Text = i / np
If Check1.Value = 0 Then
Text3.Text = Clear
End If
End Sub
FORM DESIGN:
OUTPUT:
PROGRAM 6
WORKING CAPITAL
AIM:
To design a form to perform working capital analysis by declaring finance function using
flex grid control.
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
Private Type capital
cash As Integer
stock As Integer
overdraft As Integer
creditors As Integer
workingcapital As Integer
End Type
Dim w(10) As capital
Dim i, j As Integer
Dim cols As Integer
Private Sub Command1_Click()
w(i).cash = InputBox("Enter the cash value")
w(i).stock = InputBox("Enter the stock value")
w(i).overdraft = InputBox("Enter the overdraft value")
w(i).creditors = InputBox("Enter the creditors value")
w(i).workingcapital = InputBox("Enter the workingcapital value")
i=i+1
End Sub
End Sub
FORM DESIGN:
OUTPUT:
PROGRAM 7
BREAK EVEN ANALYSIS
AIM:
To design a form to display Break even analysis using line and chart controls by
declaring variables
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
Dim vc As Double
Dim fc As Double
Dim sales As Double
Dim bep As Double
Dim sp As Double
Private Sub Check1_Click()
vc = Val(Text1.Text)
fc = Val(Text2.Text)
sales = Val(Text3.Text)
sp = Val(Text4.Text)
Text5.Text = fc / (sale - vc)
If Check1.Value = 0 Then
Text5.Text = Clear
End If
End Sub
Private Sub Check2_Click()
Text6.Text = sp - vc
If Check2.Value = 0 Then
Text6.Text = Clear
End If
End Sub
Private Sub Check3_Click()
Text7.Text = (sp - vc) / sales * 100
If Check3.Value = 0 Then
Text7.Text = Clear
End If
End Sub
FORM DESIGN:
OUTPUT:
PROGRAM 8
PRODUCT DETAILS
AIM:
To design a form to present product details like purchase , sales and profit etc., by
declaring array function and present the details in richtextbox(RTF)
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
Dim a As Integer
Dim i(3) As Integer
Private Sub command1_click()
RichTextBox1.Text = Label2.Caption & Space(10) & Label3.Caption & Space(15) &
Label4.Caption & Space(15) & Label5.Caption & Space(15) & Chr(10) & Text1.Text & Space(30)
& Text2.Text & Space(30) & Text3.Text & Space(30) & Text4.Text & Space(10)
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
End Sub
Private Sub Command3_Click()
i(0) = Text3.Text
i(1) = Text4.Text
If i(1) > i(0) Then
MsgBox ("profit")
Else
MsgBox ("loss")
End If
End Sub
Case "ENGINEER"
If Val(Text3) > 10000 And Val(Text3) <= 15000 Then
Text4 = Val(Text3) * 0.4
Text5 = Val(Text3) * 0.12
Text6 = Val(Text3) * 0.1
Text7 = Val(Text3) + Val(Text4) + Val(Text5)
Text8 = Val(Text7) - Val(Text6)
flag = False
Else
MsgBox "Input salary between 10k and 15k"
End If
Case "ACCOUNTANT"
If Val(Text3) <= 10000 Then
Text4 = Val(Text3) * 0.3
Text5 = Val(Text3) * 0.12
Text6 = Val(Text3) * 0.1
Text7 = Val(Text3) + Val(Text4) + Val(Text5)
Text8 = Val(Text7) - Val(Text6)
flag = False
Else
MsgBox "Input salary <= 10k"
End If
End Select
If flag Then
Adodc1.Recordset.Update
MsgBox "employee details saved successfully"
End If
End Sub
FORM DESIGN
OUTPUT
PROGRAM -11
HIGHLIGHTS OF BUDGETING
AIM:
To design a form to display the highlights of budget using option button and animation.
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
OUTPUT:
PROGRAM -12
SUPERMARKET BILL
AIM:
To design a form to display sales invoice bill using data control ,check box, option button
etc.,
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
OUTPUT:
PROGRAM -13
BANK CUTOMER DATABASE
AIM:
To design a form to display bank customer database using data control.
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
OUTPUT:
PROGRAM -14
INVENTORY CONTROL
AIM:
To design a form to calculate minimum, maximum, reorder, reorder quantity, EOQ and
display the inventory control records using data objects
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
Private Sub Command1_Click()
Text13.Text = Val(Text2.Text) * Val(Text4.Text)
Text14.Text = (Val(Text13.Text) + Val(Text5.Text)) - (Val(Text1.Text) * Val(Text3.Text))
Text15.Text = Val(Text13.Text) - (Val(Text9.Text) / Val(Text10.Text) * Val(Text11.Text) /
Val(Text12.Text))
Text16.Text = Math.Sqr(2 * (Val(Text6.Text) * Val(Text7.Text) / Val(Text8.Text)))
End Sub
OUTPUT:
PROGRAM -15
DIRECTORY FILES AND FOLDERS
AIM:
To design a form to display tree view and list of folders and files from a directory of an
organization
ALGORITHM:
STEP1: Start All programs MS Visual Basic 6.0
STEP:2 Select the Standard EXE file and start the process
STEP:3 Save the project and form
STEP:4 Design a form using the appropriate controls in the toolbox
STEP:5 In the coding window, enter the coding for the controls and to run the program click
ctrl+F5
STEP:6 Save the process
CODING:
OUTPUT:
WEB PAGE USING FRAMES
EX:NO:
DATE:
AIM:
ALGORITHM:
CODING:
TCS.1
<html>
<head>
<title>TATA</title>
</head>
<h3><u>ABOUT</u></h3>
<h3><u>SERVICES</u></h3><br>
<h3><u>NO OF EMPLOYESS</u></h3><br>
6,14,795
</p>
</body>
</html>
STEEL.2
<html>
<head>
<title>TATA</title>
</head>
<h3><u>ABOUT</u></h3>
<p>It is an Indian multinational company with annual rude steel capacity of 34 million to tones per
year<br>
<h3><u>PRODUCTS</u></h3><br>
<h3><u>NO OF EMPLOYEES</u></h3><br>
32,364
</p>
</body>
</html>
MOTORS.3
<html>
<head>
<title>TATA</title>
</head>
<h1>TATA MOTORS</h1>
<h3><u>ABOUT</u></h3>
<p> It is an Indain multinational company.they are the India's market leaders in commercial vecicles
& amongst the top three passenger vehicles market.
<br>
<h3><u>PRODUCTS</u></h3><br>
<h3><u>NO OF EMPLOYEES</u></h3><br>
78,906
</p>
</body>
</html>
FRAMESET
<html>
<head>
<title>FRAMESET</title>
</head>
</frameset>
</html>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.
DEPARTMENT STORE
EX.NO:
DATE:
AIM:
ALGORITHM:
CODING:
<html>
<head>
<title>DEPARTMENTAL STORE</title>
</head>
<h1><b><fontcolor = "red"><center>
<h4><u>LIST OF PRODUCTS</u></h4>
<li>Vegetables</li>
<li>Fruits</li>
<li>cosmetics</li>
<li>Household goods</li>
</ol>
<h4><u>Discount</u></h4>
<ul>
</ul>
</body>
</html>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.
ADVERTISMENT OF COMPANY PRODUCTS
EX:NO:
DATE:
AIM:
TO PROGRAM TO DISPLAY IMAGE AND TEXT USING HTML TAG FOR AN ADVERTISMENT
OF A COMPANY PRODUCT.
ALOGRITHM:
CODING:
<HTML>
<HEAD>
<TITLE>ADVERTSMENT</TITLE>
</HEAD>
<H1=<"CENTER">COFFEE DAY</H1>
<BODY BGCOLR="aaddff"TEXT"black">
<BR>
<BR><UL>
</UL>
<P>Aspecal coffe also a available for the DIABITICES PEOPLE to with SWEETY &TESTEY.
</BODY>
</HTML>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.
LIST OF PRODUCTS
EX:NO:
DATE:
AIM:
ALGORITHM:
CODING:
<html>
<head>
<title>LIST OF PRODUCTS</title>
</head>
<body bgcolor="pink"text="black">
<center><h1>CUSTOMER LIST</h1>
<table border="8"cellwidth="10"cellpad="10">
<TR><TD>NAME</TD>
<TD>PRICE</TD>
<TD>QUANDITY</TD></TR>
<TR><TD>BLACK BERRY</TD>
<TD>26500</TD>
<TD>5</TD></TR>
<TR><TD>IPHONE</TD>
<TD>45000</TD>
<TD>5</TD></TR>
<TR><TD>SAMSUNG</TD>
<TD>20000</TD>
<TD>15</TD></TR>
<TR><TD>LG</TD>
<TD>10000</TD>
<TD>5</TD></TR>
</CENTER>
</body>
</html>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.
SALES LETTER
EX:NO:
DATE:
AIM:
ALGORITHM
CODING:
<HTML>
<HEAD>
<TITLE>SALES LETTER</TITLE>
</HEAD>
<BODY BGCOLOR="GREEN""TEXT="BLACK">
<H4>X&CO<BR>
D-26,HEAVENS VILLA,<BR>
ROAD TO PARADISE,<BR>
COIMBATORE-641 007<BR>
</H4></RIGHT>
</BODY>
</HTML>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.
RESUME
EX:NO:
DATE:
AIM:
ALGORITHM:
CODING:
<html>
<head>
<title>RESUME</title>
<body bgcolor="lightgreen"text="black">
<center><h1>RESUME</h1></center>
<hr size="3"><br><form>
NAME:<CENTER>
</CENTER><BR>
AGE:<CENTER>
AGE(FORM.AGE)">
</CENTER><BR>
ADDRESS:<CENTER>
<TEXTAREA ROW="10"COLS"20"NAME="ADDRESS"></TEXTAREA>
</CENTER><BR>
CELL NO:<CENTER>
</CENTER><BR>
<CENTER>
</CENTER><BR>
<CENTER>
</CENTER>
</form>
</body>
</html>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.
WEB SITE
EX:NO:
DATE:
AIM:
ALGORITHM:
CODIND:
<html>
<head>
<title>DEPARTMENT</title>
</head>
<body bgcolor="lightblue">
<center>
<h4>PERUR COIMBATORE-641010
</center>
</body>
</html>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.
7.2.WEBSITE
CODING:
<HTML>
<HEAD>
<TITLE>DEPERTMENT</TITLE>
</HEAD>
<BODY BGCOLOR="LAVENTER"TEXT="BLACK>
</MARQUEE><CENTER><H3><U>
<CENTER><BR><BR>
</CENTER></CENTER>
<A HREF="HOMEPAGE.HTML">BACK</A>
</BODY>
</HTML>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT
HAS BEEN VERIFIED.
7.3.WEBSITE
CODING:
<html>
<head>
<title>DEPARTMENT</title>
</head>
<body bgcolor="lavender">
<u><center><h1>
COURSE OFFERED
</h1><br><br>
<ol>
<li>B.COM(CA)</li>
</ol>
<br>
<A HREF=DEPARTMENRT.HTML">BACK!</A>
</body>
</html>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT
HAS BEEN VERIFIED.
7.4.WEBSITE
CODING:
<html>
<head>
<title>STUDENT DETAILS</title>
</head>
<body bgcolor="lavender">
<center><u><h1>
STUDENT DETAIL
</h1></u><hr><br>
<font size="5">
<ul>
<li>GIRLS-150</li>
<li>BOYS-70</li>
</ul>
</font>
<A HREF="DEPARTMENT.HTML">BACK!</A>
</body>
</html>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.
7.5.WEBSITE
CODING:
<html>
<head>
<title>EXTRA COURSE</title>
</head>
<body bgcolor="lightblue"text="black">
<u><center><h1>
</h1></center></u>
<hr><br><br>
<font size="4">
THE DEPARTMENT ALSO PROVIDES DIPLOMA COURSES APART FROM THE DEGREE PROVIDED.
<br>
<ol>
<li>COMMERCIAL LAW</li>
<li>COMPANY LAW</li>
<li>BANKING LAW</li>
<li>CYBER LAW</li>
</ol>
<br>
<A HREF="HOMEPAGE.HTML">BACK!</A>
</body>
</html>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.
ORDER FORM
EX:NO:
DATE:
AIM:
ALGORITHM:
CODING:
<html>
<body bgcolor="lightgreen">
<form>
<select NAME="item"">
</center></select>
<select NAME="QTY">
<option value="1">ONE
<option value="2">TWO
<option value="3">THREE
</select><br><br>
<input type="submit"value="submit"
onclick="TOTALORDER(THIS.FORMS)">
</form>
</body>
</html>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.
CUSTOMER SURVE FROM
EX:NO:
DATE:
AIM:
TO CREATE A FORM OF THE CUSTOMER SURVEY FOR THE USER TO ENTER GENERAL
NAME AND ADDRESS INFORMATION.
ALGORITHM:
CODING:
<html>
<head>
<title>custemer survey</title>
</head>
<hr><br><form>
NAME:<center>
<Input type="Text"
NAME="NAME"ONBLUR="CHECKNAME(FORM.NAME)"></center><br>
AGE:<center>
<Input
Type="TEXT"AGE="20"MAXLENGTH="3"ONBLUR-CHECKAGE(FORM.AGE)"></center><br>
ADDRESS:<center><TEXTAREA NAME="ADDRESS"></TEXTAREA
NAME="ADDRESS"></TEXTAREA></center><br>
GENDER:<center>
<Input type="RADIO"NAME="OPTN"VALUE="MALE">MALE<Input
type="RADIO"NAME="OPTN"VALUE="FEMALE">FEMALE</center><br>
<center>
<Input type="SUBMIT"value="SUBMIT"ONCLICK="CHECK(THIS.FORM)">
<Input type="RESET"value="RESET"ONCLICK=""RESET(THIS.FORM)">
</center>
</form>
</body>
</html>
OUTPUT:
RESULT:
EX:NO:
DATE:
AIM:
ALGORITHM:
CODING:
<html>
<head>
<title>MULTIPLE FORM</title>
</head>
<FRAMESET COLS="30%,40%,30%">
<Frame src="sri-6.html">
<Frame src="sri-8.html">
<Frame src="sri-9.html">
</FRAMESET>
</html>
OUTPUT:
RESULT:
THUS ABOVE CODING HAS BEEN SUCCESSFULLY EXECUTED AND THE OUTPUT HAS
BEEN VERIFIED.