visual basic soft copy

79
CERTIFICATION It is to certify that group of Students: Suman Nandan, Sukhmeet Kaur, Balwinder Singh, Jagseer Singh and Sangeeta of BCA-V semester has developed this project under my guidance and not any part of this project has been copied. This project has not been submitted not by any course or by anybody before. The project report contains all the source code designed. These codes are collectively developed by above statements under my supervision. Mr. Pritpal Singh (PROJECT GUIDE)

Upload: sonunabha

Post on 30-Oct-2014

82 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Visual Basic Soft Copy

CERTIFICATIONIt is to certify that group of Students: Suman Nandan, Sukhmeet Kaur, Balwinder Singh, Jagseer Singh and Sangeeta of BCA-V semester has developed this project under my guidance and not any part of this project has been copied. This project has not been submitted not by any course or by anybody before. The project report contains all the source code designed. These codes are collectively developed by above statements under my supervision.

Mr. Pritpal Singh

(PROJECT GUIDE)

Page 2: Visual Basic Soft Copy

ACKNOWLEDGEMENT

We have deeply depicted to project guide Mr. Pritpal Singh, faculty in Malwa Institute of Management, Dhablan. For helping us to arrive at the project idea and rendering us affectionate help at each time. We have also thankful to our classmate who have helped us whenever we required their help. We are also gratitude towards our family members those are always behind us whenever we need them last but never the less in intense is our gratitude towards the Malwa Institute of Management, Dhablan.

CONTENTS

Introduction to hostel management system Drawbacks of Existing System

Page 3: Visual Basic Soft Copy

Advantages System Design Software Requirement Specifications Database Design Database Tools Input / Output Design Coding Testing Conclusion Bibliography

INTRODUCTION TO PROJECT

Our Hostel Management System does not deals with all kind of visitors or customers, infect this is designed to deal only with the college’s students. Hostel Management System is a Customize and user-friendly software for Hostel. The use of

Page 4: Visual Basic Soft Copy

computerized approach in almost each and every field has become an essential and an obvious part in today’s life. Hostel Management System has been designed to automate, manage and look after the over-all processing not only of small intuitions but also of very large Institutes. It is capable of managing Enquiry details, Student Details, Faculty Details, and Payment Details etc. It also provides very helpful reports in the form of documents for managing the institutes in easy and accurate way. Our project of Hostel Management System is designed to deal with four colleges which are as follows:

1. Malwa Institute of Management, Rakhra.2. Patiala Polytechnic College, Rakhra.3. Thaper University.4. Modi College of Management and Engineering, Patiala.

Features of the Hostel Management System are given below:

1. The system was originally designed t o deal with the complexity of Youth hostels associations.

2. All administrative functions and application system data has been designed to be kept centrally and unique for the entire organization.

3. Guest Profiles and Customers details are carefully created and maintained. 4. A complete Internet online interface allow direct bookings of rooms in the hostel.

Services provided by the Hostel Management System:1. Room Allocation - It maintains different type of room allocation (one seated, two seated,

shared rooms, common rooms etc) depending on waiting lists.2. Mess / Canteen Management System - It takes care of mess joining, discontinuation, billing

etc.3. Inventory Management System - It will control the allotment of table chair, beds etc. to

rooms of the Hostel.4. Hostel Account Management System - Separate hostel account can be maintained for each

student. It will be linked with central account system as well.5. Fee and fine collection - Any fine or fee can be collected. Receipt can be issued through the

Hostel Management System.6. Reports - Waiting list, allocation list, mess joining report, Fine report, due list etc can be

generated by the system.7. Student Details – the details are common and are visible from all hostels.

Drawbacks of the traditional Manual Systems: The traditional management System was suffers from a lot of problems and limitations. Due to the inability of efficiency of services of Traditional System, the need arise for the invention of the Computer based Hostel management System which provides the services more accurately and at fast speed to the customers. The drawback from which the Traditional System was suffers are given as:

1. Less Security: The major drawback of the traditional Systems was Security. They are not capable to provide the security to the student, which are residing out there. All kind of information details about the students were kept on the register or papers. The system has to suffer when the registers or paper containing the information gets lose. Any kind of disaster like fire, water can be harmful for the system.

2. Lack of Portability: The other major drawback of the traditional Systems was that they were not portable. Reports were maintained on the registers manually. And it was very difficult task to carry these registers and other components from one place to another.

3. Less Speed of Services: the traditional Systems was not capable to provide the services at very fast speed. The system was handled manually so the system was takes the time to

Page 5: Visual Basic Soft Copy

fulfill the requirement of the residents of the system. If anyone wants to search a particular record from the complex database then it was not easy to find it from the manually prepared registers and documents.

4. Updating of the Records very difficult : this was also a critical drawback of the traditional Systems. If any record need to be update, then first we have to find it from the registers and then change. There was not centralized record of data, the same copy data was spread at more than one department or places. If we want to update a single record we have to do it at every and each place where it is stored.

5. Expensive: In the traditional Systems there was a need of lot of men power. So that records of the information related to the hostel can be prepared on the documents and registers. Recruitment of men power was a very expensive process. There was a need of many experts so that overall processing of the hostel can be maintained efficiently and accurately.

6. Redundant Data: There are many separate fields of the hostel that need to share some common data. Because the data was not centralized so the same copy of data was maintained at all those places where we need the same data. It was also very difficult to modify the data due to the decentralized approach to prepare and maintain the data about the college activities.

Advantages of the New Hostel Management System :

1. Security2. Portability 3. Loss of data is minimized.4. Easy maintenance5. Redundancy is improved. 6. Updating becomes very easy.7. Very high speed of services.

VISUAL BASIC

Microsoft visual basic is a powerful development platform developed by Microsoft that can be used to create feature-rich application for the Windows 95 and Windows NT Operating systems easily and quickly. It is based on event driven programming model. Visual basic provides a rapid

Page 6: Visual Basic Soft Copy

application development environment, a rich object-based language and easy to use of debugging tools. It is primarily a visual design environment.

Visual Basic application is created by designing the forms that makeup the interface, adding code to the forms and the objects such as buttons and adding any required support code in additional modules. Visual basic consists of two parts viz. “visual” and “basic”. The “visual” refers to the method used to create the graphical user interface (GUI). Rather than writing numerous lines of code to describe the appearance and location of interface elements, you simply add objects, which are pre built into place on screen. This part makes Visual Basic a true RAD (Rapid Application Development) tool.

The Basic part refers to the BASIC language since Visual Basic is a descendant of BASIC (Beginners All-Purpose Symbolic Instruction Code), which was often the first language that programmers used to learn in order to become familiar with programming basics before switching to any other powerful language. Visual Basic has evolved from the original BASIC language and now contains several hundred statements, functions and keywords, many of which relate directly to the Windows GUI. Visual Basic is not only a language, but is an integrated development environment (IDE). An IDE is basically a term commonly used in the programming world to describe the interface and environment where you can develop, run, test and debug your applications. Visual Basic may be Multiple Development Environment (MDE).

NEED OF VISUAL BASIC:-

The Visual Basic environment increases the productivity of a programmer by providing tools necessary to develop extremely sophisticated applications. Unlike other windows programming environment like Visual C++, Visual Basic programs are very simple and easy to write. The purpose of the parent language BASIC, is to teach computer programming to a beginner, has been retained in Visual Basic also.

Visual Basic follows the standard syntax of BASIC except that some new language features have also been added to it to give more flexibility to the programmer. Visual Basic relies very heavily on windows user interface. Therefore the only purpose to work in Visual Basic environment is to have a firm understanding of how to use mouse, windows, pull-down menus and dialogue boxes.

FEATURES OF VISUAL BASIC:-

Writing a GUI program is much easier in Visual Basic. Visual Basic has a very user friendly environment, which helps to create forms, add controls to the form and write code behind the form quickly and easily. Visual Basic also has an online help system. This system contains thousands of programming examples.

The main features of Visual Basic are discussed as follows:-

1. EVENT DRIVEN PROGRAMMING LANGUAGE:-

Everything in Visual Basic is event-driven. Unlike earlier programming languages like COBOL and Pascal in which control was with application, in Visual Basic user is in the control of the application. Every time the user clicks a command button or presses the mouse, an event stream is generated and code that has been written behind the event is executed. After the execution of the code the control again comes back to user.

2. OBJECT ORIENTATION:-

Visual Basic follows some of the object oriented concepts. Everything in Visual Basic is an object. If a large application is written, it can be broken into different objects and develop these objects separately. As the objects can be developed separately, they can also be tested independently. By changing the methods and properties of these separately developed objects, a great deal of control can be exerted over user’s interaction with the Visual Basic

Page 7: Visual Basic Soft Copy

program that has been written. Though Visual Basic doesn’t follow all the concepts and principles of object oriented development as supported by VC++ and other development environment, a good object oriented application can be written in it.

3. GUI/WINDOWS ENVIRONMENT:-

An application developed in visual basic has the looks and feel of windows application development system. It behaves like any other windows program to which any user is accustomed, so, for any user it is not new and he feels very comfortable while using an application developed in Visual Basic.

4. INTERNET BASED APPLICATION:-

Visual Basic can be used to write internet programs. VISUAL Basic can be extended to other environments, which means objects developed in Visual Basic can be used in other applications by the use of active X controls, Dynamically Linked Libraries (DLLs), and Add-Ins.

CHARACTERSTICS OF VISUAL BASIC:-

1. Boolean constants true has numeric value -1

2. Logical and bitwise operators are unified.

3. Variable based length.

4. By default the variable is of variant type.

WORKING IN DEVELOPMENT ENVIRONMENT:-

There are certain steps to be followed while developing a program in Visual Basic. These steps are as follows:-

1. The first step in writing a graphical user interface program to be design and build the user interface. This user interface is the front end of the program. Through this interface the user interacts with the program and controls the flow of the program.

2. After developing the user interface the developer writes code that responds to different events.

3. The next step is testing and debugging to ensure that the programs written are correct and give the desired output.

4. If everything goes well till this point the developer converts the application into a runtime version and finally prepares a distributable set of files.

THE ENVIRONMENT :

Once you start Visual Basic, several different items appear on your screen. Together, these items represent the Visual Basic development environment. Each item of the Visual Basic development performs a specific function. The main items of the Visual Basic are:-

1. Toolbox

2. Form Designer

3. Project Explorer Window

4. Properties Window

Page 8: Visual Basic Soft Copy

5. Code Editor Window

6. Standard Toolbar

7. Menu Bar

THE TOOLBOX

Toolbox is a container that contains different objects and controls. The objects and controls in the toolbox can be added to the toolbox by using Components command on the project menu. The Visual Basic tool box contains two types of controls:-

1. Standard Controls

2. Custom Controls

The controls built into Visual Basic are standard controls. Custom controls are added by including special file, which contains the control. Typically custom controls are contained in files with extensions .VBX and .OCX.

In case if the toolbox is not visible then one can use the following steps for showing the toolbox:-

1. Select the view menu.

2. Select the toolbox option from this menu.

FORM DESIGNER WINDOW

Every window created in visual basic is a form. In the middle of the screen, between all the toolboxes and other windows, the form designer is placed, which is actually a work space where you actually design the visual layout of the form. A form is just like a Canvas on which a painter or an artist paints his/her work. So whenever a user interface is built, the form designer window is used. Visual Basic provides am form designer window at design time, which contains the form and all the necessary controls that you place on the form. The default form contains the minimum elements used by most forms: a title bar, maximize, minimize and close buttons.

PROJECT EXPLORER WINDOW

The project explorer window can be related to the window’s explorer. As window’s explorer contains list of all files in the local hard disk, project explorer window similarly contains the list of all the files, which were used to build an application. In the project explorer window, collection of files is called project. If there is more than one project then it is called project group. It is a quick reference to various element forms, classes and modules in your project.

If the project explorer window is not visible by default, then following options can be used to make it visible:-

1. Select view menu, then select project explorer option.

2. Press Ctrl+R, shortcut to display project explorer window.

PROPERTIES WINDOW

Visual Basic provides a library/container of standard objects, which are used in the application. However each object can be modified to suit the application requirements. The properties window is used to customize the object for an application by assigning values to different

Page 9: Visual Basic Soft Copy

parameters listed in the properties window. Properties can be viewed alphabetically or by category by clicking the alphabetic or categorized tabs in the properties window. Clicking the property displays a short description of the property.

If the properties window is not visible by default, then the following methods can be used to display the properties window:-

Press F4, the shortcut to display the properties window Select view menu and then select properties window option.

CODE EDITOR WINDOW

Visual Basic provides code editor window to write the user defined codes. In Visual Basic the editor is called the code window. Code window can be opened by double clicking on a form or control in the form layout window. The code can be either associated with a form in your project or contained in separated code module.

Hardware/Software Requirements

Hardware Requirements

Windows XP

512 MB RAM

40 GB Hard disk

processor AMD

Software Requirements

Visual Basic 6.0

Microsoft word

Page 10: Visual Basic Soft Copy

DATABASE DESIGN

Database design is a complex subject, no matter how easy some people think it is. This session only scratches the surface, but it is a good scratch.

A properly designed database is a model of a business, or some "thing" in the real world. Like their physical model counterparts, data models enable you to get answers about the facts that make up the objects being modeled. It's the questions that need answers that determine which facts need to be stored in the data model.

In the relational model, data is organized in tables that have the following characteristics: every record has the same number of facts; every field contains the same type of facts in each record; there is only one entry for each fact; no two records are exactly the same; the order of the records and fields is not important.

At the end of this reading, you should have a basic understanding of problems resulting from poor database design, be familiar with the Domain/Key normal form, understand a process for designing a relational database, and be aware of the tools used in Microsoft Access® to support integrity constraints in a database.

Introduction to database designThis article/tutorial will teach the basis of relational database design and explains how to make a good database design. It is a rather long text, but we advise to read all of it. Designing a database is in fact fairly easy, but there are a few rules to stick to. It is important to know what these rules are, but more importantly is to know why these rules exist, otherwise you will tend to make mistakes!

Page 11: Visual Basic Soft Copy

Standardization makes your data model flexible and that makes working with your data much easier. Please, take the time to learn these rules and apply them! The database used in this article is designed with our database design and modeling tool Design for Databases.

A good database design starts with a list of the data that you want to include in your database and what you want to be able to do with the database later on. This can all be written in your own language, without any SQL.

SYSTEM DESIGN

SYSTEM DEVELOPMENT LIFE CYCLE

The Systems Development Life Cycle (SDLC) is a conceptual model used in project management that describes the stages involved in an information system development project from an initial feasibility study through maintenance of the completed application. Various SDLC methodologies have been developed to guide the processes involved including the waterfall model (the original SDLC method), rapid application development (RAD), joint application development (JAD), the fountain model and the spiral model. Mostly, several models are combined into some sort of hybrid methodology. Documentation is crucial regardless of the type of model chosen or devised for any application, and is usually done in parallel with the development process. Some methods work better for specific types of projects, but in the final analysis, the most important factor for the success of a project may be how closely particular plan was followed.

The image below is the classic Waterfall model methodology, which is the first SDLC method and it describes the various phases involved in development.

Page 12: Visual Basic Soft Copy

Briefly on different Phases:

Feasibility :

The feasibility study is used to determine if the project should get the go-ahead. If the project is to proceed, the feasibility study will produce a project plan and budget estimates for the future stages of development.

Requirement Analysis and Design :

Analysis gathers the requirements for the system. This stage includes a detailed study of the business needs of the organization. Options for changing the business process may be considered. Design focuses on high level design like, what programs are needed and how are they going to interact, low-level design (how the individual programs are going to work), interface design (what are the interfaces going to look like) and data design (what data will be required). During these phases, the software's overall structure is defined. Analysis and Design are very crucial in the whole development cycle. Any glitch in the design phase could be very expensive to solve in the later stage of the software development. Much care is taken during this phase. The logical system of the product is developed in this phase.

Implementation :

In this phase the designs are translated into code. Computer programs are written using a conventional programming language or an application generator. Programming tools like Compilers, Interpreters, Debuggers are used to generate the code. Different high level programming languages like C, C++, Pascal, Java are used for coding. With respect to the type of application, the right programming language is chosen.

Testing :

In this phase the system is tested. Normally programs are written as a series of individual modules, these are subject to separate and detailed test. The system is then tested as a whole. The separate modules are brought together and tested as a complete system. The system is tested to ensure that interfaces between modules work (integration testing), the system works

Page 13: Visual Basic Soft Copy

on the intended platform and with the expected volume of data (volume testing) and that the system does what the user requires (acceptance/beta testing).

Maintenance :

Inevitably the system will need maintenance. Software will definitely undergo change once it is delivered to the customer. There are many reasons for the change. Change could happen because of some unexpected input values into the system. In addition, the changes in the system could directly affect the software operations. The software should be developed to accommodate changes that could happen during the post implementation period.

The systems development life cycle (SDLC) is a conceptual model used in project management that describes the stages involved in an information system development project, from an initial feasibility study through maintenance of the completed application.

Various SDLC methodologies have been developed to guide the processes involved, including the waterfall model (which was the original SDLC method); rapid application development (RAD); joint application development (JAD); the fountain model; the spiral model; build and fix; and synchronize-and-stabilize. Frequently, several models are combined into some sort of hybrid methodology. Documentation is crucial regardless of the type of model chosen or devised for any application, and is usually done in parallel with the development process. Some methods work better for specific types of projects, but in the final analysis, the most important factor for the success of a project may be how closely the particular plan was followed.

In general, an SDLC methodology follows the following steps:

1. The existing system is evaluated. Deficiencies are identified. This can be done by interviewing users of the system and consulting with support personnel.

2. The new system requirements are defined. In particular, the deficiencies in the existing system must be addressed with specific proposals for improvement.

3. The proposed system is designed. Plans are laid out concerning the physical construction, hardware, operating systems, programming, communications, and security issues.

4. The new system is developed. The new components and programs must be obtained and installed. Users of the system must be trained in its use, and all aspects of performance must be tested. If necessary, adjustments must be made at this stage.

5. The system is put into use. This can be done in various ways. The new system can phased in, according to application or location, and the old system gradually replaced. In some cases, it may be more cost-effective to shut down the old system and implement the new system all at once.

6. Once the new system is up and running for a while, it should be exhaustively evaluated. Maintenance must be kept up rigorously at all times. Users of the system should be kept up-to-date concerning the latest modifications and procedures.

WATERFALL MODEL

This is also known as Classic Life Cycle Model (or) Linear Sequential Model (or) Waterfall Method. This model has the following activities.

1. System/Information Engineering and Modeling

Page 14: Visual Basic Soft Copy

As software is always of a large system (or business), work begins by establishing the requirements for all system elements and then allocating some subset of these requirements to software. This system view is essential when the software must interface with other elements such as hardware, people and other resources. System is the basic and very critical requirement for the existence of software in any entity. So if the system is not in place, the system should be engineered and put in place. In some cases, to extract the maximum output, the system should be re-engineered and spruced up. Once the ideal system is engineered or tuned, the development team studies the software requirement for the system.

2. Software Requirement Analysis

This process is also known as feasibility study. In this phase, the development team visits the customer and studies their system. They investigate the need for possible software automation in the given system. By the end of the feasibility study, the team furnishes a document that holds the different specific recommendations for the candidate system. It also includes the personnel assignments, costs, project schedule, target dates etc. The requirement gathering process is intensified and focused specially on software. To understand the nature of the program(s) to be built, the system engineer or "Analyst" must understand the information domain for the software, as well as required function, behavior, performance and interfacing. The essential purpose of this phase is to find the need and to define the problem that needs to be solved.

3. System Analysis and Design

In this phase, the software development process, the software's overall structure and its nuances are defined. In terms of the client/server technology, the number of tiers needed for the package architecture, the database design, the data structure design etc. are all defined in this phase. A software development model is thus created. Analysis and Design are very crucial in the whole development cycle. Any glitch in the design phase could be very expensive to solve in the later stage of the software development. Much care is taken during this phase. The logical system of the product is developed in this phase.

4. Code Generation

The design must be translated into a machine-readable form. The code generation step performs this task. If the design is performed in a detailed manner, code generation can be accomplished without much complication. Programming tools like compilers, interpreters, debuggers etc are used to generate the code. Different high level programming languages like C, C++, Pascal and Java are used for coding. With respect to the type of application, the right programming language is chosen.

5. Testing

Once the code is generated, the software program testing begins. Different testing methodologies are available to unravel the bugs that were committed during the previous phases. Different testing tools and methodologies are already available. Some companies build their own testing tools that are tailor made for their own development operations.

6. Maintenance

The software will definitely undergo change once it is delivered to the customer. There can be many reasons for this change to occur. Change could happen because of some unexpected input values into the system. In addition, the changes in the system could

Page 15: Visual Basic Soft Copy

directly affect the software operations. The software should be developed to accommodate changes that could happen during the post implementation period.

DATABASE DESIGN TOOLS

MICROSOFT ACCESS :

Microsoft Access is a computer application used to create and manage computer-based databases on desktop computers and/or on connected computers (a network). Microsoft Access can be used for personal information management (PIM), in a small business to organize and manage data, or in an enterprise to communicate with servers.

Like any other computer application, in order to use Microsoft Access, you must first install it. After installing Microsoft Access, then you can open it. There are various ways you can open Microsoft Access. It gets launched like the usual products you have probably been using. As such, to start this program, you could click Start -> (All) Programs -> Microsoft Office -> Microsoft Office Access 2007. You can also launch it from Windows Explorer or My Computer. To do this, locate its shortcut in Windows Explorer or My

Page 16: Visual Basic Soft Copy

Computer. By default, Microsoft Access 2007 is located in C:\Program Files\Microsoft Office\Office12 and its shortcut is called MSACCESS.EXE. Once you have located it, you can then double-click it.

If you have a Microsoft Access database such as an E-Mail attachment, a file on a floppy disk, on the network, or in any other means, once you see its icon, you can double-click it. Not only will this action launch Microsoft Access, but also it will open the file.

You can also launch Microsoft Access from a shortcut. If you happen to use the software on a regular basis, you can create a shortcut on your desktop or on the Quick Launch area.

If you are working on a network of related computers, your database may be located in another computer. In this case the network or database administrator would create a link or shortcut to the drive that is hosting the database. You can then click or double-click this link or shortcut to open the database and, as a result, launch Microsoft Access.

INTRODUCTION TO ORACLE

ORACLE is a fourth generation relational database management system. In general, a database management system (DBMS) must be able to reliably manage a large amount of data in a multi-user environment so that many users can concurrently access the same data. All this must be accomplished while delivering high performance to the users of the database. A DBMS must also be secure from unauthorized access and provide efficient solutions for failure recovery. The ORACLE Server provides efficient and effective solutions for the major database features.

ORACLE consists of many tools that allow you to create an application with ease and flexibility. You must determine how to implement your requirements using the features available in

Page 17: Visual Basic Soft Copy

ORACLE, along with its tools. The features and tools that you choose to use to implement your application can significantly affect the performance of your application.

Several of the more useful features available to ORACLE application developers are integrity constraints, stored procedures and packages, database triggers, cost-based optimizer, shared SQL, locking and sequences.

This documentation will lead you through the main features and tools of ORACLE. It is intended to give you a partial view of what is available to you to use within the assignments.

This documentation will cover:

ORACLE Architecture - provides a basic understanding of the ``Big Picture'' including the concepts and terminology of the ORACLE Server.

Starting ORACLE And Other Important Information - provides the knowledge of how to set up your account and other system environment variables. It will also provide information about how ORACLE is currently setup, which you will require, and the steps you must take to report any problems.

SQL*Plus (Terminal Monitor) - provides a summary of the commands that you will require in order to create tables and manipulate the database.

SQL*Loader - provides a summary of the commands that you will require to allow you to load data from a file to the database.

SQL Commands - provides the syntax of some of the SQL Commands in ORACLE to help you get started. This section will only shed light on the Data Definition Language commands and will not contain any information on querying the database (which should be covered in class).

Is ORACLE hard to learn? Not really. Use this manual to give you an introduction and reference, and peruse whatever code the T.A. gives you, but above all else experiment! No amount of documentation could hope to encapsulate all of the little ins and outs that some good old fashioned fiddling around will find. Try to remember that a few thousand pages were boiled down to this thin tome that you are holding, so if you think that this book is the be-all and end-all of ORACLE knowledge... Well, you'll find out soon enough.

SQL*Plus Commands :

SQL*Plus commands allow a user to manipulate and submit SQL statements. Specifically, they enable a user to:

Enter, edit, store, retrieve, and run SQL statements List the column definitions for any table

Format, perform calculations on, store, and print query results in the form of reports

Access and copy data between SQL databases

Page 18: Visual Basic Soft Copy

The following is a list of SQL*Plus commands and their functions. The most commonly used commands are emphasized in italics:

/ - Execute the current SQL statement in the buffer - same as RUN ACCEPT - Accept a value from the user and place it into a variable

APPEND - Add text to the end of the current line of the SQL statement in the buffer

AUTOTRACE - Trace the execution plan of the SQL statement and gather statistics

BREAK - Set the formatting behavior for the output of SQL statements

BTITLE - Place a title on the bottom of each page in the printout from a SQL statement

CHANGE - Replace text on the current line of the SQL statement with new text

CLEAR - Clear the buffer

COLUMN - Change the appearance of an output column from a query

COMPUTE - Does calculations on rows returned from a SQL statement

CONNECT - Connect to another Oracle database or to the same Oracle database under a different user name

COPY - Copy data from one table to another in the same or different databases

DEL - Delete the current line in the buffer

DESCRIBE - List the columns with datatypes of a table

EDIT - Edit the current SQL statement in the buffer using an external editor such as vi or emacs

EXIT - Exit the SQL*Plus program

GET - Load a SQL statement into the buffer but do not execute it

HELP - Obtain help for a SQL*Plus command (In some installations)

HOST - Drop to the operating system shell

INPUT - Add one or more lines to the SQL statement in the buffer

LIST - List the current SQL statement in the buffer

QUIT - Exit the SQL*Plus program

REMARK - Place a comment following the REMARK keyword

RUN - Execute the current SQL statement in the buffer

SAVE - Save the current SQL statement to a script file

SET - Set a variable to a new value

SHOW - Show the current value of a variable

SPOOL - Send the output from a SQL statement to a file

START - Load a SQL statement located in a script file and then run that SQL statement

TIMING - Used to time the execution of SQL statements for performance analysis

Page 19: Visual Basic Soft Copy

TTITLE - Place a title on the top of each page in the printout from a SQL statement

UNDEFINE - Delete a user defined variable

Structured Query Language (SQL) is the language used to manipulate relational databases. SQL is tied very closely with the relational model.

In the relational model, data is stored in structures called relations or tables. Each table has one or more attributes or columns that describe the table. In relational databases, the table is the fundamental building block of a database application. Tables are used to store data on Employees, Equipment, Materials, Warehouses, Purchase Orders, Customer Orders, etc. Columns in the Employee table, for example, might be Last Name, First Name, Salary, Hire Date, Social Security Number, etc.

SQL statements are issued for the purpose of:

Data definition - Defining tables and structures in the database (DB). Data manipulation - Inserting new data, Updating existing data, Deleting existing data, and

Querying the Database ( Retrieving existing data from the database).

Another way to say this is the SQL language is actually made up of 1) the Data Definition Language (DDL) used to create, alter and drop scema objects such as tables and indexes, and 2) The Data Manipulation Language (DML) used to manipulate the data within those schema objects.

The SQL language has been standardized by the ANSI X3H2 Database Standards Committee. Two of the latest standards are SQL-89 and SQL-92. Over the years, each vendor of relational databases has introduced new commands to extend their particular implementation of SQL. Oracle's implementation of the SQL language conforms to the basic SQL-92 standard and adds some additional commands and capabilities.

Page 20: Visual Basic Soft Copy

INPUT/ OUTPUT:

Page 21: Visual Basic Soft Copy

Description of menus:-

This is the MDI form.

It contains all the menus of the project such as admission, rooms, mess, searching, update, security, deletion and transport etc.

This form contains all the forms of the whole project.

This form describes the admission menu. :

The ADDMISSION menu can access by using shortcut Alt+a. This menu contains the New and Open sub-menus.

Page 22: Visual Basic Soft Copy

This form contains the details of rooms.

This menu can be accessed by Shortcut Alt+r

It contains two sub-menus:-Room types and Room transformation.

Room type contains types of different rooms.

Room transformation contains transformation of room types from one to another.

Page 23: Visual Basic Soft Copy

This form contains the details of the mess services provided by the hostel.

It can be accessed directly by shortcut Alt+m.

The form contains the sub-menu:-type of food.

Page 24: Visual Basic Soft Copy

This form contains search menu.

It can be accessed by shortcut Alt+s

When user wants to search any record, he has to enter just student’s name and Student’s registration number and the corresponding match is displayed if found any.

Page 25: Visual Basic Soft Copy

This form contains the updation menu.

It can directly access from shortcut Alt+u.

It contains two sub-menus: Open to change and New record.

Page 26: Visual Basic Soft Copy

This form contains the security menu. It contains the types of security available in hostel.

It can access directly by shortcut Alt+s.

Page 27: Visual Basic Soft Copy

The form describes the deletion menu.

The menu can access without keyboard by shortcut Alt+d.

This menu consists of a sub-menu delete record.

Page 28: Visual Basic Soft Copy

The form contains the transport menu.

It can be access by shortcut by Alt+t.

It consists of two sub menus :-Root’s type and Charges.

Page 29: Visual Basic Soft Copy

Description of forms:-

The new form contains the record of new entering student in the student.

It has following attributes:

University registration, student’s name, father’s name, mother’s name, date of birth, gender, address, contact no., college name and course name.

User can go to main menu by clicking the back command.

Page 30: Visual Basic Soft Copy

If you want to open any student’s record. Then open form is used.

Enter the student’s university registration no. and name and then click on open record menu.

If any corresponding match is found. Then corresponding student’s record is displayed.

Back command is used to go to back to MDI form.

Page 31: Visual Basic Soft Copy

Types of room form contains the two types of rooms:single and shared and one back command button.

By clicking on the any one of the room type, user can select his choice of room.

Page 32: Visual Basic Soft Copy

]

If single room is selected then a new form is displayed, which describes the facilities provided by hostel with charges.

The facilities are:

A.C. or room cooler, room heater, study table with lamp, attached bathroom, personal lockers, internet facility, and fridge.

Page 33: Visual Basic Soft Copy

If shared room is selected then a more new form is opened which contains the facilities of shared room.

The facilities are:

Different bed for each person, 24 hours electricity available, study table with lamp, phone facility and internet.

Page 34: Visual Basic Soft Copy

ROOM TRANSFORMATIONS:

There is also a facility provided by hostel, that is user can change his room either from single to shared or shared to single. The above facility is described by this form.

The form contains the command button back.

Page 35: Visual Basic Soft Copy

If single to shared is selected, then a new form is displayed, which consists of student name registration no., old room no. and new room no.

Page 36: Visual Basic Soft Copy

If shared to single is selected, then new form is displayed that includes same information as in later i.e. in single to shared.

Page 37: Visual Basic Soft Copy

TYPE OF FOOD:

It contains the types of food:

Veg

Non-veg

Extra items.

Page 38: Visual Basic Soft Copy

If veg is selected then new form is displayed, then breakfast and lunch/dinner options are displayed.

Page 39: Visual Basic Soft Copy

If breakfast is selected, then a new form is displayed, which contains the available items for breakfast provided by the hostel. Breakfast contains the items shown in the form. The combo boxes for “Parantha” and “Curd” contains corresponding types.

Page 40: Visual Basic Soft Copy

If lunch and dinner option is selected, then corresponding available items are displayed by this form. The combo boxes contains types of corresponding labels.

The form contains the different non-vegetarian items available in the hostel mess.

Page 41: Visual Basic Soft Copy

The form describes the extra items available in the mess/canteen such as snacks, soups, cold drinks.

Page 42: Visual Basic Soft Copy

If user wants to search any student’ s record, then he has to just fill above form. The record is displayed if any match is found.

Page 43: Visual Basic Soft Copy

This form provides the facility of making changes in existing record.

Page 44: Visual Basic Soft Copy

If student’s whole information is updated then new form is available for this purpose.

The form displays the types of security available in hostel to maintain discipline among students.

Page 45: Visual Basic Soft Copy

Wardens are here to maintain discipline with their shifts and contacts.

Page 46: Visual Basic Soft Copy

Any security related information can be get from the hostel’s security guards. Their shifts and contact numbers are given for any investigation.

Page 47: Visual Basic Soft Copy

CCD cameras are also provided by hostel for fast and technical security

Page 48: Visual Basic Soft Copy

Delete form is used for deleting any students record from the hostel’s records permanently just by filling this form and clicking on the full record.

Page 49: Visual Basic Soft Copy

Continue form last form by clicking on full record. Then new form is displayed from which by selecting delete command record is deleted.

Page 50: Visual Basic Soft Copy

The form contains the types of transportation root type, which is as follows:

Hostel to college

College to hostel

User can select any of command for getting related information.

Page 51: Visual Basic Soft Copy

Hostel to college form display the timing of departure from hostel with bus no. and driver’s contact no. and college name for every bus.

Page 52: Visual Basic Soft Copy

College to hostel form contains the information same as from hostel to college, the only difference is of departure time.

Page 53: Visual Basic Soft Copy

Transportation charges can be accessed from here. User can deposit his charges either half yearly or yearly.

Page 54: Visual Basic Soft Copy

CODING OF ALL THE FORMS :

Coding:-

Admission

Private Sub BACK_Click()

Unload Me

End Sub

Private Sub ADDNEW_Click()

Data1.Recordset.addnew

End Sub

Private Sub FIRST_Click()

Data1.Recordset.MoveFirst

End Sub

Private Sub Form_Load()

Combo1.AddItem ("MALWA INSTIUITE OF MANAGEMENT, RAKHRA")

Combo1.AddItem ("MOHINDRA COLLEGE, PATIALA")

Combo1.AddItem ("MODI COLLEGE, PATIALA")

Combo1.AddItem ("VIKRAM COLLEGE OF COMMERCE, PATIALA")

Combo1.AddItem ("STATE COLLEGE, PATIALA")

Combo1.AddItem ("RAKHRA COLLEGE OF MANAGEMENT, RAKHRA")

Combo2.AddItem "BCA"

Combo2.AddItem "BBA"

Combo2.AddItem "ITI"

Combo2.AddItem "B.A"

Combo2.AddItem "MCA"

Combo2.AddItem "MBA"

Combo2.AddItem "COMMERCE"

Combo2.AddItem "B.ED"

End Sub

Private Sub LAST_Click()

Data1.Recordset.MoveLast

Page 55: Visual Basic Soft Copy

End Sub

Private Sub NEXT_Click()

Data1.Recordset.MoveNext

If Data1.Recordset.EOF Then

MsgBox "You are on last record"

End If

End Sub

Private Sub PREVIOUS_Click()

Data1.Recordset.MovePrevious

If Data1.Recordset.BOF Then

MsgBox "You are on first record"

End If

End Sub

Private Sub SAVE_Click()

MsgBox "record has been successfully saved", vbInformation

End Sub

Open:

Private Sub Command1_Click()

Form1.Show

End Sub

Private Sub Command2_Click()

Unload Form2

End Sub

Types of room:

Private Sub Command1_Click()

Unload Me

End Sub

Private Sub Command2_Click()

Load Form4

Form4.Show

End Sub

Page 56: Visual Basic Soft Copy

Private Sub Command3_Click()

Load Form5

Form5.Show

End Sub

Room transformation:

Private Sub Command1_Click()

Form29.Show

End Sub

Private Sub Command2_Click()

Form30.Show

End Sub

Private Sub Command3_Click()

Unload Me

End Sub

Single room:

Private Sub Option2_Click()

End Sub

Private Sub Command1_Click()

Form23.Show

End Sub

Private Sub Command2_Click()

Form1.Show

End Sub

Private Sub Command3_Click()

Unload Me

End Sub

Shared room:

Private Sub Command1_Click()

Form24.Show

End Sub

Page 57: Visual Basic Soft Copy

Private Sub Command2_Click()

Unload Me

End Sub

Private Sub Form_Load()

List1.AddItem "DIFFERENT BED FOR EACH PERSON"

List1.AddItem "24HRS ELECTRICITY AVAILBLE"

List1.AddItem "STUDY TABLE WITH LAMP"

List1.AddItem "PHONE FACULITIES"

List1.AddItem "INTERNET"

End Sub

Single to shared:

Private Sub Command2_Click()

Unload Me

End Sub

Shared to single:

Private Sub Command1_Click()

Unload Me

End Sub

Types of food:

Private Sub Command1_Click()

Unload Me

End Sub

Private Sub Command2_Click()

Form11.Show

End Sub

Private Sub Command3_Click()

Form9.Show

End Sub

Private Sub Command4_Click()

Form10.Show

End Sub

Vegetarian food:

Page 58: Visual Basic Soft Copy

Private Sub Command1_Click()

Unload Me

End Sub

Private Sub Command2_Click()

Form7.Show

End Sub

Private Sub Command3_Click()

Form8.Show

End Sub

Breakfast

Private Sub Command2_Click()

Unload Me

End Sub

Private Sub Form_Load()

Combo1.AddItem "ALLU PARANTHA"

Combo1.AddItem "GOBI PARANTHA"

Combo1.AddItem "SIMPLE PARANTHA"

Combo2.AddItem "SIMPLE CURD"

Combo2.AddItem "RIATA"

End Sub

Lunch/dinner:

Private Sub Command1_Click(Index As Integer)

Unload Me

End Sub

Private Sub Form_Load()

Combo1.AddItem "ZEERA RICE"

Combo1.AddItem "BOILED RICE"

Combo1.AddItem "WITHOUT ZEERA RICE"

Combo2.AddItem "TANDORI ROTI"

Combo2.AddItem "SIMPLE ROTI"

Combo2.AddItem "MISSI ROTI"

Combo2.AddItem "MAKKI DI ROTI"

Page 59: Visual Basic Soft Copy

Combo3.AddItem "DAL MAKHNI"

Combo3.AddItem "PANEER"

Combo3.AddItem "SHAHI PANNER"

Combo3.AddItem "MIXED VEGETABLE"

Combo3.AddItem "SARSO DI SAAG(SPECIAL)"

Combo4.AddItem "FRUIT SALAD"

Combo4.AddItem "GREEN VEGETABLE SALAD"

Combo4.AddItem "ONION SALAD"

Combo5.AddItem "GARAM GULAB JAMUN "

Combo5.AddItem "GAJAR DA HALWA"

Combo5.AddItem "KHEER"

Combo6.AddItem "SIMPLE"

Combo6.AddItem "RIATA"

End Sub

Non-vegetarian:

Private Sub Command1_Click()

Unload Me

End Sub

Private Sub Form_Load()

Combo1.AddItem "TOMATO SOUP"

Combo1.AddItem "BLACK CHANNA SOUP"

Combo1.AddItem "VEGETABLE SOUP"

Combo2.AddItem "MISSI ROTI"

Combo2.AddItem "SIMPLE ROTI"

Combo2.AddItem "TANDOURI ROTI"

Combo2.AddItem "BUTTER NANN"

Combo3.AddItem "DAL MAKHNI"

Combo3.AddItem "PANEER"

Combo3.AddItem "CHICKEN"

Combo3.AddItem "SHAHI PANNER"

End Sub

Extra items:

Page 60: Visual Basic Soft Copy

Private Sub Command1_Click()

Unload Me

End Sub

Private Sub Form_Load()

Combo1.AddItem "LASSI SWEET"

Combo1.AddItem "LASSI SALTED"

Combo1.AddItem "COLD DRINK"

Combo1.AddItem "SHAKES"

Combo1.AddItem "JUICES"

Combo1.AddItem "HOT/COLD COFEE"

Combo2.AddItem "SAMOSA"

Combo2.AddItem "BURGER/HOT DOG"

Combo2.AddItem "LAYS/KURKURE"

Combo2.AddItem "PATTIES/PASTIERY"

Combo3.AddItem "TOIMATO SOUP"

Combo3.AddItem "VOGETABLE SOUP"

Combo3.AddItem "MAGGI"

Combo3.AddItem "BLASK CHANNA SOUP"

List1.AddItem "ITEMS CHARGES"

List1.AddItem "LASSI SWEET/SALTED = 15/10"

List1.AddItem "COLD DRINK/FROOTI = 12/10"

List1.AddItem "SHAKES/JUICES = 10"

List1.AddItem "HOT /COLD COFEE = 8/10"

List1.AddItem "SAMOSA/PATIES/PASTIERY= 6"

List1.AddItem "BURGER/HOTDOG = 10"

List1.AddItem "LAYS/KURKURE(SMALL/LARGE)=10/20"

List1.AddItem "SOUPS/MAGGI = 12"

End Sub

Search:

Private Sub Command1_Click()

Form25.Show

End Sub

Page 61: Visual Basic Soft Copy

Private Sub Command2_Click()

Unload Me

End Sub

Search result:

Private Sub Command1_Click()

Unload Me

End Sub

Updation:

Private Sub ADDNEW_Click()

Data1.Recordset.addnew

Data1.Recordset.UPDATE

End Sub

Private Sub BACK_Click()

Unload Me

End Sub

Private Sub FIRST_Click()

Data1.Recordset.MoveFirst

End Sub

Private Sub Form_Load()

Combo1.AddItem ("MALWA INSTIUITE OF MANAGEMENT, RAKHRA")

Combo1.AddItem ("MOHINDRA COLLEGE, PATIALA")

Combo1.AddItem ("MODI COLLEGE, PATIALA")

Combo1.AddItem ("VIKRAM COLLEGE OF COMMERCE, PATIALA")

Combo1.AddItem ("STATE COLLEGE, PATIALA")

Combo1.AddItem ("RAKHRA COLLEGE OF MANAGEMENT, RAKHRA")

Combo2.AddItem "BCA"

Combo2.AddItem "BBA"

Combo2.AddItem "ITI"

Combo2.AddItem "B.A"

Combo2.AddItem "MCA"

Combo2.AddItem "MBA"

Combo2.AddItem "COMMERCE"

Page 62: Visual Basic Soft Copy

Combo2.AddItem "B.ED"

End Sub

Private Sub LAST_Click()

Data1.Recordset.MoveLast

End Sub

Private Sub NEXT_Click()

Data1.Recordset.MoveNextIf Data1.Recordset.EOF Then

MsgBox "you are on last record", vbInformation

End If

End Sub

private Sub PREVIOUS_Click()

Data1.Recordset.MovePrevious

If Data1.Recordset.BOF Then

MsgBox "you are on first record", vbExclamation

End If

End Sub

Private Sub SAVE_Click()

MsgBox "record has been updated successfully", vbExclamation

End Sub

New record:

Private Sub ADDNEW_Click()

Data1.Recordset.ADDNEW

End Sub

Private Sub BACK_Click()

Unload Me

End Sub

Private Sub SAVE_Click()

MsgBox "data has been saved", vbMsgBoxRtlReading

End Sub

Page 63: Visual Basic Soft Copy

Security:

Private Sub Command1_Click()

Form15.Show

End Sub

Private Sub Command2_Click()

Form16.Show

End Sub

Private Sub Command3_Click()

Form17.Show

End Sub

Private Sub Command4_Click()

Unload Me

End Sub

Warden:

Private Sub Command1_Click(Index As Integer)

Unload Me

End Sub

Security guard:

Private Sub Command1_Click()

Unload Me

End Sub

CCD Cameras:

Private Sub Command1_Click()

Unload Me

End Sub

Private Sub Form_Load()

List1.AddItem " CCD CAMERA's POISTION FOR BETTER SAFETY"

List1.AddItem " 1. AT THE MAIN GATE OF HOSTEL ENTERANCE "

List1.AddItem " 2. COMMON ROOMS LIKE COMPUTER ROOM, GAMES AND T.V ROOM"

List1.AddItem " 3. IN THE HOSTEL'S MESS"

List1.AddItem " 4. DIFFERNET LOCATIONS TO CHECK VARIOUS STUDENTS AcTIVITIES "

Page 64: Visual Basic Soft Copy

List1.AddItem " 5. AT HOSTEL's PLAYGROUND"

List1.AddItem " 6. DIFFERENT OTHER LOCATIONS LIKE BALCONY, GARDEN etc "

End Sub

Delete:

Private Sub Command1_Click()

Form26.Show

End Sub

Private Sub Command2_Click()

Unload Me

End Sub

Deleted form:

Private Sub Command1_Click()

Unload Me

End Sub

Private Sub Command2_Click()

Form26.Hide

End Sub

Transportation type:

Private Sub Command1_Click()

Form22.Show

End Sub

Private Sub Command2_Click()

Form21.Show

End Sub

Private Sub Command3_Click()

Unload Me

End Sub

College to hostel:

Private Sub Command1_Click()

Unload Me

End Sub

College to hostel:

Page 65: Visual Basic Soft Copy

Private Sub Command1_Click()

Unload Me

End Sub

Transportation charges:

Private Sub Command1_Click()

Unload Me

End Sub

TESTING

Any product designed in design phase is not perfect. There may be some errors in the designed product because of system errors or manual errors generated during the coding phase. So it is

Page 66: Visual Basic Soft Copy

necessary to test the designed product after designing and before implementation phase. During testing, the deigned product is tested against the requirements to make sure that the product is actually solving the needs addressed and gathered during the requirements phase. Testing is important to the success of the system. If all the parts of the product are correct, then goal is assumed to be successfully achieved.

Types of testing:

There are four types of testing to get the final tested error free product:

1. Unit Testing:

In this type if testing all the modules of the product is tested as an individual and independent part of the system. Unit testing is done for checking two types of errors:

Syntax error:

It is a statement that violates rules of the programming language in which code is written.

Logical error:

A logical error deals with incorrect data fields, out of range items and invalid combinations. When a unit is tested, the actual output is compared with the excepted output. If there is a mismatch between these two, then changes are made to the designed system.

2. Integrated Testing:

In this type of testing, the whole product is tested as an integrated system. All the modules are tested as one unit. This type of testing starts from the smallest unit of the product and increases until whole system is tested. The testing is done because error in the one module of the system design may affect other modules of the system.

3. System Testing:

System testing is designed to uncover all the errors that were not found in the earlier tests. This includes forced system failure of the whole system to check its validation and backup and recovery time after failure. It begins from the low level of the system and increased until the higher level of the system is not being tested. If any error is found then modifications are done in the old system.

4. Acceptance Testing

An acceptance test has the objective of selling the user on the validity and reliability of the system. It verifies that the product is operated on the software requirements. In acceptance testing actually the product is handed over to the user to check whether the product satisfies the user requirements, efforded by the user and user friendly

Page 67: Visual Basic Soft Copy

CONCLUSION

This Hostel management Project which is just like normal Hostel system. We have seen that till now in Hostel the system is manual but now we are hanging to computerized system. These can be changed more in future

BIBLIOGRAPHY

Visual Basic 6.0

Visual Basic 6 in 21 days

Page 68: Visual Basic Soft Copy

Search from internet.