You are on page 1of 96

SRINIVASAN ENGINEERING COLLEGE

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


ANNA UNIVERSITY-CHENNAI
REGULATION 2008
IV CSE (2010-2014)

CS1402
SOFTWARE DEVELOPMENT LABORATORY
LAB MANUAL

PREPARED BY
S.SARAVANA KUMAR, Assistant Professor.
R.SARANYA, Assistant Professor.

PREFACE
This laboratory manual is prepared by the Department of Computer Science and
engineering for Software Development Laboratory(CS1402). This lab manual can be used
as instructional book for students, staff and instructors to assist in performing and
understanding the experiments. This manual will be available in electronic form from
Colleges official website, for the betterment of students.

ACKNOWLEDGEMENT
With great pleasure and deep sense of gratitude, we take this opportunity to
express my hearty thanks and deep regards to the support offered by the chairman Shri.
A.Srinivasan.
We also take this opportunity to express a deep sense of gratitude to our
Principal Dr.B.Karthikeyan, for his valuable information and guidance, which helped
me in completing this task through various stages.
We extend our hearty thanks to our head of the department S.JAYANTHI for
her constant encouragement and constructive comments.
Finally the valuable comments from fellow faculty and assistance provided by
the department are highly acknowledged. We would like to thank everyone who helped
us at various stages in completing this work.
Last but not least we express our heartfelt thanks to Lord Almighty for being
there when we needed him most always.

CS1402 SOFTWARE DEVELOPMENT LABORATORY


OBJECTIVE :
To emphasize on software industry practices to acquire the knowledge about software
development. Take up a software development project of your choice and
systematically carry-out all the phases of Software Development Life Cycle (SDLC).
Do the necessary documentation at each stage. Use your own choice of case tools.

In order to carry out the below mentioned project use appropriate Front end and Back end
tools:
1. Student Marks Analyzing System.
2. Online stock trading.
3. Airport management.
4. Bio-informatics.
5. Hospital management.
6. Internet-based multi-user online games.
7. Programmer's editor with syntax-based coloring.
8. Quiz System
9. ATM System
10. Library of computer security related algorithms.

Ex:No:1

PROGRAMMER EDITOR WITH SYNTAX-BASED


COLOURING

INDRODUCTION:
The Project Program-Editor With Syntax Based Coloring is done in order to
differentiate ordinary text with that of the Programming elements in C and C++.
SYSTEM STUDY AND ANALYSIS:
PROBLEM DEFINITION:
The main idea of problem analysis is collecting data on the existing system and
performing critical documentation of the data to factor our relevant information.
The problem analysis is conducted with the following objectives
Create or open or save a file.
Edit the file.
Format the file.
.Help content.
Color Editor
EXISTING SYSTEM:
The existing text editor was used to create the file then edit and format it. It did
not have text based coloring option .They were somewhat complex to handle.
PROPOSED SYSTEM:
The proposed text pad is user friendly software. The user can easily understand
the options provided in the text pad if he knows some basic operations in the text editor.
This text pad provides text based coloring.

HARDWARE REQUIREMENT
CPU

: HP

PROCESSOR SPEED

:2.80GHz/1066MHz

MEMORY

:2GB RAM

HARD DISK

:250GB

MONITOR

:HP 18.5

SOFTWARE REQUIREMENTS:
Operating System : Windows 7 Home Premium
Packages

: Microsoft Visual studio 2007

SYSTEM DESIGN:
According to Webster, the process of design involves conceiving and planning
out in the mind and making a drawing , pattern or sketch of the software product.
Design involves the following,
System Design
CODING:
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Text.RegularExpressions;
using System.IO;
namespace ColorSyntaxEditor
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private FlickerFreeRichEditTextBox richTextBox1;
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem OpenMenu;
private System.Windows.Forms.MenuItem SaveMenu;
private System.Windows.Forms.MenuItem PrintPreviewMenu;
private System.Windows.Forms.MenuItem PrintMenu;
private System.Windows.Forms.MenuItem ExitMenu;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
private System.Windows.Forms.PrintPreviewDialog printPreviewDialog1;
private System.Drawing.Printing.PrintDocument printDocument1;
private bool populating = true;

private System.Windows.Forms.MenuItem menuItem2;


private System.Windows.Forms.MenuItem menuItem3;
private IContainer components;
private SyntaxReader TheSyntaxReader;
private Color kCommentColor = Color.Green;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
this.MakeColorSyntaxForAllText(richTextBox1.Text);
TheSyntaxReader = new SyntaxReader("c.syntax");
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components);
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.OpenMenu = new System.Windows.Forms.MenuItem();
this.SaveMenu = new System.Windows.Forms.MenuItem();
this.PrintPreviewMenu = new System.Windows.Forms.MenuItem();
this.PrintMenu = new System.Windows.Forms.MenuItem();
this.ExitMenu = new System.Windows.Forms.MenuItem();

this.menuItem2 = new System.Windows.Forms.MenuItem();


this.menuItem3 = new System.Windows.Forms.MenuItem();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
this.richTextBox1 = new ColorSyntaxEditor.FlickerFreeRichEditTextBox();
this.SuspendLayout();
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1,
this.menuItem2});
//
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.OpenMenu,
this.SaveMenu,
this.PrintPreviewMenu,
this.PrintMenu,
this.ExitMenu});
this.menuItem1.Text = "File";
//
// OpenMenu
//
this.OpenMenu.Index = 0;
this.OpenMenu.Text = "Open";
this.OpenMenu.Click += new System.EventHandler(this.OpenMenu_Click);
//
// SaveMenu
//
this.SaveMenu.Index = 1;
this.SaveMenu.Text = "Save";
this.SaveMenu.Click += new System.EventHandler(this.SaveMenu_Click);
//
// PrintPreviewMenu
//
this.PrintPreviewMenu.Index = 2;
this.PrintPreviewMenu.Text = "Print Preview...";
this.PrintPreviewMenu.Click += new
System.EventHandler(this.PrintPreviewMenu_Click);
//
// PrintMenu
//
this.PrintMenu.Index = 3;
this.PrintMenu.Text = "Print";
//
// ExitMenu

//
this.ExitMenu.Index = 4;
this.ExitMenu.Text = "Exit";
this.ExitMenu.Click += new System.EventHandler(this.ExitMenu_Click);
//
// menuItem2
//
this.menuItem2.Index = 1;
this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem3});
this.menuItem2.Text = "Edit";
//
// menuItem3
//
this.menuItem3.Index = 0;
this.menuItem3.Text = "Refresh..";
this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
//
// openFileDialog1
//
this.openFileDialog1.Title = "Open Code File";
//
// saveFileDialog1
//
this.saveFileDialog1.FileName = "doc1";
this.saveFileDialog1.Title = "Save Code File";
//
// printPreviewDialog1
//
this.printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0);
this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
this.printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300);
this.printPreviewDialog1.Document = this.printDocument1;
this.printPreviewDialog1.Enabled = true;
this.printPreviewDialog1.Icon =
((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
this.printPreviewDialog1.Name = "printPreviewDialog1";
this.printPreviewDialog1.Visible = false;
//
// printDocument1
//
this.printDocument1.PrintPage += new
System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage);
//
// richTextBox1
//
this.richTextBox1.Font = new System.Drawing.Font("Times New Roman", 11.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.richTextBox1.Location = new System.Drawing.Point(3, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1458, 736);

this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
this.richTextBox1.TextChanged += new
System.EventHandler(this.richTextBox1_TextChanged);
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(1238, 663);
this.Controls.Add(this.richTextBox1);
this.Menu = this.mainMenu1;
this.Name = "Form1";
this.Text = "Color Syntax Editor";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
struct WordAndPosition
{
public string Word;
public int Position;
public int Length;
public override string ToString()
{
string s = "Word = " + Word + ", Position = " + Position + ", Length = " + Length +
"\n";
return s;
}
};

WordAndPosition[] TheBuffer = new WordAndPosition[4000];


private bool TestComment(string s)
{
string testString = s.Trim();
if ( (testString.Length >= 2) &&
(testString[0] == '/')
&&
(testString[1] == '/')
)

return true;
return false;
}
private int ParseLine(string s)
{
TheBuffer.Initialize();
int count = 0;
Regex r = new Regex(@"\w+|[^A-Za-z0-9_ \f\t\v]",
RegexOptions.IgnoreCase|RegexOptions.Compiled);
Match m;
for (m = r.Match(s); m.Success ; m = m.NextMatch())
{
TheBuffer[count].Word = m.Value;
TheBuffer[count].Position = m.Index;
TheBuffer[count].Length = m.Length;
//
Console.WriteLine("Next Word = " + m.Value);
count++;
}
return count;
}
private Color Lookup(string s)
{
Color theColor = Color.Black;
if (TheSyntaxReader.IsFunction(s))
{
theColor = Color.DarkRed;
}
if (TheSyntaxReader.IsKeyword(s))
{
theColor = Color.Blue;
}
return theColor;
}
private void richTextBox1_TextChanged(object sender, System.EventArgs e)
{
if (populating)
return;
ColorSyntaxEditor.FlickerFreeRichEditTextBox._Paint = false;
MakeColorSyntaxForCurrentLine();
ColorSyntaxEditor.FlickerFreeRichEditTextBox._Paint = true;
}
private void MakeColorSyntaxForCurrentLine()

{
int CurrentSelectionStart = richTextBox1.SelectionStart;
int CurrentSelectionLength = richTextBox1.SelectionLength;
// find start of line
int pos = CurrentSelectionStart;
while ( (pos > 0) && (richTextBox1.Text[pos-1] != '\n'))
pos--;
int pos2 = CurrentSelectionStart;
while ( (pos2 < richTextBox1.Text.Length) &&
(richTextBox1.Text[pos2] != '\n') )
pos2++;
string s = richTextBox1.Text.Substring(pos, pos2 - pos);
if (TestComment(s) == true)
{
richTextBox1.Select(pos, pos2-pos);
richTextBox1.SelectionColor = kCommentColor;
}
else
{
string previousWord = "";
int count = ParseLine(s);
for (int i = 0; i < count; i++)
{
WordAndPosition wp = TheBuffer[i];
// check for comment
if (wp.Word == "/" && previousWord == "/")
{
// color until end of line
int posCommentStart = wp.Position - 1;
int posCommentEnd = pos2;
while (wp.Word != "\n" && i < count)
{
wp = TheBuffer[i];
i++;
}
i--;
posCommentEnd = pos2;
richTextBox1.Select(posCommentStart + pos, posCommentEnd - (posCommentStart +
pos));
richTextBox1.SelectionColor = this.kCommentColor;
}
else
{

Color c = Lookup(wp.Word);
richTextBox1.Select(wp.Position + pos, wp.Length);
richTextBox1.SelectionColor = c;
}
previousWord = wp.Word;
}
}
if (CurrentSelectionStart >=0)
richTextBox1.Select(CurrentSelectionStart, CurrentSelectionLength);
}

private void MakeColorSyntaxForAllText(string s)


{
populating = true;
int CurrentSelectionStart = richTextBox1.SelectionStart;
int CurrentSelectionLength = richTextBox1.SelectionLength;
int count = ParseLine(s);
string previousWord = "";
for (int i = 0; i < count; i++)
{
WordAndPosition wp = TheBuffer[i];
// check for comment
if (wp.Word == "/" && previousWord == "/")
{
// color until end of line
int posCommentStart = wp.Position - 1;
int posCommentEnd = i;
while (wp.Word != "\n" && i < count)
{
wp = TheBuffer[i];
i++;
}
i--;
posCommentEnd = wp.Position;
richTextBox1.Select(posCommentStart, posCommentEnd - posCommentStart);
richTextBox1.SelectionColor = this.kCommentColor;
}
else
{
Color c = Lookup(wp.Word);
richTextBox1.Select(wp.Position, wp.Length);
richTextBox1.SelectionColor = c;

}
previousWord = wp.Word;
//
}

Console.WriteLine(wp.ToString());

if (CurrentSelectionStart >=0)
richTextBox1.Select(CurrentSelectionStart, CurrentSelectionLength);
populating = false;
}
private void ExitMenu_Click(object sender, System.EventArgs e)
{
Application.Exit();
}
private void OpenMenu_Click(object sender, System.EventArgs e)
{
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
populating = true;
FileStream fs = new FileStream(openFileDialog1.FileName, FileMode.Open,
FileAccess.Read);
StreamReader sr = new StreamReader(fs);
string s = sr.ReadToEnd();
sr.Close();
fs.Close();
richTextBox1.Text = s;
richTextBox1.SelectAll();
richTextBox1.Refresh();
ColorSyntaxEditor.FlickerFreeRichEditTextBox._Paint = false;
MakeColorSyntaxForAllText(richTextBox1.Text);
ColorSyntaxEditor.FlickerFreeRichEditTextBox._Paint = true;
}
}
private void SaveMenu_Click(object sender, System.EventArgs e)
{
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
FileStream fs = new FileStream(saveFileDialog1.FileName, FileMode.OpenOrCreate,
FileAccess.Write);
StreamWriter sw = new StreamWriter(fs);
sw.Write(richTextBox1.Text);
sw.Close();
fs.Close();

}
}
private void PrintPreviewMenu_Click(object sender, System.EventArgs e)
{
if (printPreviewDialog1.ShowDialog() == DialogResult.OK)
{
}
}
private int DrawEditControl(Graphics g, int lastChar)
{
// draw the control by selecting each character and deterimining its color
int xPos = 10;
int yPos = 40;
int kMargin = 50;
for (int c = lastChar; c < richTextBox1.Text.Length; c++)
{
richTextBox1.Select(c,1);
char nextChar = richTextBox1.Text[c];
Color theColor = richTextBox1.SelectionColor;
Font theFont = richTextBox1.SelectionFont;
int height = theFont.Height;
if (nextChar == '\n')
{
yPos += (height + 3); // add to height on return characters
xPos = 10;
int paperHeight =
printDocument1.PrinterSettings.DefaultPageSettings.PaperSize.Height;
if (yPos > paperHeight - kMargin)
return c;
}
else if ((nextChar == ' ') || (nextChar == '\t'))
{
xPos += theFont.Height/2;
}
else
{
// match the words for same color
Regex r = new Regex(@"\w", RegexOptions.IgnoreCase|RegexOptions.Compiled);
Match m;
string nextWord = "";
bool reduceAtEnd = false;
m = r.Match(nextChar.ToString());
if (m.Success)
reduceAtEnd = true;
else
nextWord = nextChar.ToString();

while (m.Success)
{
nextWord += nextChar;
c++;
nextChar = richTextBox1.Text[c];
m = r.Match(nextChar.ToString());
}
if (reduceAtEnd)
{
c--;
}
g.DrawString(nextWord, theFont, new SolidBrush(theColor), xPos, yPos);
SizeF thesize = g.MeasureString(nextWord, theFont);
xPos += (int)thesize.Width - 6;
}
}
return -1;
}
private int lastChar = 0;
private void printDocument1_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
Graphics g = e.Graphics;
lastChar = DrawEditControl(g, lastChar);
if (lastChar != -1)
e.HasMorePages = true;
else
{
e.HasMorePages = false;
lastChar = 0;
}
}
private void menuItem3_Click(object sender, System.EventArgs e)
{
MakeColorSyntaxForAllText(richTextBox1.Text);
}
private void Form1_Load(object sender, EventArgs e)
{
}

PROGRAMMER EDITOR WITH SYNTAX-BASED COLOURING


FORMDESIGN:

OUTPUT

SOFTWARE TESTING:
The philosophy of the testing is to mind the errors .Text cases are devised with purpose
in mind .A text case is a set of data that the system will process at normal input;
however the data are created with the express intent of determining whether the system
will process them correctly. The two testing strategies are,
Code testing
Specification testing
Regardless of which strategy is followed, the following levels of tests are preferred.

UNIT TETING:
The programs that make up a system are tested in testing.
Unit testing focuses first on the modules, independently of one another to
locate the errors.
Unit testing is performed from the bottom up, starting with the smallest and
lowest level modules and proceeding one at a time.
Once the bottom level modules are tested, the next levels that use the lower
SYSTEM TESTING:
System testing is done to find discrepancies between the system and its original
objective, current specification and system documentation.
INTEGRATION TESTING:
Integration testing is a systematic testing for constructing the program
structure while at the same time conducting tests to uncover errors
associated within the interface.
Asking the users about the format required by them tests the output
Generated or displayed by the system under consideration.
Output testing has not resulted in many corrections in the system.
CONCLUSION:
Thus the text editor with syntax based coloring has been successfully implemented and
tested.

Ex:No:2

INTERNET BASED MULTIUSER ONLINE GAMES

INTRODUCTION
Memory game is designed for two people. Pictures are laid out in grid face down
and players take turns flipping pair of pictures over. On each turn the player will first
turn one picture over, then a second. If the two pictures match, the player scores one
point, the two pictures are removed from the game and the player gets another turn. If
they do not match, the cards are turned back over.

SYSTEM STUDY AND ANALYSIS


PROBLEM DEFINITION

The object is to match more pairs of cards than the opposing player. One point is
scored for each matched pair and the player with the highest score after all pictures have
been matched wins. When pictures are turned over, it is important to remember where
they are for when the matching card is turned up later in the game.

EXISTING SYSTEM
In the existing system the probability of error occurring is very high. The details
generated are not satisfied to user requirements.

PROPOSED SYSTEM
It eliminates the problem of existing system. The system has been developed
using Visual Basic. The system is planned to provide more details and to satisfy the
customer requirements.

The form details are as follow:


Score details
Game design
Status of the game

HARDWARE REQUIREMENT
CPU

: HP

PROCESSOR SPEED

:2.80GHz/1066MHz

MEMORY

:2GB RAM

HARD DISK

:250GB

MONITOR

:HP 18.5

SOFTWARE REQUIREMENT
OPERATING SYSTEM

: Windows XP

PACKAGE

: Microsoft Visual Studio 6.0

SOFTWARE TESTING
The philosophy of the testing is the error. Test cases are devised with purpose in
mind. A test case is a set of data that the system will process at normal input, however
the data are created with the express intent of determining whether the system will
process them correctly.
The two testing strategies are,
Code Testing
Specification Testing

Regardless of which strategy is followed, the following levels of tests are


preferred.

UNIT TESTING
The programs that make up a system are tested in unit testing.
Unit testing focuses first on the modules; independently of one
another to locate the errors.
Unit testing is performed from the bottom up, starting whether the
smallest and lowest level modules and proceeding one at a time.
Once the bottom level modules are tested, the next levels that use the
lower level ones are tested.

SYSTEM TESTING

System testing is done to find the discrepancies between the system and each
original objective, current specification and system documentation.

INTEGRATION TESTING
Integration testing is a systematic testing for construction the program
structure while at the same time conduction itself test to uncover
errors associated within the interface.
Asking the users about the formal required by them tests the output
generated or displayed by the system under consideration.
Output testing has not resulted in many corrections in the system.
The inventory system has undergone testing using the above testing
technique.
The unit testing, integration testing and system testing are carried out
and the system is found satisfactorily.

CODING

Dim i, a, x, z, w As Integer
Dim correct, wrong As Integer
Private Sub Form_Load()
correct = 0
wrong = 0
For i = 0 To 17
k=0
Do Until k = 1
Randomize
a = Rnd() * 35
If Me.Picture1(a).Picture = none Then
Me.Picture1(a).Picture = Me.Picture2(i).Picture
k=1
End If
Loop
Next i
For i = 0 To 17
k=0
Do Until k = 1

Randomize
a = Rnd() * 35
If Me.Picture1(a).Picture = none Then
Me.Picture1(a).Picture = Me.Picture2(i).Picture
k=1
End If
Loop
Next i
x=0
End Sub
Private Sub new_Click()

Call init

For i = 0 To 17
k=0
Do Until k = 1
Randomize
a = Rnd() * 35
If Me.Picture1(a).Picture = none Then
Me.Picture1(a).Picture = Me.Picture2(i).Picture
k=1
End If
Loop
Next i
For i = 0 To 17
k=0
Do Until k = 1
Randomize
a = Rnd() * 35
If Me.Picture1(a).Picture = none Then
Me.Picture1(a).Picture = Me.Picture2(i).Picture
k=1
End If

Loop
Next i
End Sub
Private Sub Picture3_Click(Index As Integer)
If Me.Picture3(Index).Picture <> none Then Exit Sub
For i = 0 To 35
If Me.Picture3(i).Picture <> none Then
Me.Picture3(i).Picture = Picture6.Picture
End If
Next i
If x = 0 Then
Me.Picture3(Index).Picture = Me.Picture1(Index).Picture
z = Index
Me.Picture4.Picture = Me.Picture3(z).Picture
x=1
Exit Sub
End If
If x = 1 Then
Me.Picture3(Index).Picture = Me.Picture1(Index).Picture
w = Index
Me.Picture5.Picture = Me.Picture3(w).Picture
x=0
If Me.Picture4.Picture = Me.Picture5.Picture Then
Me.Picture3(z).Visible = False
Me.Picture3(w).Visible = False
correct = correct + 1
Me.Label1.Caption = correct
Else
Me.Picture4.Picture = Picture6.Picture
Me.Picture5.Picture = Me.Picture6.Picture
wrong = wrong + 1
Me.Label2.Caption = wrong
End If
Exit Sub

End If
End Sub
Private Sub init()
For i = 0 To 35
Me.Picture1(i).Picture = Me.Picture6.Picture
Me.Picture3(i).Visible = True
Next i
x=0
correct = 0
wrong = 0
End Sub

ONLINE GAME
FORM DESIGN

OUTPUT

CONCLUSION
This project GAMES(ME-MO-RY cards) check the human memory
effectively. The score is displayed as correct and wrong phases. The correct phase
denotes the matched pairs and wrong phase denotes the number of times the pictures are
flipped over. After all the pictures are opened successfully, the players turn is finished
and the next player starts the new game.

Ex:No:3
Date:
INTRODUCTION:

AIRPORT MANAGEMENT

The project AIRPORT MANAGEMENT is done in order to


computerize the flight ticketing for passengers. It focus on higher availability. By using
this project. We can make quicker reservation and cancellations of flight tickets.

In this project we have used Microsoft Visual Basic 6.0 as the programming
language because it enhances the user-friendliness and provides an improved
presentation on the front end. The data base has been selected as MS-Access due to its
capability of handling large volumes of data spread across several database and users.

SYSTEM STUDY AND ANALYSIS:


PROBLEM DEFINITION:
The main idea of problem analysis is collection data on the existing system
and performing critical documentation of the data to factor our relevant information.

The problem analysis is conducted with the following objective.

Passenger identification

Details of the flight

Reservation for a ticket

Cancellation of a ticket

EXISTING SYSTEM:
The reservation for a ticket is currently done manually. This is the very time
consuming process and complicated. In the existing system the probability of occurring
error is very high. There is high probability for the data stored to be lost and there is no
secrecy for the customer detail. The details generated are not satisfied to user
requirements.

PROPOSED SYSTEM:
It is fully computerized. So it eliminates the problem of existing system. The
system has been developed using Visual Basic as Front end and MS Access as Back end.
The system is planned to provide more report and also to satisfy for customer
requirements.

The form details are as follows:

Ticket booking

Flight details

Ticket cancellation

HARDWARE REQUIREMENTS:
CPU

:HP

Processor Speed

:2.80GHZ

Memory

:2GB RAM

Hard Disk

:250GB

Monitor

:HP 18.5

SOFTWARE REQUIREMENTS:
Operating System

:Windows XP

Packages

:Microsoft Visual Basic 6.0

SYSTEM DESIGN:
According to Webster, the process of design involves conceiving and planning
out in the mind and making a drawing, pattern or sketch of the software product.
Design involves the following,

System Design

Database Design

1) SYSTEM DESIGN:
System design involves translating system requirements and conceptual design
into technical specifications and general flow of processing. After the system
requirements have been identified, information has been gathered to verify the problem,
and after evaluating the existing system is proposed.

RESERVATION:
When the details of the passenger are specified the ticket can be booked in
prior. This can avoid traveling in the rush and given the passenger a safer journey.
CANCELATION:
When the Ticket number is given the corresponding ticket can be cancelled .The
details are checked with those in the database and only if found matching the
corresponding ticket will be cancelled.
FLIGHT DETAILS:
On going the flight number the chart that display the timings, source and
destination of the various trains available is displayed from where the passenger may
choose the flight of this interest.
INPUT DESIGN:
The input for this project are name, age, sex, address, class, no of tickets, source,
destination, ticket number and flight number.
OUTPUT DESIGN:
The output for this project is information regarding the flight details, reservation
of Tickets and cancellation of tickets.
2) DATABASE DESIGN:
The process of creating the database involves the following steps:

Defining the scope of the database.


Determining the fields required to support the database.
Dividing the fields into a set order acceptance tables.
Establishing relation among tables.

Passenger Details Table:


FIELD NAME
NAME
AGE
ADDRESS
CLASS

TYPE
TEXT
INTEGER
TEXT
TEXT

NO.OF.TICKET
SOURCE
DESTINATION
TICKET NUMBER
FLIGHT NUMBER

INTEGER
TEXT
TEXT
INTEGER
INTEGER

DATA FLOW DIAGRAM:


As information moves through software, it is modified to be a series of
transaction. A Data Flow Diagram (DFD) is a graphical technique that depicts
information flow and the Transaction that are applied as data flow graph of
bubble chart.

FLIGHT
DETAILS

MASTER
RESERVE
TICKETS

CANCEL
TICKETS

The DFD may be used to represent a system or software at any level of


Abstraction. A level 0 DFD, also calls a fundamental system model or context model
represents the entire software elements as single bubble with input and output
data indication by incoming and outgoing arrows respectively. A level 1 DFD might
contain five or six bubble with inter-connection arrows. Each of the process represented
at level 1 is sub function of overall system depicted in context model.

In a DFD ,a

rectangle is used to represent an external entity, i.e. system element of another system
that produces information for transformation by the software or receives information
produced by the software.

A circle represents a process or transform that is applied of data anin someway.


An arrow represents one or more data items. All arrow represents one or more data
items. All arrows should be labeled. The double line represents the data storage the
stored information that is used by the software.

SOFTWARE TESTING:
The philosophy of the testing is to find the errors. Test cases are devised with
purpose in mind .A test case is a set of data that the system will process at normal input;
however the data are created with the express intent of determining whether the system
will process them correctly. The two testing strategies are,

Code Testing

Specification Testing

Regardless of which strategy is followed, the following levels of tests are preferred.

UNIT TESTING:

The program that make up a system are tested in unit testing


Unit testing focuses first on the modules ,independently of one another of one
another to locate the error.

Unit testing is performed from the bottom up, starting Whether the smallest and
lowest level modules and proceeding one at a time.

Once the bottom level modules are tested ,the next level that use the lower level
ones are tested.

SYSTEM TESTING:
System testing is done to find discrepancies between the system and its
original objectives, current specification and system documentation.

INTERGRATION TESTING:

Integration testing is a systematic testing for construction the program


structure while at the same time conduction tests to uncover errors associated
within the interface.

Asking the users about the format required by them tests the output generated
or displayed by the system under consideration.

Output testing has not resulted in many correction in the system.

The inventory system has undergone testing using the above testing
techniques

The unit testing ,integration testing and system testing are carried out and the
system is found satisfactorily.

USECASE DIAGRAM:

Passenger details

Train details

Database
Reservation

Monitor
Passenger

Update

Ticket collect

Login

Logout

Officer

ACTIVITY DIAGRAM:

Login web

View Fight
details
Open Reservation
Form
Enter Details

Submit Form

Connecting
with db
Viewer details

Check seat
availability

Cancel ticket

Confirm the
ticket

Log out

CLASS DIAGRAM:

FLIGHT

PASSENGER

FLIGHT NAME
DATE
TIME
PLACE

NAME
AGE
PLACE
GENDER

STORE AND VIEW

GET PASENGER DETAILS()

RESERVATION
flight name
date
time
place

VIEW
flight name
date
time
place

Reserve ticket() View flight details()

UPDATE
flight name
seat alotment
update data()

DATABASE
FLIGHT DETAILS
PASSENGER DETAILS

GET FLIGHT DETAILS()

CODINGS:
FORM1:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim db1 As New ADODB.Connection
Dim rs1 As New ADODB.Recordset
Private Sub Combo1_Click()
rs.MoveFirst
Combo2.Clear
While rs.EOF = False
If Combo1.Text = rs(0) Then
Text1.Text = rs(1)
rs.MoveNext
Else
rs.MoveNext
End If
Wend
rs1.MoveFirst
While rs1.EOF = False
If Combo1.Text = rs1(0) Then
Combo2.AddItem rs1(1)
rs1.MoveNext
Else
rs1.MoveNext
End If
Wend
End Sub
Private Sub Combo2_Click()
rs1.MoveFirst
While rs1.EOF = False
If Combo2.Text = rs1(1) And Combo1.Text = rs1(0) Then
Text2.Text = rs1(2)
Text3.Text = rs1(3)
rs1.MoveNext
Else
rs1.MoveNext
End If
Wend
End Sub
Private Sub Command1_Click()
Form1.Hide
Form2.Show
End Sub
Private Sub Command2_Click()
Form6.Show

End Sub
Private Sub Form_Load()
db.Open
("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\software
development\airport\fldetails.mdb;Persist Security Info=False")
rs.Open "select *from flight", db, adOpenDynamic, adLockOptimistic
db1.Open
("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\software
development\airport\fldetails.mdb;Persist Security Info=False")
rs1.Open "select *from fltimings", db1, adOpenDynamic, adLockOptimistic
rs.MoveFirst
While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End Sub
FORM2:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim db1 As New ADODB.Connection
Dim rs1 As New ADODB.Recordset
Dim db2 As New ADODB.Connection
Dim rs2 As New ADODB.Recordset
Private Sub Combo1_Click()
rs.MoveFirst
Combo2.Clear
While rs.EOF = False
If Combo1.Text = rs(0) Then
Text1.Text = rs(1)
rs.MoveNext
Else
rs.MoveNext
End If
Wend
rs1.MoveFirst
While rs1.EOF = False
If Combo1.Text = rs1(0) Then
Combo2.AddItem rs1(1)
rs1.MoveNext
Else
rs1.MoveNext
End If
Wend
End Sub
Private Sub Combo2_Click()
Combo3.Clear
Dim i As Integer
i=0

rs1.MoveFirst
While rs1.EOF = False
If Combo2.Text = rs1(1) And Combo1.Text = rs1(0) Then
Text2.Text = rs1(4)
i=1
rs1.MoveNext
Else
If i = 1 Then
If Combo1.Text = rs1(0) Then
Combo3.AddItem rs1(1)
End If
rs1.MoveNext
Else
rs1.MoveNext
End If
End If
Wend
End Sub
Private Sub Command1_Click()
Dim i As Integer
rs1.MoveFirst
If Val(Text3.Text) > Val(Text2.Text) Then
MsgBox "seat not available"
Else
While rs1.EOF = False
If Combo1.Text = rs1(0) And Combo2.Text = rs1(1) Then
rs1(4) = rs1(4) - Text3.Text
i=1
rs1.MoveNext
Else
If Combo1.Text = rs1(0) And Combo3.Text = rs1(1) Then
rs1(4) = rs1(4) - Text3.Text
rs1.MoveLast
rs1.MoveNext
Else
If Combo1.Text = rs1(0) And i = 1 Then
rs1(4) = rs1(4) - Text3.Text
rs1.MoveNext
Else
rs1.MoveNext
End If
End If
End If
Wend
End If

If Text3.Text = 1 Then
Form3.Show
Else
If Text3.Text = 2 Then
Form4.Show
Else
If Text3.Text = 3 Then
Form5.Show
rs2(14) = Text4.Text
Else
MsgBox "Reservation only for maximum of three members"
End If
End If
End If
Form3.Text3.Text = Combo2.Text
Form3.Text4.Text = Combo3.Text
Form3.Text5.Text = Combo1.Text
Form4.Text5.Text = Combo2.Text
Form4.Text6.Text = Combo3.Text
Form4.Text7.Text = Combo1.Text
Form5.Text7.Text = Combo2.Text
Form5.Text8.Text = Combo3.Text
Form5.Text9.Text = Combo1.Text
Form2.Hide
End Sub
Private Sub Form_Load()
db.Open
("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\software
development\airport\fldetails.mdb;Persist Security Info=False")
rs.Open "select *from flight", db, adOpenDynamic, adLockOptimistic
db1.Open
("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\software
development\airport\fldetails.mdb;Persist Security Info=False")
rs1.Open "select *from fltimings", db1, adOpenDynamic, adLockOptimistic
db2.Open
("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\software
development\airport\fldetails.mdb;Persist Security Info=False")
rs2.Open "select *from pnr", db, adOpenDynamic, adLockOptimistic
rs.MoveFirst
While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End Sub
FORM3:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim i As Integer

Private Sub Command1_Click()


rs.MoveLast
i = rs(0)
rs.AddNew
rs(0) = i + 1
rs(1) = Text1.Text
rs(2) = Combo1.Text
rs(3) = Text2.Text
rs(10) = Text3.Text
rs(11) = Text4.Text
rs(12) = 1
rs(13) = Form2.Text4.Text
rs(14) = Text5.Text
rs.Update
MsgBox "Tickets got reserved"
Form3.Hide
Form7.Label7.Caption = Form2.Combo1.Text
Form7.Label8.Caption = Form2.Text1.Text
Form7.Label9.Caption = rs(0)
Form7.Label10.Caption = Form2.Combo2.Text
Form7.Label11.Caption = Form2.Combo3.Text
Form7.Show
End Sub
Private Sub Form_Load()
db.Open
("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\software
development\airport\fldetails.mdb;Persist Security Info=False")
rs.Open "select *from pnr", db, adOpenDynamic, adLockOptimistic
Combo1.AddItem "male"
Combo1.AddItem "female"
End Sub
FORM4:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim i As Integer

Private Sub Command1_Click()


rs.MoveLast
i = rs(0)
rs.AddNew
rs(0) = i + 1
rs(1) = Text1.Text
rs(2) = Combo1.Text
rs(3) = Text2.Text
rs(4) = Text3.Text
rs(5) = Combo2.Text
rs(6) = Text4.Text

rs(7) = ""
rs(8) = ""
rs(9) = ""
rs(10) = Text5.Text
rs(11) = Text6.Text
rs(12) = 2
rs(13) = Form2.Text4.Text
rs(14) = Text7.Text
rs.Update
MsgBox "Tickets got reserved"
Form4.Hide
Form7.Label7.Caption = Form2.Combo1.Text
Form7.Label8.Caption = Form2.Text1.Text
Form7.Label9.Caption = rs(0)
Form7.Label10.Caption = Form2.Combo2.Text
Form7.Label11.Caption = Form2.Combo3.Text
Form7.Show
End Sub
Private Sub Form_Load()
db.Open
("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\software
development\airport\fldetails.mdb;Persist Security Info=False")
rs.Open "select *from pnr", db, adOpenDynamic, adLockOptimistic
Combo1.AddItem "male"
Combo1.AddItem "female"
Combo2.AddItem "male"
Combo2.AddItem "female"
End Sub
FORM5:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim i As Integer
Private Sub Command1_Click()
rs.MoveLast
i = rs(0)
rs.AddNew
rs(0) = i + 1
rs(1) = Text1.Text
rs(2) = Combo1.Text
rs(3) = Text2.Text
rs(4) = Text3.Text
rs(5) = Combo2.Text
rs(6) = Text4.Text
rs(7) = Text5.Text
rs(8) = Combo3.Text
rs(9) = Text6.Text
rs(10) = Text7.Text
rs(11) = Text8.Text

rs(12) = 3
rs(13) = Form2.Text4.Text
rs(14) = Text9.Text
MsgBox "Tickets got reserved"
rs.Update
Form5.Hide
Form7.Label7.Caption = Form2.Combo1.Text
Form7.Label8.Caption = Form2.Text1.Text
Form7.Label9.Caption = rs(0)
Form7.Label10.Caption = Form2.Combo2.Text
Form7.Label11.Caption = Form2.Combo3.Text
Form7.Show
End Sub
Private Sub Form_Load()
db.Open
("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\software
development\airport\fldetails.mdb;Persist Security Info=False")
rs.Open "select *from pnr", db, adOpenDynamic, adLockOptimistic
Combo1.AddItem "male"
Combo1.AddItem "female"
Combo2.AddItem "male"
Combo2.AddItem "female"
Combo3.AddItem "male"
Combo3.AddItem "female"
End Sub
FORM6:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim db1 As New ADODB.Connection
Dim seats As Integer
Dim flno As Integer
Dim source As String
Dim dest As String
Dim i As Integer
Dim rs1 As New ADODB.Recordset
Private Sub Command1_Click()
rs.MoveFirst
While rs.EOF = False
If rs(0) = Text1.Text Then
seats = rs(12)
flno = rs(14)
source = rs(10)
dest = rs(11)
rs.Delete
rs.MoveLast
rs.MoveNext
Else
rs.MoveNext

End If
Wend
i=0
While rs1.EOF = False
If flno = rs1(0) And source = rs1(1) Then
rs1(4) = rs1(4) + seats
i=1
rs1.MoveNext
Else
If flno = rs1(0) And dest = rs1(1) Then
rs1(4) = rs1(4) + seats
rs1.MoveLast
rs1.MoveNext
Else
If flno = rs1(0) And i = 1 Then
rs1(4) = rs1(4) + seats
rs1.MoveNext
Else
rs1.MoveNext
End If
End If
End If
Wend
MsgBox "Tickets got canceled"
Form6.Hide
Form1.Show
End Sub
Private Sub Command2_Click()
Form1.Show
End Sub
Private Sub Form_Load()
db.Open
("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\software
development\airport\fldetails.mdb;Persist Security Info=False")
rs.Open "select *from pnr", db, adOpenDynamic, adLockOptimistic
db1.Open
("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\software
development\airport\fldetails.mdb;Persist Security Info=False")
rs1.Open "select *from fltimings", db1, adOpenDynamic, adLockOptimistic
End Sub

FORM OUTPUT:

CONCLUSION:
This project AIRPORT MANAGEMENT solves all the problems faced by
the manual and achieves the goal. The search results are accurate and easily
understandable.
In computerizing the database in any institution was shown as process. First
the fields in the database were filled out using forms. Then they were stored in database.
Then fields in the database were used to generate reports. Thus, the principle of
computerizing database and using them for reports were exhibited.
Thus the benefits of the projects specified here clearly shows that the
developed system has met the initial goal sets its fullest extent possible.

Ex:No:4

BIO INFORMATICS

INTRODUCTION:
Bio informatics was applied in the creation and maintenance of biological
information. The development and implementation tools that enables efficient access to
IMAGE PROCESSING. The project is image process using bio informatics
technologies in a computer software package. The purpose of the project is to maintain
the image processing such as brightness, without noise, gray format of the image
corresponding to the values. This image process project is developed by c#

PROBLEM DEFINITION
The image processing is designed using bio informatics technology for to get the
image as brightly, without noise, gray format.

EXISTING SYSTEM:
In the existing image processing without bio informatics is not secured. So there
is not satisfied to user requirements.
PROPOSED SYSTEM:
It eliminates problem of existing image processing .this project has been
developed using c#. This project is planned to provide security from unauthorized user
to satisfied user requirements.
The form details are given below

Image selection

Listed image

Modified image

HARDWARE REQUIREMENTS:
CPU

: HP

Process speed

: 2.80GHZ/1066MHZ

Memory

: 2GB RAM

Hardisk

: 250GB

Monitor

: HP 18.5

SOFTWARE REQUIREMENTS:
Operating system

:windows xp

Package

: C#

SOFTWARE TESTING:
The philosophy of the testing is to find the errors. Test cases are devised with
purpose in mind. A test case is a set of data that the system will process at normal input,
however the data are created with the system will process them correctly.

The two testing strategies are


Code testing
Specification testing
Regardless of which strategy is followed, the following levels of tests are
preferred.

UNIT TESTING:
The programs that make up a system are tested in unit testing.
Unit testing focuses first on the modules, independently of one
another to locate the errors.
Unit testing is performed from the bottom up, starting whether the
smallest and lowest level modules and proceeding one at a time.
Once the bottom level modules are tested, the next levels that use the
lower level ones are tested.
SYSTEM TESTING:
System testing is done to find the discrepancies between the system and its
original objective, current specification and system documentation.

INTEGRATION TESTING:
Integration testing is a systematic testing for construction the program
structure while at the same time conduction it test to uncover errors
associated within the interface.
Asking the users about the format required by them tests the output
guaranteed or displayed by the system under consideration

Output testing has not resulted in many corrections in the system


The inventory system has undergone testing using the above technique.
The unit testing, integration testing & system testing are carried out of the
system is found satisfactorily.

CODINGS
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
using System.Drawing.Imaging;

namespace ImageProcess
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TreeView tv1;
private System.Windows.Forms.ListBox lstFiles;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button btnBright;
private System.Windows.Forms.PictureBox p1;
private System.Windows.Forms.PictureBox p2;
private System.Windows.Forms.Button btnNoise;
private System.Windows.Forms.Button btnGray;
private System.Windows.Forms.TrackBar track;
private int m_nTrack;
private System.Windows.Forms.Label lblTrack;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.tv1 = new System.Windows.Forms.TreeView();
this.lstFiles = new System.Windows.Forms.ListBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.lblTrack = new System.Windows.Forms.Label();
this.track = new System.Windows.Forms.TrackBar();
this.btnGray = new System.Windows.Forms.Button();
this.btnNoise = new System.Windows.Forms.Button();
this.btnBright = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.p2 = new System.Windows.Forms.PictureBox();
this.p1 = new System.Windows.Forms.PictureBox();
this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.track)).BeginInit();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.p2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.p1)).BeginInit();
this.SuspendLayout();
//
// tv1
//
this.tv1.AllowDrop = true;
this.tv1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))),
((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tv1.CheckBoxes = true;

this.tv1.Location = new System.Drawing.Point(32, 32);


this.tv1.Name = "tv1";
this.tv1.Size = new System.Drawing.Size(176, 160);
this.tv1.TabIndex = 0;
this.tv1.AfterSelect += new
System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
//
// lstFiles
//
this.lstFiles.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))),
((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.lstFiles.ColumnWidth = 100;
this.lstFiles.HorizontalScrollbar = true;
this.lstFiles.Location = new System.Drawing.Point(224, 32);
this.lstFiles.Name = "lstFiles";
this.lstFiles.ScrollAlwaysVisible = true;
this.lstFiles.Size = new System.Drawing.Size(160, 160);
this.lstFiles.TabIndex = 4;
this.lstFiles.SelectedIndexChanged += new
System.EventHandler(this.lstFiles_SelectedIndexChanged);
//
// groupBox3
//
this.groupBox3.Controls.Add(this.lblTrack);
this.groupBox3.Controls.Add(this.track);
this.groupBox3.Controls.Add(this.btnGray);
this.groupBox3.Controls.Add(this.btnNoise);
this.groupBox3.Controls.Add(this.btnBright);
this.groupBox3.Location = new System.Drawing.Point(16, 8);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(632, 200);
this.groupBox3.TabIndex = 11;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Explorer";
//
// lblTrack
//
this.lblTrack.ForeColor = System.Drawing.Color.Blue;
this.lblTrack.Location = new System.Drawing.Point(408, 128);
this.lblTrack.Name = "lblTrack";
this.lblTrack.Size = new System.Drawing.Size(100, 23);
this.lblTrack.TabIndex = 4;
this.lblTrack.Click += new System.EventHandler(this.lblTrack_Click);
//
// track
//
this.track.Location = new System.Drawing.Point(392, 144);
this.track.Name = "track";
this.track.Size = new System.Drawing.Size(232, 42);
this.track.TabIndex = 3;
this.track.Scroll += new System.EventHandler(this.track_Scroll);

//
// btnGray
//
this.btnGray.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.btnGray.Location = new System.Drawing.Point(520, 80);
this.btnGray.Name = "btnGray";
this.btnGray.Size = new System.Drawing.Size(88, 48);
this.btnGray.TabIndex = 2;
this.btnGray.Text = "Gray";
this.btnGray.UseVisualStyleBackColor = false;
this.btnGray.Click += new System.EventHandler(this.btnGray_Click);
//
// btnNoise
//
this.btnNoise.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))),
((int)(((byte)(192)))), ((int)(((byte)(192)))));
this.btnNoise.Location = new System.Drawing.Point(520, 32);
this.btnNoise.Name = "btnNoise";
this.btnNoise.Size = new System.Drawing.Size(88, 48);
this.btnNoise.TabIndex = 1;
this.btnNoise.Text = "Noise";
this.btnNoise.UseVisualStyleBackColor = false;
this.btnNoise.Click += new System.EventHandler(this.btnNoise_Click);
//
// btnBright
//
this.btnBright.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))),
((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.btnBright.Location = new System.Drawing.Point(400, 32);
this.btnBright.Name = "btnBright";
this.btnBright.Size = new System.Drawing.Size(88, 48);
this.btnBright.TabIndex = 0;
this.btnBright.Text = "Bright";
this.btnBright.UseVisualStyleBackColor = false;
this.btnBright.Click += new System.EventHandler(this.btnBright_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.p2);
this.groupBox1.Controls.Add(this.p1);
this.groupBox1.Location = new System.Drawing.Point(16, 216);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(632, 296);
this.groupBox1.TabIndex = 12;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Image Analysis";
//
// p2
//
this.p2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.p2.Location = new System.Drawing.Point(328, 32);

this.p2.Name = "p2";
this.p2.Size = new System.Drawing.Size(272, 240);
this.p2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.p2.TabIndex = 1;
this.p2.TabStop = false;
//
// p1
//
this.p1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.p1.Location = new System.Drawing.Point(24, 32);
this.p1.Name = "p1";
this.p1.Size = new System.Drawing.Size(272, 240);
this.p1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.p1.TabIndex = 0;
this.p1.TabStop = false;
this.p1.Click += new System.EventHandler(this.p1_Click);
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(664, 582);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.lstFiles);
this.Controls.Add(this.tv1);
this.Controls.Add(this.groupBox3);
this.Name = "Form1";
this.Text = "Image Processing";
this.Load += new System.EventHandler(this.Form1_Load);
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.track)).EndInit();
this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.p2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.p1)).EndInit();
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void Form1_Load(object sender, System.EventArgs e)
{
btnShowFiles_Click(null, null);
track.SetRange(0,150);
m_nTrack = 20;

track.Value = m_nTrack;
lblTrack.Text = m_nTrack.ToString();
}
private void treeView1_AfterSelect(object sender,
System.Windows.Forms.TreeViewEventArgs e)
{
try
{
TreeNode node = e.Node;
string strFullPath = node.FullPath;
DisplayFiles(strFullPath);
}
catch{}
}
private void DisplayFiles(string dirName)
{
try
{
lstFiles.Items.Clear();
// test to see if directory exists
DirectoryInfo dir = new DirectoryInfo(dirName);
if (!dir.Exists)
throw new DirectoryNotFoundException
("directory does not exist:"+dirName);
// fill the directory listbox
//
foreach(DirectoryInfo di in dir.GetDirectories())
//
{
//
string str = "[Dir] " + di.Name;
//
lstFiles.Items.Add(str);
//
}
// fill the Files listbox
foreach(FileInfo fi in dir.GetFiles())
{
string path = fi.Name;
//if (path.EndsWith(".gif")//
||
path.EndsWith(".jpg")
//
|| path.EndsWith(".jpeg")
//
|| path.EndsWith(".bmp"))
{
lstFiles.Items.Add(fi.Name);
}
}
}
catch(Exception ex)
{
ex.ToString();
}
}
private void btnCompress_Click(object sender, System.EventArgs e)
{

string path = Path.Combine(tv1.SelectedNode.FullPath,


lstFiles.SelectedItem.ToString());
DisplayFiles(tv1.SelectedNode.FullPath);
}
private void btnShowFiles_Click(object sender, System.EventArgs e)
{
try
{
tv1.Nodes.Clear();
lstFiles.Items.Clear();
string[] drives = Environment.GetLogicalDrives();
foreach ( string drv in drives)
{
TreeNode node = new TreeNode();
node.Text = drv;
tv1.Nodes.Add(node);
FillDirectory(drv, node, 0);
}
}
catch(Exception ex)
{
ex.ToString();
}
}
private void FillDirectory(string drv, TreeNode parent, int level)
{
try
{
// I want to go only upto 3 level.
level++;
if (level > 3)
return;
DirectoryInfo dir = new DirectoryInfo(drv);
if (!dir.Exists)
throw new DirectoryNotFoundException
("directory does not exist:"+drv);
foreach(DirectoryInfo di in dir.GetDirectories())
{
TreeNode child = new TreeNode();
child.Text = di.Name;
parent.Nodes.Add(child);
FillDirectory(child.FullPath, child, level);
}
}
catch(Exception ex)
{
ex.ToString();
}

}
private void groupBox1_Enter(object sender, System.EventArgs e)
{
}
private void lstFiles_SelectedIndexChanged(object sender, System.EventArgs e)
{
try
{
string lblDir = tv1.SelectedNode.FullPath;
string path = Path.Combine(tv1.SelectedNode.FullPath,
lstFiles.SelectedItem.ToString());
{
p1.Image = new Bitmap(path);
}
}
catch{}
}
private void btnCopy_Click(object sender, System.EventArgs e)
{
string path = Path.Combine(tv1.SelectedNode.FullPath,
lstFiles.SelectedItem.ToString());
string path2 = path + "copy";
try
{
// Create the file and clean up handles.
using (FileStream fs = File.Create(path2)) {}
// Ensure that the target does not exist.
//File.Delete(path2);
// Copy the file.
File.Copy(path, path2);
// Try to copy the same file again, which should succeed.
//File.Copy(path, path2, true);
DisplayFiles(tv1.SelectedNode.FullPath);
}
catch
{
}
}
private void Decompress_Click(object sender, System.EventArgs e)
{
string path = Path.Combine(tv1.SelectedNode.FullPath,
lstFiles.SelectedItem.ToString());
try
{
//lzwHelper.Decompress.main2(path);

}
catch
{
}
DisplayFiles(tv1.SelectedNode.FullPath);
}
private void btnDelete_Click(object sender, System.EventArgs e)
{
try
{
string path = Path.Combine(tv1.SelectedNode.FullPath,
lstFiles.SelectedItem.ToString());
// Ensure that the target does not exist.
File.Delete(path);
DisplayFiles(tv1.SelectedNode.FullPath);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
public static bool CovertToGray(Bitmap b)
{
// GDI+ return format is BGR, NOT RGB.
BitmapData bmData = b.LockBits(new Rectangle(0, 0, b.Width, b.Height),
ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);
int stride = bmData.Stride; // bytes in a row 3*b.Width
System.IntPtr Scan0 = bmData.Scan0;
unsafe
{
byte * p = (byte *)(void *)Scan0;
byte red, green, blue;
int nOffset = stride - b.Width*3;
for(int y=0;y < b.Height;++y)
{
for(int x=0; x < b.Width; ++x )
{
blue = p[0];
green = p[1];
red = p[2];
p[0] = p[1] = p[2] = (byte)(.299 * red
+ .587 * green + .114 * blue);
p += 3;
}
p += nOffset;
}
}
b.UnlockBits(bmData);
return true;
}

public static bool Brighten(Bitmap b, int nBrightness)


{
// GDI+ return format is BGR, NOT RGB.
BitmapData bmData = b.LockBits(new Rectangle(0, 0, b.Width, b.Height),
ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);
int stride = bmData.Stride;
System.IntPtr Scan0 = bmData.Scan0;
unsafe
{
int nVal;
byte * p = (byte *)(void *)Scan0;
int nOffset = stride - b.Width*3;
int nWidth = b.Width * 3;
for(int y=0;y<b.Height;++y)
{
for (int x = 0; x < nWidth; ++x)
{
nVal = (int) (p[0] + nBrightness);
if (nVal < 0) nVal = 0;
if (nVal > 255) nVal = 255;
p[0] = (byte)nVal;
++p;
}
p += nOffset;
}
}
b.UnlockBits(bmData);
return true;
}
private void btnBright_Click(object sender, System.EventArgs e)
{
try
{
string path = Path.Combine(tv1.SelectedNode.FullPath,
lstFiles.SelectedItem.ToString());
Bitmap b = new Bitmap(path);
Brighten(b, m_nTrack);
p2.Image = b;
}
catch{}
}
private void btnNoise_Click(object sender, System.EventArgs e)
{
try
{
string path = Path.Combine(tv1.SelectedNode.FullPath,
lstFiles.SelectedItem.ToString());

Bitmap b = new Bitmap(path);


Brighten(b,-m_nTrack);
p2.Image = b;
}
catch{}{}
}
private void btnGray_Click(object sender, System.EventArgs e)
{
try
{
string path = Path.Combine(tv1.SelectedNode.FullPath,
lstFiles.SelectedItem.ToString());
Bitmap b = new Bitmap(path);
CovertToGray(b);
p2.Image = b;
}
catch{}
}

private void track_Scroll(object sender, System.EventArgs e)


{
m_nTrack = track.Value;
lblTrack.Text = m_nTrack.ToString();
}
private void lblTrack_Click(object sender, System.EventArgs e)
{
}
private void p1_Click(object sender, EventArgs e)
{
}
private void p2_Click(object sender, EventArgs e)
{
}
}
}

CONCLUSION:
This project IMAGE PROCESSING is developed using bio informatics
technology. The actual image can be modified as different format without noise. This
provides more secure of my project using bio- informatics technology.

Ex:No: 5

ONLINE STOCK TRADING

INTRODUCTION:
The project named online stock trading .In a project that is developed in
Microsoft visual basic6.0 for performing online stock trading. The main objectives of
the project is providing easier and comfortable platform that offers benefits for online
buyer as well as seller especially for on-line bidders .This is mainly developed for
persons who want to get their desired product by bidding. Here the administrator plays a
major role and low more persons involved in their process are buyer who wants to sell
the product .
SYSTEM STUDY AND ANALYSIS:
OVERVIEW OF THE VB6.0:

It is a computing platform that simplifies application develop environment of the


system.
FEATURES OF THE COMMON LANGUAGE RUN-TIME:
It manages memory; thread execution, code execution, code safety verification,
compilation and other system services. These features are intrinsic to the managed code
that runs on the common language runtime. The runtime enforces code access security.
for E.g.,. users can trust that executable embedded in a webpage can play an animation
on screen or sing a song, but access their personal data, file system or network. The
runtime also enforces code robustness by implementing a strict type and code
verification called the CTS.
The runtime also accelerates developer productive. for e.g., programmers can
write applications in their development language of choice. While the runtime is
designed for the software for the future ,it also supports software of today and yesterday.
Interoperability between managed and managed code enables developers to continue to
use necessary COM components and DILS.
EXISTING SYSTEM:
The existing manual system of learning is very cumbersome and time taking
process which allows only very few users to take part. The learning should be
announced earlier through traditional data like newspaper or television etc.a physical
place for learning is required.
DISADVANTAGES:

The very purpose of learn is to enrich the knowledge and maximize their
skills.
There will lot of waste time such as travelling.
They have spent lot due to travelling and for their distances
The assemblage in a physical place is must for the students.

PROPOSED SYSTEM:

It makes an internet based electronic learning for various course, the


learners can choose the courses by knowing the details about course.
The customer can pay the fees through credit cards.

ADVANTAGES:

The student need not travel for a long distances.


He can study at his own place.
Their amount to spend will be reduced much.
There is a system which brings the job opportunity for courses.

HARDWARE REQUIREMENTS:
CPU

:HP

Processor Speed

:2.80GHZ

Memory

:2GB RAM

Hard Disk

:250GB

Monitor

:HP 18.5

SOFTWARE REQUIREMENTS:
SOFTWARE
DATABASE
DEVELOPMENT PLATFORM

virtual basic 6.0 (FRONT)


MS-ACCESS, SQL server (BACK)
Windows XP

DATAFLOW DIAGRAM:
It is one of the best ways if documenting the entire functionality of the
system. For any system ,which will have some data inflows, processing and data flows
from the system, can be documented or represented efficiently by means of DFD.

Various entities interacting with the system are identified.


Flow of data from one entity to another entity is identified.
The various processes involved in between the interactions of two or more
entities in the system are pointed out.
The various data stores, which hold the data in between the processes, are
clearly identified.

SOFTWARE TESTING:

It is the stage of implementation, which is aimed at ensuring that the


system works accurately and effectively before live operation commences.
Testing is a vital to the success of system. It makes a logical assumption that if all parts
of the system are correct ,the goal will be achieved. The candidate system are correct the
goal will be successfully achieved. A series of tests are performed before the system is
ready for user acceptance testing.
TYPES:
UNIT TESTING
INTEGERATED TESTING
VALIDATED TESTING
OUTPUT TESTING
USER ACCEPTANCE TESTING
UNIT TESTING:
In this testing we test each a module individual and integrated the overall
system. Unit testing features verifications efforts on the smallest unit of software design
in the module. This is also known as module testing. The module of system is tested
separately. This testing is carried out during programming stage itself. In this testing
step each module is found to working. Satisfactorily as regard to the expected output
from the module. There are some validation checks are also fields.
INTEGERATION TESTING:
Data can be lost across an interface; one module can have an adverse
effort on the other sub functions when combined, may not produces the desired major
functions. Integrated testing is systematic testing for constructing the uncover errors
within the interface. This testing was done with sample data. The developed system has
run successfully for this sample data
VALIDATION TESTING:
At the culmination of the black box testing, software is completely
assembled as a package, interfacing errors have been uncovered and corrected and final
series of software tests (i.e)validation test begin, validation testing can be defined many
ways. The function (or) performance characteristics confirm to specification and or
accepted. A deviation from specification is uncovered and deficiency list is created.
OUTPUT TESTING:
After performance the validation testing, the next step is output testing
of the proposed system since no system could be useful if it does not produce the
required output in the specific format. The output displayed or generated by the
system. For the hard copy also the output comes out us the specified requirements by the
user. Here the output testing does not result in any correction in the system.

USER ACCEPTANCE TESTING:


User acceptance of the system is the key factor for the success of any
acceptance by constantly keeping in touch with prespective system at the tim of
developing and making changes whenever required.
USE CASE DIAGRAM:

log on
login
log
on
log
log
inin
in
log
on

sales
stock
detail
sales
sales
sales
manager
view
view
view
view
view
view
view
view
stockist
update
update
update
datasystem

purchase
log
log out
out
purchase

general manager

CLASS DIAGRAM:
LOGIN:

reports
genera...

SALES:

OVERALL CLASS DIAGRAM:

LOGIN:

: stockist

: datasystem

login the system

SALES:

: stockist

: datasystem

check for availability of the item

display availabity details

store the sales item details

OVERALL SEQUENCE DIAGRAM:

: stockist

: datasystem

: manager

: general manager

login the system

check for availability of the item

display availabity details

store sales item details

store the purchase item details

check for account details

display account details

generate reports

COLLABORATION DIAGRAM:
LOGIN:

1: login the system


datasyste
m

stockist

PURCHASE:

3:store purchase item details


1: check for availibility details
datasyste
m

stockist

2:display availibility details

REPORT:

1: view the account details


manager

datasyste
m
2: displayaccount details

3: generate reports

general
manager

OVERALL COLLOBORATION DIAGRAM:

stockist

5:store the purchase details


4:store sales details
2:check for availability of the item
1: login the system
datasyste
m
2: 3: display availabilty details
3: 6:check for account details

manager

OVERALL ACTIVITY DIAGRAM:

login the system

sale the item

purchase the
item

option

view

update

MANAGER:

login the
system

view the
database

generate
reports

LOGIN:

login the
systems

CODING:
Online Stock Trading
using
using
using
using
using
using
using
using

System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Text;
System.Windows.Forms;
Microsoft.Internal.Performance;

namespace WindowsApplication1
{
public partial class Frm_stocktrading : Form
{
public int in_quantity, in_bp, in_sp,in_brok;
public float flu_profit, flu_brok, flu_sp,
flu_profits,flu_service=2;
public Frm_stocktrading()
{
InitializeComponent();
}
private void Btn_Calculate_Click(object sender, EventArgs e)
{
if (cb_mode.SelectedItem =="Cash")
{
in_quantity =
System.Convert.ToInt32(txt_quantity.Text);
in_bp = System.Convert.ToInt32(txt_bp.Text);
in_sp = System.Convert.ToInt32(txt_sp.Text);
in_bp = in_bp * in_quantity;
in_sp = in_sp * in_quantity;
txt_total.Text = System.Convert.ToString(in_bp);
txt_totalsp.Text = System.Convert.ToString(in_sp);
if (Rb_IT.Checked == true)
{
txt_brok.Text = System.Convert.ToString(5);
in_brok = System.Convert.ToInt32(txt_brok.Text);
}
else if (rb_fin.Checked == true)
{
txt_brok.Text = System.Convert.ToString(7);
in_brok = System.Convert.ToInt32(txt_brok.Text);
}
else if (Rb_oil.Checked == true)
{
txt_brok.Text = System.Convert.ToString(10);
in_brok = System.Convert.ToInt32(txt_brok.Text);
}
else if (Rb_Steel.Checked == true)
{
txt_brok.Text = System.Convert.ToString(3);
in_brok = System.Convert.ToInt32(txt_brok.Text);
}
flu_brok = System.Convert.ToInt64(in_brok);
}

else if (cb_mode.SelectedItem =="Credit")


{
in_quantity = System.Convert.ToInt32(txt_quantity.Text);
in_bp = System.Convert.ToInt32(txt_bp.Text);
in_sp = System.Convert.ToInt32(txt_sp.Text);
in_bp = in_bp * in_quantity;
in_sp = in_sp * in_quantity;
txt_brok.Text = System.Convert.ToString(6);
in_brok = System.Convert.ToInt32(txt_brok.Text);
flu_brok = System.Convert.ToInt64(in_brok);
flu_profit = System.Convert.ToInt64(in_sp - in_bp);
flu_profits = flu_profit * flu_brok;
flu_brok = flu_profits / 100;
flu_profit = flu_profit - flu_brok;
txt_prof.Text = System.Convert.ToString(flu_profit);
txt_service.Text = System.Convert.ToString(flu_service);
}
if (txt_quantity.Text == "" && txt_bp.Text == "" &&
txt_sp.Text == "")
{
MessageBox.Show("Please enter the value da", "Do you
Have any sense");
}
}
private void txt_quantity_TextChanged(object sender, EventArgs
e)
{
}
private void cb_mode_SelectedIndexChanged(object sender,
EventArgs e)
{
if (cb_mode.SelectedItem == "Cash")
{
if (Rb_IT.Checked == true)
{
txt_brok.Text = System.Convert.ToString(5);
in_brok = System.Convert.ToInt32(txt_brok.Text);
}
else if (rb_fin.Checked == true)
{
txt_brok.Text = System.Convert.ToString(7);
in_brok = System.Convert.ToInt32(txt_brok.Text);
}
else if (Rb_oil.Checked == true)
{
txt_brok.Text = System.Convert.ToString(10);
in_brok = System.Convert.ToInt32(txt_brok.Text);
}
else if (Rb_Steel.Checked == true)
{
txt_brok.Text = System.Convert.ToString(3);
in_brok = System.Convert.ToInt32(txt_brok.Text);
}
}
else if (cb_mode.SelectedItem == "Credit")
{
txt_brok.Text = System.Convert.ToString(6);

}
}
private void btn_exit_Click(object sender, EventArgs e)
{
this.Close();
}
private void txt_total_TextChanged(object sender, EventArgs e)
{
}
private void Frm_stocktrading_Load(object sender, EventArgs e)
{
if (this.WindowState==FormWindowState.Maximized)
{
}
}
private void Frm_stocktrading_AutoSizeChanged(object sender,
EventArgs e)
{
if (this.WindowState == FormWindowState.Maximized)
{
}
}
private void Frm_stocktrading_RegionChanged(object sender,
EventArgs e)
{
if (this.WindowState == FormWindowState.Maximized)
{
}
}
private void Frm_stocktrading_Activated(object sender,
EventArgs e)
{
}
private void Frm_stocktrading_AutoValidateChanged(object
sender, EventArgs e)
{
}
private void Frm_stocktrading_BackColorChanged(object sender,
EventArgs e)
{
}
private void Frm_stocktrading_BackgroundImageChanged(object
sender, EventArgs e)
{

}
private void Frm_stocktrading_Click(object sender, EventArgs e)
{
}
private void Frm_stocktrading_SizeChanged(object sender,
EventArgs e)
{
int in_height = this.Size.Height;
int in_width = this.Size.Width;
this.tbc_stocktrading.Size = this.Size;
}
private void tbc_stocktrading_Click(object sender, EventArgs e)
{
//tabPage1.Show();
}
private void comboBox1_SelectedIndexChanged(object sender,
EventArgs e)
{
}
private void Rb_IT_CheckedChanged(object sender, EventArgs e)
{
if (Rb_IT.Checked == true)
{
cb_industries.Items.Add(Rb_IT.Text);
cb_industries.SelectedItem = Rb_IT.Text;
}
}
private void rb_fin_CheckedChanged(object sender, EventArgs e)
{
if (rb_fin.Checked == true)
{
cb_industries.Items.Add(rb_fin.Text);
cb_industries.SelectedItem = rb_fin.Text;
}
}
private void Rb_oil_CheckedChanged(object sender, EventArgs e)
{
if (Rb_oil.Checked == true)
{
cb_industries.Items.Add(Rb_oil.Text);
cb_industries.SelectedItem = Rb_oil.Text;
}
}
private void Rb_Steel_CheckedChanged(object sender, EventArgs
e)
{
if (Rb_Steel.Checked == true)
{
cb_industries.Items.Add(Rb_Steel.Text);
cb_industries.SelectedItem = Rb_Steel.Text;
}
}
} }

SCREEN SHOT OF THE PROJECT

Conclusion:
This project ON LINE STOCK TRADING solves all the problems faced by
the manual and achieves the goal. The search results are accurate and easily understand
the user can personalize the stock trading to know about the stock and the transaction
performed. All the necessary testing has been done on the system and any kind of user
can use the system without difficulty.

Ex:No:6

HOSPITAL MANAGEMENT

INTRODUCTION:
The Project Hospital Management is done to computerize the hospital
details and to maintain it focus on higher availability. By using this project we can be
able to retrieve all the details of the patient and staff members.
In this project we have used MS Visual Basic6.0 as the programming
language because it enhances the user friendliness and provides an improved
presentation on the front end. The database has been selected as MS Access due to its
capability of handling large volumes of data spread across several database and users.
SYSTEM STUDY AND ANALYSIS:
Problem Definition:
The main idea of problem analysis is collecting data on the existing system
and performing critical documentation of data and its related information
The Problem Analysis is conducted with following objectives
To maintain the patient details of the hospital.
To maintain the details of the staff members.
Retrieving the resulted data.
EXISTING SYSTEM:
The existing system is used to edit the form, update the patient details of the
hospital management system. The retrieving of required data of the patients ,staff
details, fees, Expense, drug, admission, income.
PROPOSED SYSTEM:
It is fully computerized so it eliminates the problems of existing system.
The system has been developed using Visual Basic as front end and MS Access as
back end. The system is planned to provide more forms and also to satisfy the
hospital management users. The form and also to satisfy the hospital management
users.
The form details are as follows
The patient details.
The staff member details ( the staff member varies from higher hierarchy to
lower hierarchy including Doctors, Nurse, House Keeping, Drivers/security).
The admission form for admission of a patient details.
The doctor form displays the details of a doctor.
The drugs form displays the drug details and the stock available in the hospital.
The expense form gives the information that is used to maintain the whole
hospital for per annum.
The income form displays the details of the hospital income for per week, per
month, per annum.

The fees form includes the fees of a doctor ,room, etc.


The driver form displays the details of a driver.
The House keeping form display the details of a house keeper.
HARDWARE REQUIREMENTS:
CPU

: HP

PROCESSOR SPEED

:2.80GHz/1066MHz

MEMORY

:2GB RAM

HARD DISK

:250GB

MONITOR

:HP 18.5

SOFTWARE REQUIREMENTS:
Operating systems: Microsoft Windows XP
Packages: MS Visual Basic 6.0, MS Access 2003
SYSTEM DESIGN
According to the webserver the process are designed and executed
SOFTWARE TESTING:
There are two types of software testing
1. Code testing.
2. Specification Testing .
The philosophy of testing is to mind the errors. Test cares are designed. A Test is a set
of data that system will process at normal input.
UNIT TESTING:
The form that made up of system are tested in unit testing
Unit testing is preformed from bottom up starting with the smallest and
lowest level models and processed one at time
The bottom level modules are tested and the next level in the lower one
are tested

SYSTEM TESTING:
System tested is done to find the description between the system and its
original objective, current specification and system documentation.

INTEGRATION TESTING:
Integration testing is a systematic testing the construction of the form
structure while at same time conducting test to remove errors
associated within the interface.
Asking the users about the form required by then test the output
generated are all displayed by system under consideration.
Output testing has not resulted in many corrections in the systems.
CODINGS:
MAIN:
Private Sub Command1_Click()
addmi.Show
Unload Me
End Sub
Private Sub Command2_Click()
StaffDetails.Show
Unload Me
End Sub
Private Sub Command3_Click()
Drugs.Show
Unload Me
End Sub
Private Sub Command4_Click()
Income.Show
Unload Me
End Sub
Private Sub Command5_Click()
Expense.Show
Unload Me
End Sub
Private Sub Command6_Click()
LAB.Show
Unload Me
End Sub
Private Sub Command7_Click()
End
End Sub

ADMISSION FORM:
Private Sub Command1_Click()
addmid.Show
Unload Me
End Sub
Private Sub Command2_Click()
Main.Show
Unload Me
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.AddNew
Text1.SetFocus
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Text9_LostFocus()
Adodc1.Recordset!docfe = "0"
Adodc1.Recordset!drufe = "0"
Adodc1.Recordset!roomfe = "0"
Adodc1.Recordset!labfe = "0"
Adodc1.Recordset!disfe = "0"
Adodc1.Recordset.Update
MsgBox "Patient added"
End Sub
MIDDLE FORM:
Private Sub Command1_Click()
addmi.Adodc1.Recordset.MoveFirst
Do While addmi.Adodc1.Recordset.EOF = False
If Text1.Text = addmi.Adodc1.Recordset!adn Then
X=1
fees.Text1.Text = addmi.Adodc1.Recordset!docfe
fees.Text2.Text = addmi.Adodc1.Recordset!drufe
fees.Text3.Text = addmi.Adodc1.Recordset!roomfe
fees.Text4.Text = addmi.Adodc1.Recordset!labfe
fees.Text5.Text = addmi.Adodc1.Recordset!disfe
Exit Do
Else
addmi.Adodc1.Recordset.MoveNext
End If
Loop
If X = 1 Then
fees.Show
Me.Hide

Else
MsgBox "Enter the correct number"
End If
End Sub
DOCTOR FORM:
Private Sub Command1_Click()
StaffDetails.Show
Unload Me
End Sub
Private Sub DataGrid1_GotFocus()
'Adodc1.Recordset.f
End Sub
Private Sub Form_Load()
Adodc1.Recordset!desig = "Doctor"
'Adodc1.Recordset.Filter
End Sub
DRIVER/SECURITY FORM:
Private Sub Command1_Click()
StaffDetails.Show
Unload Me
End Sub
DRUG FORM:
Private Sub Command1_Click()
DataReport1.Show
Unload Me
End Sub
Private Sub Command2_Click()
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF = True Then
MsgBox "This one is first"
Adodc1.Recordset.MoveFirst
End If
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF = True Then
MsgBox "This is last one "
Adodc1.Recordset.MoveLast
End If
End Sub
Private Sub Command4_Click()

Unload Me
End Sub
Private Sub Command5_Click()
Main.Show
Unload Me
End Sub
Private Sub Command6_Click()
search.Show
Unload Me
End Sub
EXPENSE FORM:
Private Sub Combo1_Click()
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
If Combo1.Text = Adodc1.Recordset!Month Then
Text1.Text = Adodc1.Recordset!staff_salary
Text5.Text = Adodc1.Recordset!tele
Text3.Text = Adodc1.Recordset!electric
Text2.Text = Adodc1.Recordset!cleaning
Exit Do
Else
Adodc1.Recordset.MoveNext
End If
Loop
End Sub
Private Sub Command1_Click()
Expense1.Show
Unload Me
End Sub
Private Sub Command2_Click()
Main.Show
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
While Adodc1.Recordset.EOF = False
Combo1.AddItem Adodc1.Recordset!Month
Adodc1.Recordset.MoveNext
Wend
End Sub

ANNUAL EXPENSE FORM:


Dim X As Long
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
Expense.Show
Unload Me
End Sub
Private Sub Form_Load()
X=0
Expense.Adodc1.Recordset.MoveFirst
Do While Expense.Adodc1.Recordset.EOF = False
X = Val(X) + Val(Expense.Adodc1.Recordset!staff_salary) +
Val(Expense.Adodc1.Recordset!tele) + Val(Expense.Adodc1.Recordset!electric) +
Val(Expense.Adodc1.Recordset!cleaning)
Expense.Adodc1.Recordset.MoveNext
Loop
Label1.Caption = Val(X)
End Sub
FEES DETAILS FORM:
Private Sub Command2_Click()
addmi.Show
Unload Me
End Sub
Private Sub Command3_Click()
End
End Sub
Private Sub Command4_Click()
addmi.Adodc1.Recordset!docfe = fees.Text1.Text
addmi.Adodc1.Recordset!drufe = fees.Text2.Text
addmi.Adodc1.Recordset!roomfe = fees.Text3.Text
addmi.Adodc1.Recordset!labfe = fees.Text4.Text
addmi.Adodc1.Recordset!disfe = fees.Text5.Text
addmi.Adodc1.Recordset.Update
MsgBox "fees updated"
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As


Single)
Text6.Text = (Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text))
Label8.Caption = addmi.Adodc1.Recordset!Name
End Sub

Private Sub Text5_LostFocus()


Text6.Text = (Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text))
End Sub
HOUSE KEEPING FORM:
Private Sub Command1_Click()
StaffDetails.Show
Unload Me
End Sub
INCOME FORM:
Private Sub Command1_Click()
Main.Show
Unload Me
End Sub
Private Sub Form_Load()
addmi.Adodc1.Recordset.MoveFirst
Do While addmi.Adodc1.Recordset.EOF = False
a = a + Val(addmi.Adodc1.Recordset!docfe) + Val(addmi.Adodc1.Recordset!drufe) +
Val(addmi.Adodc1.Recordset!roomfe) + Val(addmi.Adodc1.Recordset!labfe)
addmi.Adodc1.Recordset.MoveNext
Loop
Label7.Caption = a
End Sub
Private Sub Label1_Click()
Income.Show
Unload Me
End Sub
LAB DETAIL FORM:
Private Sub Command6_Click()
End
End Sub
Private Sub Command7_Click()
Main.Show
Unload Me
End Sub
Private Sub Form_Load()
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
b = b + Val(Adodc1.Recordset!blood)
Adodc1.Recordset.MoveNext
Loop

Label2.Caption = b
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
c = c + Val(Adodc1.Recordset!sugar)
Adodc1.Recordset.MoveNext
Loop
Label3.Caption = c
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
d = d + Val(Adodc1.Recordset!malaria)
Adodc1.Recordset.MoveNext
Loop
Label4.Caption = d
Adodc1.Recordset.MoveFirst
Do While Adodc1.Recordset.EOF = False
e = e + Val(Adodc1.Recordset!typoid)
Adodc1.Recordset.MoveNext
Loop
Label5.Caption = e
Label6.Caption = Val(Label2.Caption) + Val(Label3.Caption) + Val(Label4.Caption) +
Val(Label5.Caption)
End Sub
NURSE FORM:
Private Sub Command1_Click()
StaffDetails.Show
Unload Me
End Sub
STAFF DETAIL FORM:
Private Sub Command1_Click()
Doctors.Show
Unload Me
End Sub
Private Sub Command2_Click()
Nurse.Show
Unload Me
End Sub
Private Sub Command3_Click()
HouseKeeping.Show
Unload Me
End Sub

Private Sub Command4_Click()


Drivers.Show
Unload Me
End Sub
Private Sub Command5_Click()
Main.Show
Unload Me
End Sub

CONCLUSION:
Hospital management has vast amount of data to manipulate. Manual access and
storing of data takes long time for processing. Also there is chance of data loss. The
online hospital management encloses all the information required in a single kit. Hence
it gains advantage in time basis and accuracy basis. Locating data is made easy here.

Ex:No:7

LIBRARY OF COMPUTER SECURITY RELATED


ALGORITHMS

INTRODUCTION:
The project LIBRARY OF COMPUTER SECURITY RELATED
ALGORITHMS is a unique one implemented for MIET ENGG COLLEGE developed
entirely on windows operating system. It aims at creating comprehensive software suited
to the needs of college which stores the details about security related algorithms. This
project will control entire college under single entity. All information of security
algorithms are maintained in a legible manner. This project maintains database of each
security algorithms and categories and creates report of any type write reference to
database.
SYSTEM STUDY AND ANALYSIS:
PROBLEM DEFINITION:
The main idea of problem analysis is collecting data on the existing system and
performing critical documentation of the data to factor our relevant information.
The problem analysis is conducted with the following objectives
Identify the type of security algorithm.
Identify the title of algorithm.
Identify the purpose and stack number.
EXISTING SYSTEM:
The maintenance for the library is currently done using software developed is
visual basic. In the existing system products inward and outward entries are stored. The
process for these entries is done and provides to stock statement for the specific period.
PROPOSED SYSTEM:
It is fully computerized. So it eliminates the problem of existing system. The
system has been developed in visual basic as front end and MS Access as back end. The
system is planned to provide more report and also to satisfy for computers requirements.
The form details are as follows:
Searching
Viewing
HARDWARD REQUIREMENTS:
CPU
Processor Speed
Memory
Hard Disk

:Core i3
:1.7GHZ
:1GB
:200GB

SOFTWARE REQUIREMENTS:
Operating System :Windows 7
Packages
:MicroSoft Visual Studio 6.0
SYSTEM DESIGN:
System design involes translating system requirements and conceptual design
into technical specifications and general flow of processing.After the system
requirements have been identified,information has been gathered to verify the
problem,and after evaluating the existing system is proposed.
INPUT DESIGN:
The input for this project is user id,password,algoritm name,authoe name.
OUTPUT DESIGN:
The output for this project is finding the issuing of book of algorithms and its
type.
DATABASE DESIGN:
The process of creating the database involves the following steps:
Defining the algorithm.
Determining the algorithm type.
Determining the uses of algorithm.
USER DETAILS TABLE:
FIELD NAME
Algorithm Name
Author name
Purpose
Version

DATA TYPE
TEXT
TEXT
TEXT
TEXT

ADMINISTRATION DETAILS:
The most important things to consider during the developed for the application
are algorithm name, author name, purpose, version.
SOFTWARE TESTING:
The philosophy of the testing is to find the errors. Test cases are devised with
purpose in mind. A test case is a set of data that the system will process at normal input;
However the data are created with the express intent of determining whether the system
will process them correctly.

The two testing strategies are,


Code Testing
Specification Testing
Regardless of which strategy is followed, the following levels of tests are preferred.
UNIT TESTING:
The program that make up a system are tested in unit testing.
Unit testing focuses first on the modules, independently of one another to
locate the errors.
Unit testing is performed from the bottom up, starting with the smallest
and lowest level modules and proceeding one at a time.
Once the bottom level modules are tested, the next levels that use the
lower-level ones are tested.
SYSTEM TESTING:
System testing is done to find discrepancies between the system and its original
objective, current specification and system documentation.

INTEGRATION TESTING:
Integration testing is a systematic testing for constructing the program
structure while at the same time conducting tests to uncover errors
associated within the interface.
Asking the users about the format required by them tests the output
generated or displayed by the system under consideration.
Output testing has not resulted in many corrections in the system.
The inventory system has undergone testing using the above testing
techniques.

USE CASE DIAGRAM:

log on
login
log
on
log
log
inin
in
log
on

sales
stock
detail
sales
sales
sales
manager
view
view
view
view
view
view
view
view
stockist
update
update
update
datasystem

purchase
log
log out
out
purchase

general manager

CLASS DIAGRAM:
LOGIN:

SALES:

reports
genera...

CLASS DIAGRAM:

LOGIN:

: stockist

: datasystem

login the system

SALES:

: stockist

: datasystem

check for availability of the item

display availabity details

store the sales item details

SEQUENCE DIAGRAM:

: stockist

: datasystem

: manager

: general manager

login the system

check for availability of the item

display availabity details

store sales item details

store the purchase item details

check for account details

display account details

generate reports

COLLABORATION DIAGRAM:
LOGIN:
1: login the system
datasyste
m

stockist

PURCHASE:
3:store purchase item details
1: check for availibility details
datasyste
m

stockist

2:display availibility details

REPORT:
1: view the account details
manager

datasyste
m
2: displayaccount details

3: generate reports

general
manager

OVERALL COLLOBORATION DIAGRAM:

stockist

5:store the purchase details


4:store sales details
2:check for availability of the item
1: login the system
datasyste
m
2: 3: display availabilty details
3: 6:check for account details

manager

login the system

sale the item

purchase the
item

option

view

MANAGER:

login the
system

view the
database

generate
reports

LOGIN:

login the
systems

update

CODING:
AUTHENTICATION:
Private Sub Command1_Click()
If Text1.Text = "lib" And Text2.Text = "s" Then
Me.Hide
classification.Show
Else
MsgBox "Oops!~Wrong Username or Password"
End If
End Sub
BOOK SELECTION:
Private Sub Check1_Click()
Me.Hide
security_books.Frame2.Visible = False
security_books.Frame1.Visible = True
security_books.Frame1.Caption = "Cloud Security"
security_books.Show
End Sub
Private Sub Check2_Click()
Me.Hide
security_books.Frame1.Visible = False
security_books.Frame2.Visible = True
security_books.Frame2.Caption = "Grid Security"
security_books.Show
End Sub
CLASSIFICATION OF BOOKS:
Private Sub Option2_DblClick()
Me.Hide
books_selection.Show
End Sub
SECURITY BOOKS:
Private Sub Check1_Click()
Unload Me
End Sub

FORM LAYOUT:

CONCLUSION:
Thus the project library of computer security algorithms using vb 6.0 as a front
end and ms access as the back end hass been successfully analyzed, designed, executed
and tested.

You might also like