0% found this document useful (0 votes)
111 views48 pages

Acknowledgement

Uploaded by

Mansher
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
111 views48 pages

Acknowledgement

Uploaded by

Mansher
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 48

ACKNOWLEDGEMENT

“Technology is like the ocean and an Engineer like a


pearl diver in search of treasure, like treasure beneath the sea
there is no end to professional technical studies but an
engineer tries to get as much as possible”

It is a matter of great pleasure for us to undertake training


at NIIT, Patiala; one of the premier Software Institute. It was a
great experience for us as it was our first exposure to such a vast
industry. We would like to express our deep sense of gratitude
towards entire staff of TESTING who helped us towards
successful completion of my training. We would like to thanks
NIIT to allow us to undertaking training into company.

It is a moment of great pleasure and satisfaction to express our


sincere thanks to respected lecturers who stood by us all the
time in making our project a real success. Actually we have no
words to explain our pleasure on the completion of this project.

Computers can no longer be termed as a mere invention it’s a


revolution. We cannot imagine our world without computers. I
feel without this consistency in efforts and explaining the
methodologies in such a lucid manner, it would never have been
possible to complete this task.
A BRIEF COMPANY PROFILE

NIIT is a leading Global Talent Development Corporation,


building skilled manpower pool for global industry requirements. The
company which was set up in 1981, to help the nascent IT industry
overcome its human resource challenges, has today grown to be
amongst world’s leading talent development companies offering
learning solutions to Individuals, Enterprises and Institutions across
40 countries.

NIIT’s training solutions in IT, Business Process Outsourcing,


Banking, Finance and Insurance, Executive Management Education,
and Communication and Professional Life Skills, touch five million
learners every year. NIIT’s expertise in learning content development,
training delivery and education process management make it the most
preferred training partner, worldwide.

Research-based Innovation, a key driver at NIIT, has enabled


the organisation to develop programs and curricula that use cutting-
edge instructional design methodologies and training delivery. NIIT’s
School Learning Solutions offers turnkey IT integration program for
schools and has provided computer – based learning in over 12,000
government and private schools. NIIT eGuru, is a comprehensive
learning solutions for schools. To address the vast population of
underprivileged, school-aged children, NIIT launched the Hole-in-the-
Wall education initiative. Its achievements in the area of Minimally
Invasive Education earned NIIT the coveted Digital Opportunity
Award, by the World Information Technology Services Alliance
(WITSA) in 2008.

NIIT’s Corporate Learning Solutions offers integrated learning


solutions, including strategic consulting, learning design, content
development, delivery, technology, assessment and learning
management to Fortune 500 companies, Universities, Technology
companies, Training corporations and Publishing houses. Element K,
delivers learning solutions for customers and partners through a
tailored combination of catalog learning products, technology, and
services. The offerings include: vLab®: hands-on labs, instructor-led
courseware, comprehensive e-reference libraries, technical journals,
and KnowledgeHub™ , a hosted learning management platform.
NIIT, together with Element K, is now the first and the best choice for
comprehensive learning solutions, worldwide.

Ushering in a new model in higher education is the not-for-


profit NIIT University, established in 2009 with a vision of being the
leading centre of innovation and learning in emerging areas of the
Knowledge Society. Nestled in the foothills of Aravali, in Neemrana,
Rajasthan, the picturesque 100 acres fully residential green campus
has been developed as an institute of excellence based on the four
core principles of providing industry linked, technology based,
research driven, seamless education.

VISION

To be the leader in the industry oriented quality education and


training and be the country’s premier institute for certification in the
field of information, electronics and communications technology
(IECT).

MISSION

To be the single source for quality assurance in computer education


amongst the nation’s institutes.

OBJECTIVES:

1. Establish itself as an institute of excellence for imparting education


and training to generate quality manpower in areas of information
Electronics and communication technology (IECT).

2. Facilitate education and training institutes in the non-formal


sector.
3. Develop a mechanism for dynamic revision of course curricula and
development of the learning materials in the textbook, CD-ROM and
web based form.

4. Impart continuing education/refresher training and corporate


training to engineering graduates, working professionals and others.
ABSTRACT OF PROJECT

We choose the project to meet the needs of hotel business as


we know that the hospitality industry has grown by leaps and
bounds in the past decade. Demand for hotel management
software in this industry is immense
My project will help them a lot by providing information
to them about all the services of the hotel to is customers. Hotel
Management software is aimed at computerizing the activities
involved in a Star Hotel. The prime activities figured out in a Star
Hotel include checkin and checkout of customers, room
reservation management of restaurant details and other services
consumed by the customer, stock maintenance, and house keeping
activities. In our project also facility of online order. Customer
can order any food item of his choice from his room.
All the records of sale and purchase has been handled so that this
project may be extended to control the accounts.
Guests provision is also available in which anyone can login
as a guest and search for the desired service required.
This project will help both the management and the
customers. User ID’s can be provided to the exclusive customers
or employee on the site. The interface is very easy and can be used
by layman also.
C#

Introduction

C# is a simple, modern, general-purpose, object-oriented


programming language intended for building solutions on the
Microsoft .NET platform. C# is the new programming language
developed by Microsoft for its .NET Framework. Many developers
see the C# language as an evolution of C and C++ programming
languages. However, since C# was created from scratch, it is a
completely new language, which has many similarities to the C, C++
and Java programming languages.

Without any doubt, C and C++ are the two most powerful
programming languages but they are also difficult for a beginner to
learn. C# on the other hand, does not have the many complexities of C
and C++ and yet it is as powerful. We can develop different types of
applications using C# such as Windows (Desktop) applications, Web
applications, Applications for mobile devices, Games and Web
Services and many others. Experts predict that C# will be used in
almost all kinds of application development in the near future.

History

During the development of the .NET Framework, the class


libraries were originally written using a managed code compiler
system called Simple Managed C (SMC).[12][13][14] In January 1999,
Anders Hejlsberg formed a team to build a new language at the time
called Cool, which stood for "C-like Object Oriented Language". [15]
Microsoft had considered keeping the name "Cool" as the final name
of the language, but chose not to do so for trademark reasons. By the
time the .NET project was publicly announced at the July 2000
Professional Developers Conference, the language had been renamed
C#, and the class libraries and ASP.NET runtime had been ported to
C#.

C#'s principal designer and lead architect at Microsoft is Anders


Hejlsberg, who was previously involved with the design of Turbo
Pascal, Embarcadero Delphi (formerly CodeGear Delphi and Borland
Delphi), and Visual J++. In interviews and technical papers he has
stated that flaws[citation needed] in most major programming languages (e.g.
C++, Java, Delphi, and Smalltalk) drove the fundamentals of the
Common Language Runtime (CLR), which, in turn, drove the design
of the C# programming language itself.

James Gosling, who created the Java programming language in


1994, and Bill Joy, a co-founder of Sun Microsystems, the originator
of Java, called C# an "imitation" of Java; Gosling further claimed that
"[C# is] sort of Java with reliability, productivity and security
deleted."[2][16] Klaus Kreft and Angelika Langer (authors of a C++
streams book) stated in a blog post that "Java and C# are almost
identical programming languages. Boring repetition that lacks
innovation," "Hardly anybody will claim that Java or C# are
revolutionary programming languages that changed the way we write
programs," and "C# borrowed a lot from Java - and vice versa. Now
that C# supports boxing and unboxing, we'll have a very similar
[17]
feature in Java." Anders Hejlsberg has argued that C# is "not a
Java clone" and is "much closer to C++" in its design.

What is the Microsoft .NET Framework?

n simple terms, the .NET Framework is a development platform


for developing different types of applications. This platform is created
by Microsoft. The .NET Framework provides tools and technologies
for developing applications for the web, desktop computers and
mobile devices.

It is important to keep in mind that the applications developed in


C# will run on computers that have the .NET Framework installed on
them. This is because the .NET Framework provides the features and
services that are needed to run these applications. To understand this
concept, let us take a look at the steps of developing a C# program:

 The first step is to write the program. The C# code can be


written using a simple text editor. However, there are
professional tools available such as Visual Studio 2005 or
Visual C# 2005 Express Edition.
 The code written in C# language is called the source code. The
computer cannot run the source code directly,it needs to be
compiled. Generally, when a source code is compiled, the
resultant code is specific to an operating system and hardware.
But this is not the case in the .NET Framework. Here, the source
code is compiled into Microsoft Intermediate Language (MSIL).
This MSIL code is not specific to any operating system or
hardware.
 Now, when the code is needed to be executed, such as when the
application is run, the Just-In-Time compiler (JIT) converts the
code to native code, which is specific for the operating system
and the hardware of the computer, on which the application will
run. Various JIT compilers are available for specific a operating
system and hardware. The .NET Framework will select the
appropriate one according to the computer on which the
application will run.
At first, it may seem like a complicated process, however it is
really very simple because everything is managed by an important
component of the .NET Framework, the Common Language Runtime
(CLR).

The CLR manages the execution of applications created using


C# or any other .NET language. This is why the C# code is referred to
as managed code. The CLR looks after the compilation process,
manages the memory and security during the application execution
and freeing up the memory when the application is no longer in use.
Before the .NET Framework, these tasks were being performed by the
developer and any error could result into an application crash.

Another major component of the .NET Framework is the Base


Class Library (also known as Foundation Class Library). This is a
collection of pre-written code for different purposes like database
access, web applications, mobile applications, web services etc.
Developers can use these pre-written codes in applications directly,
depending upon the task required. This simplifies the coding process
and saves a lot of development time.

Microsoft .NET Frameworks

What is the Microsoft .NET framework?

You may be wondering why the .NET aspect of Visual Basic is


so important in today's times. In simple terms, .NET is a framework
made by Microsoft so that developers can take advantage of code on
the internet. Many developers through the years have developed code
for their specific programming languages like C#, C++, Visual Basic,
etcetera... Instead of making code over and over again, the .NET
framework allows programmers and developers to use code on the
.NET framework to aid in the development of their software
programs. Imagine the .NET framework as sort of a file sharing
program that benefits all the programmers across all the programming
languages that use the .NET framework. When you program in Visual
Basic .NET, you are taking advantage of a rich source of
programming code that has been accumulated through the years.

What are the advantages of using the Microsoft .NET


framework?

 Code execution and deployment is made much simpler for


developers.
 Code execution and deployment is assured to be safe and free
from viruses.
 Programming models are now similar across different
languages. Choosing a programming language is already up to
you.
 Programming models adhere consistently with object oriented
styles.
Some other advantages of using the .NET Framework

Advantages. uses and functions of the .NET framework in realtion to


C#

 Various programming languages are available for writing code.


The .NET Framework provides the following languages - Visual
Basic.NET, Visual C#.NET, Visual J# (Microsoft's version of Java
language) and Visual C++.NET. Apart from these languages,
several other popular languages have their versions available
for the .NET Framework. This means that a developer can
choose a language for writing code.
 Code written in one language can be accessed by applications
written in another language. For example, if one developer
writes a piece of code in Visual Basic, another developer can
use that code for an application written in C#. This is called
`Language Inter-operability'.
 Working with data is always a complicated task in any
programming language but is also the most common task that a
developer needs to do. The .NET Framework makes this a lot
easier with ADO.NET. ADO.NET is a collection of pre-written
codes, used for working with data. In some cases, we can
perform the data handling without writing any code at all!
 The Framework provides the ASP.NET technology for
developing feature-rich, interactive web applications.

The .NET Framework is based on `Object Oriented Programming'


principles. Programs written using these principles are easy to
understand and modify.

Visual Basic

Introduction

Like the BASIC programming language, Visual Basic was


designed to be easily learned and used by beginner programmers. The
language not only allows programmers to create simple GUI
applications, but can also develop complex applications.
Programming in VB is a combination of visually arranging
components or controls on a form, specifying attributes and actions of
those components, and writing additional lines of code for more
functionality. Since default attributes and actions are defined for the
components, a simple program can be created without the
programmer having to write many lines of code. Performance
problems were experienced by earlier versions, but with faster
computers and native code compilation this has become less of an
issue.

Although programs can be compiled into native code


executables from version 5 onwards, they still require the presence of
runtime libraries of approximately 1 MB in size. This runtime is
included by default in Windows 2000 and later, but for earlier
versions of Windows like 95/98/NT it must be distributed together
with the executable.

Forms are created using drag-and-drop techniques. A tool is


used to place controls (e.g., text boxes, buttons, etc.) on the form
(window). Controls have attributes and event handlers associated with
them. Default values are provided when the control is created, but
may be changed by the programmer. Many attribute values can be
modified during run time based on user actions or changes in the
environment, providing a dynamic application. For example, code can
be inserted into the form resize event handler to reposition a control
so that it remains centered on the form, expands to fill up the form,
etc. By inserting code into the event handler for a keypress in a text
box, the program can automatically translate the case of the text being
entered, or even prevent certain characters from being inserted.

Visual Basic can create executables (EXE files), ActiveX


controls, or DLL files, but is primarily used to develop Windows
applications and to interface database systems. Dialog boxes with less
functionality can be used to provide pop-up capabilities. Controls
provide the basic functionality of the application, while programmers
can insert additional logic within the appropriate event handlers. For
example, a drop-down combination box will automatically display its
list and allow the user to select any element. An event handler is
called when an item is selected, which can then execute additional
code created by the programmer to perform some action based on
which element was selected, such as populating a related list.

Characteristics

Visual Basic has the following traits which differ from C-derived
languages:

 Multiple assignment available in C language is not possible. A =


B = C does not imply that the values of A, B and C are equal.
The boolean result of "Is B = C?" is stored in A. The result
stored in A would therefore be either false or true.
 Boolean constant True has numeric value −1.[3] This is because
the Boolean data type is stored as a 16-bit signed integer. In this
construct −1 evaluates to 16 binary 1s (the Boolean value
True), and 0 as 16 0s (the Boolean value False). This is
apparent when performing a Not operation on a 16 bit signed
integer value 0 which will return the integer value −1, in other
words True = Not False. This inherent functionality
becomes especially useful when performing logical operations
on the individual bits of an integer such as And, Or, Xor and
Not.[4] This definition of True is also consistent with BASIC
since the early 1970s Microsoft BASIC implementation and is
also related to the characteristics of CPU instructions at the
time.
 Logical and bitwise operators are unified. This is unlike some
C-derived languages (such as Perl), which have separate logical
and bitwise operators. This again is a traditional feature of
BASIC.
 Variable array base. Arrays are declared by specifying the upper
and lower bounds in a way similar to Pascal and Fortran. It is
also possible to use the Option Base statement to set the default
lower bound. Use of the Option Base statement can lead to
confusion when reading Visual Basic code and is best avoided
by always explicitly specifying the lower bound of the array.
This lower bound is not limited to 0 or 1, because it can also be
set by declaration. In this way, both the lower and upper bounds
are programmable. In more subscript-limited languages, the
lower bound of the array is not variable. This uncommon trait
does exist in Visual Basic .NET but not in VBScript.

OPTION BASE was introduced by ANSI, with the standard for


ANSI Minimal BASIC in the late 1970s.

 Relatively strong integration with the Windows operating


system and the Component Object Model. The native types for
strings and arrays are the dedicated COM types, BSTR and
SAFEARRAY.
 Banker's rounding as the default behavior when converting real
numbers to integers with the Round function.[5] ?
Round(2.5, 0) gives 2, ? Round(3.5, 0) gives 4.
 Integers are automatically promoted to reals in expressions
involving the normal division operator (/) so that division of
one integer by another produces the intuitively correct result.
There is a specific integer divide operator (\) which does
truncate.
 By default, if a variable has not been declared or if no type
declaration character is specified, the variable is of type
Variant. However this can be changed with Deftype
statements such as DefInt, DefBool, DefVar, DefObj,
DefStr. There are 12 Deftype statements in total offered by
Visual Basic 6.0. The default type may be overridden for a
specific declaration by using a special suffix character on the
variable name (# for Double, ! for Single, & for Long, % for
Integer, $ for String, and @ for Currency) or using the key
phrase As (type). VB can also be set in a mode that only
explicitly declared variables can be used with the command
Option Explicit.

History

VB 1.0 was introduced in 1991. The drag and drop design for
creating the user interface is derived from a prototype form generator
developed by Alan Cooper and his company called Tripod. Microsoft
contracted with Cooper and his associates to develop Tripod into a
programmable form system for Windows 3.0, under the code name
Ruby (no relation to the Ruby programming language).

Tripod did not include a programming language at all. Microsoft


decided to combine Ruby with the Basic language to create Visual
Basic.

The Ruby interface generator provided the "visual" part of Visual


Basic and this was combined with the "EB" Embedded BASIC engine
designed for Microsoft's abandoned "Omega" database system. Ruby
also provided the ability to load dynamic link libraries containing
additional controls (then called "gizmos"), which later became the
VBX interface.

Visual Basic .NET


Visual Basic .NET (VB.NET) is an object-oriented computer
programming language that can be viewed as an evolution of
Microsoft's Visual Basic (VB) which is generally implemented on the
Microsoft .NET Framework. Microsoft currently supplies Visual
Basic Express Edition free of charge. Visual Basic .NET is
Microsoft's Visual Basic on their .NET framework. Visual Basic is an
object oriented programming language. Any programmer can develop
applications quickly with Visual Basic. It is a very user-friendly
language. All you have to do is arrange components using visual tools
and then write code for the components. Most programmers of Visual
Basic use Visual Studio for their development needs. Moving
forward, Microsoft's .NET framework is composed of preprogrammed
code that users can access anytime. This preprogrammed code is
referred to as the class library. The programs in the class library can
be combined or modified in order to suit the needs of programmers.
Programs in .NET run on the CLR or the Common Language
Runtime environment. Regardless of computer, as long as this
environment is present, programs developed in a .NET language will
run.

Versions of Visual Basic .NET

There are four versions and five releases of Visual Basic .NET
implemented by the Visual Basic Team

Visual Basic .NET (VB 7)

The original Visual Basic .NET was released alongside Visual C# and
ASP.NET in 2002. Significant changes broke backward compatibility
with older versions and caused a rift within the developer
community[2].

Visual Basic .NET 2003 (VB 7.1)

Visual Basic .NET 2003 was released with version 1.1 of the .NET
Framework. New features included support for the .NET Compact
Framework and a better VB upgrade wizard. Improvements were also
made to the performance and reliability of the .NET IDE (particularly
the background compiler) and runtime. In addition, Visual Basic
.NET 2003 was available in the Visual Studio .NET 2003 Academic
Edition (VS03AE). VS03AE is distributed to a certain number of
scholars from each country without cost.

Visual Basic 2005 (VB 8.0)

Visual Basic 2005 is the name used to refer to the update to Visual
Basic .NET, Microsoft having decided to drop the .NET portion of the
title.

For this release, Microsoft added many features, including:

 Edit and Continue


 Design-time expression evaluation.
 The My pseudo-namespace (overview, details), which provides:
o easy access to certain areas of the .NET Framework that
otherwise require significant code to access
o dynamically-generated classes (notably My.Forms)
 Improvements to the VB-to-VB.NET converter [3]
 The Using keyword, simplifying the use of objects that require
the Dispose pattern to free resources
 Just My Code, which when debugging hides (steps over)
boilerplate code written by the Visual Studio .NET IDE and
system library code
 Data Source binding, easing database client/server
development
The above functions (particularly My) are intended to reinforce Visual
Basic .NET's focus as a rapid application development platform and
further differentiate it from C#.

Visual Basic 2005 introduced features meant to fill in the gaps


between itself and other "more powerful" .NET languages, adding:

 .NET 2.0 languages features such as:


o generics [4]
o Partial classes, a method of defining some parts of a class
in one file and then adding more definitions later;
particularly useful for integrating user code with auto-
generated code
o Nullable Types
 XML comments that can be processed by tools like NDoc to
produce "automatic" documentation
 Operator overloading [5]
 Support for unsigned integer data types commonly used in
other languages

'IsNot' operator patented

One other feature of Visual Basic 2005 is the IsNot operator that
makes 'If X IsNot Y' equivalent to 'If Not X Is Y',
which gained notoriety[6] when it was found to be the subject of a
Microsoft patent application.[7][8]
Visual Basic 2005 Express

Part of the Visual Studio product range, Microsoft created a set of free
development environments for hobbyists and novices, the Visual
Studio 2005 Express series. One edition in the series is Visual Basic
2005 Express Edition, which was succeeded by Visual Basic 2008
Express Edition in the 2008 edition of Visual Studio Express.[9]

The Express Editions are targeted specifically for people learning a


language. They have a streamlined version of the user interface, and
lack more advanced features of the standard versions. On the other
hand, Visual Basic 2005 Express Edition does contain the Visual
Basic 6.0 converter, so it is a way to evaluate feasibility of conversion
from older versions of Visual Basic.

Visual Basic 2008 (VB 9.0)

Visual Basic 9.0 was released together with the Microsoft .NET
Framework 3.5 on November 19, 2007.

For this release, Microsoft added many features, including:

 A true conditional operator, "If(boolean, value, value)", to


replace the "IIf" function.
 Anonymous types
 Support for LINQ
 Lambda expressions
 XML Literals
 Type Inference
 Extension methods

Visual Basic 2010 (VB 10.0)

In April 2010, Microsoft released Visual Basic 2010. Microsoft had


planned to use the Dynamic Language Runtime (DLR) for that
release[10] but shifted to a co-evolution strategy between Visual Basic
and sister language C# to bring both languages into closer parity with
one another. Visual Basic's innate ability to interact dynamically with
CLR and COM objects has been enhanced to work with dynamic
languages built on the DLR such as IronPython and IronRuby.[11] The
Visual Basic compiler was improved to infer line continuation in a set
of common contexts, in many cases removing the need for the " _"
line continuation character. Also, existing support of inline Functions
was complemented with support for inline Subs as well as multi-line
versions of both Sub and Function lambdas.[12]

Microsoft .NET Frameworks

What is the Microsoft .NET framework?

You may be wondering why the .NET aspect of Visual Basic is so


important in today's times. In simple terms, .NET is a framework
made by Microsoft so that developers can take advantage of code on
the internet. Many developers through the years have developed code
for their specific programming languages like C#, C++, Visual Basic,
etcetera... Instead of making code over and over again, the .NET
framework allows programmers and developers to use code on the
.NET framework to aid in the development of their software
programs. Imagine the .NET framework as sort of a file sharing
program that benefits all the programmers across all the programming
languages that use the .NET framework. When you program in Visual
Basic .NET, you are taking advantage of a rich source of
programming code that has been accumulated through the years.

What are the advantages of using the Microsoft .NET


framework?

 Code execution and deployment is made much simpler for


developers.
 Code execution and deployment is assured to be safe and free
from viruses.
 Programming models are now similar across different
languages. Choosing a programming language is already up to
you.
 Programming models adhere consistently with object oriented
styles.

Object Oriented Programming

Object oriented programming is a programming paradigm that makes


use of objects to develop computer programs. Object oriented
programming is a programming paradigm that makes use of objects to
develop computer programs. When you objectify certain parts in a
program or when you modularize it, you promote greater flexibility in
overall programming. When you use object oriented programming
languages, you can make objects interact with one another to
accomplish goals. Instead of writing code one by one every time you
make a program, you can use the previously designed objects to your
advantage. The VB .NET language is one of the premiere object
oriented programming languages in the market today.

In object oriented programming, objects interact with one another to


produce the desired results from the programmer. This makes
programming easier, less tedious, and more efficient.
Microsoft SQL

Microsoft SQL stands for Microsoft Structured Query Language. The


Microsoft SQL Server program uses the relational database
management system. Microsoft SQL allows you to manipulate
databases. Databases are basically repositories for data. If you want to
store the grades of all the students in a university then you certainly
need to have a database system around. Microsoft SQL also stores a
lot of code that is available through the .NET platform. Stored
procedures and several functions are made available for the
programmer so that they could develop competitive applications
quickly and efficiently.SQL often referred to as Structured Query
Language,[2][3] is a database computer language designed for
managing data in relational database management systems (RDBMS),
and originally based upon relational algebra. Its scope includes data
insert, query, update and delete, schema creation and modification,
and data access control. SQL was one of the first languages for Edgar
F. Codd's relational model in his influential 1970 paper, "A Relational
Model of Data for Large Shared Data Banks"[4] and became the most
widely used language for relational databases

SQL SERVER:

SQL Server is an SQL-compliant RDBMS. SQL-compliant means it


use the ANSI (American National Standard Institute) version of
Structured Query Language or ‘SQL’. Structured Query Language is
a command that allow us to modify or retrieve information from the
database.

Client server means that SQL Server is designed to store data in the
central location (the server) and deliver it on demand to numerous
other locations (the client). SQL Server is also a Relational Database
Management System (RDBMS).

FEATURES OF SQL SERVER 2005:

1. Information representation
2. Unique definition of rows
3. Systematic treatment of Null values
4. Guaranteed access
5. High level Update, Insert, and Delete
6. Retrieving information from the database.
7. Accepting query language statements.
8. Enforcing security specifications.
9. Enforcing data integrity specifications
10. Enforcing transaction consistency
11. Managing data sharing
12. Optimizing queries

SQL Server Management Studio:

SQL Server Enterprise Manager is a graphical tool that allows


easy configuration and management of Microsoft SQL Server
and SQL 2000 program group.
SQL Server Enterprise Manager can also be used to:

1. Manage logins, permission and users.

2. Create a database

3. Take back-up of database and transaction logs.

4. Manage tables

Query Analyzer:

The SQL Server Query Analyzer allows us to create adhoc


queries and run them interactively. We may also execute
Transact-SQL statements stored in text file and view the result
in result plane or result grid. The Query Analyzer also has a
color-coded editor to assist the user with checking of syntax. It
also has context sensitive help.

Queries are processed in two steps:

Interpret- First the Queries are checked for syntax.

Execute- Then the processing take

Once you start Visual Studio.NET, the large rectangular window


containing the word “start” appears. This is the start page or Visual
Studio home page. If you have recently worked on an application, you
can click on a link to automatically load the project.

The direction of the push pin on the toolbox's title bar dictates
whether or not auto hide is in effect. If the push pin is vertical, auto
hide is turned off. This means that the toolbox is always visible. If
you click on the push pin, it will be displayed vertically. At this point,
auto hide is activated and moving your cursor off the toolbox will
cause it to collapse. It will only expand when your cursor is over the
toolbox icon that appears docked against the left corner of the
window. Other windows also have autohide capabilities activated and
deactivated by clicking the window's respective push pin.

FORMS

The User Form

The first thing that you should familiarize yourself with in the Visual
Basic .NET programming language is the user form. The user form is
the box where you can add all sorts of features. On older versions of
Visual Basic, the user form has dots on it. The user form acts as a
basic interactive tool between the programmer which is you and the
one who will use the program.
The image above is the user form. It is the basic frame where the
programmer and the user interact.

You can add so many features and objects on your user form. These
things are more commonly referred to as controls. Controls are such
things like textboxes, comboboxes, option buttons, etcetera... You
will learn more about certain controls in this chapter and the later
chapters.

The Toolbox

Your Visual Basic program is equipped with a toolbox. You can


access your toolbox anytime and manipulate your forms, controls,
modules, etcetera... Simply click on a control and add it to your user
form so that your user can access it when your program is run.
Shown above is an image of a basic toolbox in Visual Basic. You can
see the general tools that are made available to you. You can
manipulate your user form with any of the tools that are available.

The controls that are going to be discussed in this chapter are the most
basic. They are the label, the textbox, and the command button.
Just click on the corresponding buttons on your Toolbox to access the
controls. Shown above are the respective button.

The Label

The label is the way you put text on your user form. If you want your
user to know what certain things are for then you have to use the
label. Click on the label button and put a label on your user form.
The Textbox

The textbox is the way the user puts text on the user form. If you want
an input in the form of text, number, or symbol, then you should
simply put a textbox in your user form. Try putting a textbox on your
user form now.

The Command Button

The command button is a control on the user form that is used to


prompt action. Action can come in the form of running a code,
closing an application, or simply clearing input made by a user. Click
on the command button control on the toolbox and place one on your
user form.

Properties

Every object that you have in your program will have properties. You
can modify the properties of any object on the properties box. It is
normally located in the lower right corner of your screen. You can
modify attributes like the alignment, style, and labels. Modify the text
that will appear on the first label that you created.
There are several tools at your disposal on the Visual Basic Toolbox.
Listed below are some of the most basic tools aside from the already
mentioned label, textbox, and button..
Checkbox

Enables the user to select or clear the associated component.

Checked Listbox

Displays a list of items with a check box on the left of each item.

Combobox

Displays an editable textbox with a drop down list of permissible


values.
DateTimePicker

Enables the user to pick a date and time and to display the date and
time in a specified format.

LinkLabel

Displays a label control that supports the hyperlink capability.

Listbox

Displays a list where the user can select items.

Listview

Displays a list of items in one of five different views.

Masked Textbox

Uses a mask to distinguish between proper and improper user input.

Month Calendar

Displays a monthly calendar wherein the user can select a date.

Notify Icon

Displays an icon in the notification area, on the right side of the


windows taskbar.
Numeric Up Down

Specifies support for transacted initialization.

Picture Box

Displays a picture.

Progress Bar

Displays the progress of an operation to a user.

Radio Button

Enables the user to select one option among other radio buttons.

Rich Textbox

Provides the user with advanced text entry.

Tool Tip

Displays information when the user moves the pointer over a control.

Tree View

Displays a hierarchical view of labeled items to the user.

Web Browser

Enables the user to browse the web through a user form.


Aside from the aforementioned tools, feel free to use the other more
advanced tools on your toolbox.
Sample Assignment

Problem - Make a Calculator that converts Celsius to Fahrenheit


and vice versa

Sample User Form is shown below

Sample Code is shown below

Public Class Form1

Dim C As Single
Dim F As Single

Private Sub Button1_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
C = TextBox1.Text

F = (9 / 5) * C + 32

TextBox2.Text = F

End Sub

Private Sub Button2_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs)
Handles Button2.Click

F = TextBox1.Text

C = (5 / 9) * (F - 32)

TextBox2.Text = C

End Sub

End Class
Description of the project:

Hotel Management

Our project is divided into three modules with which login


facility is provided to 3 users:

• Manager

• Staff

• Guest

Manager

• Can access all the information about the rooms in hotel


• Can view and update staff’s biodata
• Can add new item by filling its description
• Can book a room for the guests
• Can check or review the status/availability of the rooms.
• Can add new and update facilities opened in the hotel.
• Can view the guests room service orders.
• Can change his login password.
Staff
• Can view the details of room.
• Can check services such as house keeping, room orders,
laundry , cleaning etc...
• Can book the rooms for guests.
• Can see the status about the orders for the room service.
• Can change his login password
Guests
• Can view the status and type of the various rooms available.
• Can order for services such as food, laundry , transport etc.
• Can check out from the hotel and clear the bills.
• Can change his login password.

Other list of services given in the project are as below:


 Login Form for Manager , staff and guests
 Front Desk to get information
 Check Availability of rooms
 Booking for customers
 Advanced booking of rooms, banquet hall , restaurant or bar.
 Varity of food and beverages available to order for the guests i.e
menu
 Room service such as house keeping , customer order, laundry
etc.
 Other services i.e. Fitness center , gym and spa ,swimming pool
etc
 Recreational Activities such as movie theatre and games court :
squash court ,badminton tennis, table tennis ,bowling , snooker ,
pool , card room chess room etc
 Offers ,seasonal or for special occasions or other discount
packages
Objective of the Project

The proposed system aims at satisfying the needs of an organization


in an effective manner as well as attempting to overcome the
shortcomings of an existing system. The proposed system has the
following objectives:

Providing Adequate Security of Data: In the existing system, since


the records are maintained manually in different registers, no
provision of security is available in the existing system. So a
provision of adequate security is the current requirement, which
fulfilled by existing system.

Making A User Friendly System: The proposed system aims at


providing a user-friendly system with the user doing the least work
and the system providing all the related information for updating. The
new software provides easy to use windows graphical user interface.

Making Data Retrieval Fast: Since the proposed system does not
involve record maintenance in different registers, so the procedure of
data retrieval becomes much faster as compared to manual procedures
of retrieving the required information etc.

Reduce The Cost Of Maintaining The System: The proposed


system aims at reducing the cost of maintaining of the system as now,
information related to various aspects is not stored in different
registers, but on just one system.

SOFTWARE REQUIREMENTS:

 Microsoft Visual Studio


 SQL Server Management Studio

The proposal was given for the development of the new


(computerized) system . System is required to have easy access
to the user to retrieve and update the data . The system is
needed to be design and develop to fulfill the requirements for
fast information retreival for effective use providing flexibility so
that changes can be incorporated in the system easily . It is
also required to provide easy to handle menus and data
screens to make the fast data entry .

Functional Requirements :-

The proposed system is required to have the following


functional requirements.

- data can be allowed to update and manipulate only by specific


group of

people .
- before adding , deleting , or modifying any record , the user must
be asked

to save the changes made for confirmation .

Acceptance Criteria :-

A complete understanding of software requirement is essential


for success of a software development effort . It enables the
system engines for success of a software development effort . It
enables the system engines to refine the software allocation
and build model of the software . The performance criteria of
the proposed system is as follows -

User friendly : The system should meet user requirements of


easy to learn and use .

Response time : The response time of the system should be


low . This can be made through careful programming .
Maintainability : The system should be such that future
maintenance and enhancement could be incorporated .
Maintainability is the case when a program can be corrected if
an error is encountered , requirements for changes or
enhancements could be if the user desires so .

Error handling : The system should be porn to any runtime error


that might cause halting of the system . The error to be
identified and care can be taken to remove it .

Throughput : The system should be given maximum throughput .

The system should be reliable , versatile and efficient .

Portable : The system should be portable and should be able


to adapt to new hardware \ software .

Accuracy : The system should be accurate so that its utility is


very high .
Hardware Requirement:

Processor Pentium IV,2 GHz above


RAM 512 MB (minimum)
Hard Disk 1 GB Free Space
Drive

You might also like