Date:
Introduction to UML
The UML is a language for specifying, constructing, visualizing, and documenting the
software system and its components. The UML is a graphical language with sets of rules and
semantics. The rules and semantics of a model are expressed in English in a form known as OCL
(Object Constraint Language). OCL uses simple logic for specifying the properties of a system.
The UML is not intended to be a visual programming language. However it has a much closer
mapping to object-oriented programming languages, so that the best of both can be obtained. The
UML is much simpler than other methods preceding it. UML is appropriate for modeling
systems, ranging from enterprise information system to distributed web based application and
even to real time embedded system. It is a very expensive language addressing all views needed
to develop and then to display system even though understand to use. Learning to apply UML
effectively starts forming a conceptual mode of languages which requires learning.
Three major language elements:
Every complex system is best approached through a small set of nearly independent
views of a model. Every model can be expressed at different levels of fidelity. The best models
are connected to reality.
Class diagram
Use-case diagram
Behavior diagram
4.
Interaction diagram
sequence diagram
collaboration diagram
activity diagram
Implementation diagram
component diagram
deployment diagram
Use Case
A sequence of transactions performed by a system that yields a
measurable result of values for a particular actor
A use case typically represents a major piece of functionality
that is complete from beginning to end. A use case must
deliver something of value to an actor.
Use Case Relationships
Actors are examined to determine how they interact with the system.
Class Diagram
Background
Specifying Classes
Each class is given a name, and then you need to specify:
Attributes: initially those that capture interesting object states. Attributes can be public,
protected, private or friendly/package.
Operations: can be delayed till later analysis stages or even till design. Operations also
can be public, protected, private or friendly/package.
Object-Relationships:
Associations: denote relationships between classes.
An aggregation: a special case of association denoting a consists of hierarchy.
Composition: a strong form of aggregation where components cannot exist without
the aggregate.
Generalization relationships: denote inheritance between classes.
This will build the class diagram, which is a graphical representation of the classes (including
their attributes and operations) and their relationship with other classes.
Discovering Classes
Discovering and defining classes to describe the structure of a computerized system is not an
easy task. When the problem domain is new or unfamiliar to the software developers it can be
difficult to discover classes; a cookbook for finding classes does not exist.
Classes Categories
Common Class Patterns: Derives candidate classes from the classification theory of
objects; candidate classes and objects come from one of the following sources:
Use Case Driven Method: The scenarios - use cases that are fundamental to the system
operation are enumerated. Going over each scenario leads to the identification of the
objects, the responsibilities of each object, and how these objects collaborate with other
objects.
CRC (Class-Responsibility-Collaboration): Used primarily as a brainstorming tool for
analysis and design. CRC identifies classes by analyzing how objects collaborate to
perform business functions (use cases).
A CRC card contains: name of the class, responsibilities of the class and collaborators of
the class. Record name of class at the top; record responsibilities down the left-hand side;
record other classes (collaborators) that may be required to fulfill each responsibility on
the right-hand side.
CRC cards are effective at analyzing scenarios; they force you to be concise and clear;
they are cheap, portable and readily available.
Mixed Approach: A mix of these approaches can be used, one possible scenario is:
Interaction diagrams:
Sequence diagrams
Collaboration diagrams
Background
Interaction diagrams describe how groups of objects collaborate in some behavior. An interaction
diagram typically captures the behavior of a single use case.
Interaction diagrams do not capture the complete behavior, only typical scenarios.
Analyzing a Systems Behavior
UML offers two diagrams to model the dynamics of the system: sequence and collaboration
diagrams. These diagrams show the interactions between objects.
Sequence Diagrams
They are called sequence diagrams because they show the sequence of message passing
between objects.
Another big advantage of these diagrams is that they show when the objects are created
and when they are destructed. They also show whether messages are synchronous or
asynchronous
You must know the scenario you want to model before diagramming sequence diagrams.
After that specify the classes involved in that scenario.
List the involved objects in the scenario horizontally on the top of the page.
Drop a dotted line beneath every object. They are called lifelines.
The scenario should start by a message pass from the first object.
You must know how to place the objects so that the sequence is clear.
You may start the scenario by an actor.
Timing is represented vertically downward.
Arrows between life lines represents message passing.
Horizontal arrows may pass through the lifeline of another object, but must stop at some
other object.
You may add constraints to these horizontal arrows.
Objects may send messages to themselves.
Long, narrow rectangles can be placed over the lifeline of objects to show when the
object is active. These rectangles are called activation lines.
Collaboration Diagrams
They are the same as sequence diagrams but without a time axis:
Their message arrows are numbered to show the sequence of message sending.
They are less complex and less descriptive than sequence diagrams.
These diagrams are very useful during design because you can figure out how objects
communicate with each other.
Notes
Since they are very specific, they are used for analyzing very specific situations if we
compare them with other diagrams.
A state refers to the set of values that describe an object at a specific moment in time.
As messages are received, the operations associated with the objects parent class are
invoked to deal with the messages.
These messages change the values of these attributes.
There is no need to prepare a state diagram for every class you have in the system.
States are represented by rectangles with rounded corners with an attribute name with a
values associated with it.
The name of the state is placed within the box.
Events are shown by arrows.
An event occurs when at an instant in time when a value is changed.
A message is data passed from one object to another.
The name of a state usually refers to the name of the attribute and the values associated to
it.
Example, a student object may receive a message to change its name. The state of that
object changes from the first name state to the new state name.
The name of the state is placed in the top compartment.
State variables are placed in the next compartment.
The operations associated with the state are listed in the lowest compartment of the state
box.
In the operations part, we usually use one of the following reserved words:
Entry: a specific action performed on the entry to the state.
Do: an ongoing action performed while in the state.
On: a specific action performed while in the state.
Exit: a specific action performed on exiting the state.
There are two special states added to the state transition diagram- start state and end state.
Notation of start state is a solid black circle and for the end state a bulls eye is used.
A state transition may have an action and/or guard condition associated with it and it may
also trigger an event.
An action is the behavior that occurs when the state transition occurs.
An event is a message that is sent to another object in the system.
A guard condition is a Boolean expression of attribute values that allows a state transition
only if the condition is true.
Both actions and guards are behaviors of the object and typically become operations.
Also they are usually private operations (used by the object itself)
Actions that accompany all state transitions into a state may be placed as an entry action
within the state.
Actions that accompany all state transitions out of a state may be placed as exit actions
within the state
A behavior that occurs within the state is called an activity.
An activity starts when the state is entered and either completes or is interrupted by an
outgoing state transition.
A behavior may be an action, or it may be an event sent to another object.
This behavior is mapped to operations on the object.
Remember always that when you talk about components, you are talking about the
physical models of code.
You can name them and show dependency between different components using arrows.
A component diagram shows relationships between component packages and
components.
Each component diagram provides a physical view of the current model.
Component diagrams contain icons representing:
Component packages.
Components.
Main programs.
Packages.
Subprograms.
Tasks.
Dependencies.
Deployment Diagram
A deployment diagram shows processors, devices and connections. Each model contains a single
deployment diagram which shows the connections between its processors and devices, and the
allocation of its processes to processors.
Deployment Diagrams: Processor
A processor is a hardware component capable of executing programs.
A processor is given a name and you should specify the processes that will run on that
processor.
You can also specify the scheduling of these processes on that processor.
Types of scheduling are:
Pre-emptive: a higher priority process may take the process from lower priority
one.
Non-preemptive: a process will own the processor until it finishes
Cyclic: control passes from one process to another.
Executive: an algorithm controls the scheduling of the processes
Manual: scheduling buy the user.
A device is a hardware component with no computing power. Each device must have a name.
Device names can be generic, such as modem or terminal.
Deployment diagrams: Connection
A connection represents some type of hardware coupling between two entities. An entity is either
a processor or a device. The hardware coupling can be direct, such as an RS232 cable, or
indirect, such as satellite-to-ground communication. Connections are usually bi-directional.
ATM SYSTEM
Problem statement:
This system is build for the bank client and the manager.
The bank client must be able to deposit and withdraw amount from his/her
accounts using the ATM machine. Each transaction must be recorded and the
client must be able to review all transactions performed in his/her account.
Recorded transactions must include the date, time, transaction type, amount and
account balance after the transaction.
The bank manager must be able to view the ATM machine status that is the total
balance of the ATM machine, todays withdrawal, todays balance and the
limitations of the machine.
The bank client is provided by login verification. If it is valid he/she will access
their account otherwise an appropriate message is displayed to the client.
Software requirements:
Microsoft visual basic 6.0 is used as front-end for our project and ms-access is used as
back-end to store the data.
USE-CASE diagram:
The ATM transaction use cases in our system are:
Login
Withdraw
Mini statement
ATM machine status
Deposit
Actors involved:
User
Bank manager
USE-CASE name: Login
The user enters a user name and password. If it is valid, the users account becomes
available. If it is invalid, an appropriate message is displayed to the user.
USE-CASE name: Withdraw
The user tries to withdraw an amount from his or her checking account. The amount is
less than or equal to the checking accounts balance, the transaction is performed and the
available information is displayed. The system creates a record of the transaction and the display
confirmation message is displayed to the client.
Class diagram
The class diagram, also referred to as object modeling is the main static analysis diagram.
The main task of object modeling is to graphically show what each object will do in the problem
domain. The problem domain describes the structure and the relationships among objects.
User class
ATM machine status
Account
Transaction
1) User class:
It consists of four attributes and two operations. The attributes are user name, password,
address and DOB. The operations of this class are read (), display () and write ().
2) ATM machine status:
The attributes of this class are ATM balance, todays withdrawal, todays balance, and
limitations. The operations are login verification (), ATM status () and display confirmation ().
3) Account:
The attributes are account no. and balance and the operations are withdraw (), deposit ()
and display availability ().
4) Transaction:
The attributes of this class are account no, transaction type, data, amount, balance and the
operations are mini statement () and create transaction ().
Sequence diagram:
A sequence diagram represents the sequence and interactions of a given USE-CASE or
scenario. Sequence diagrams can capture most of the information about the system. Most object
to object interactions and operations are considered events and events include signals, inputs,
decisions, interrupts, transitions and actions to or from users or external devices.
An event also is considered to be any action by an object that sends information. The
event line represents a message sent from one object to another, in which the form object is
requesting an operation be performed by the to object. The to object performs the operation
using a method that the class contains.
It is also represented by the order in which things occur and how the objects in the system
send message to one another.
The sequence diagram for each USE-CASE that exists when a user withdraws, deposits,
needs information about ATM machine status and account are drowned.
The diagrams show the entire deposit process in an ATM system. The user has to login to
the ATM machine and deposit the amount of money as required by the user. The user may wish
to get a mini statement and a screen about the details of the transaction.
The diagrams show the process of login by the user to the ATM system. The user has to enter his
details. The details entered are verified by the system and the user is approved if the details
match, otherwise an appropriate error message is displayed.
The Administrator of the ATM system has to maintain the details about the ATM, He has to
check if there is enough money in the ATM and if the ATM is functional without major errors.
For this, he may check the ATM machine status occasionally. The process is shown in the above
diagrams.
After a transaction is carried out successfully, the user must get a mini statement to tell him his
accounts details such as balance and transaction number. This process is depicted in the above
diagrams.
The user can make withdraw money from his account. The process is depicted in the
diagrams above. The user has to login to the system using his username and password, which are
verified by the system. After successful verification, the user can choose the amount of money he
wants to withdraw from his account. The amount specified by the user is checked by the system
to make sure there is enough balance in his account to carry out the transaction. After the
transaction is carried out the resulting amount is displayed and the details are updated to the
database.
RESULT:
Successfully practiced the different types of case tools such as used for all the phases of
software development life cycle.
Ex No: 2
Date:
DATA MODELING
AIM:
To deeper understanding of the Data modeling
INTRODUCTION:
Data modeling in software engineering is the process of creating a data model for an
information system by applying formal data modeling techniques. Data modeling is a process
used to define and analyze data requirements needed to support the business processes within the
scope of corresponding information systems in organizations. Therefore, the process of data
modeling involves professional data modelers working closely with business stakeholders, as
well as potential users of the information system.
DATA MODEL TYPES:
There are three different types of data models produced while progressing from
requirements to the actual database to be used for the information system. The data requirements
are initially recorded as a conceptual data model which is essentially a set of technology
independent specifications about the data and is used to discuss initial requirements with the
business stakeholders. The conceptual model is then translated into a logical data model, which
documents structures of the data that can be implemented in databases. Implementation of one
conceptual data model may require multiple logical data models. The last step in data modeling
is transforming the logical data model to a physical data model that organizes the data into tables,
and accounts for access, performance and storage details. Data modeling defines not just data
elements, but also their structures and the relationships between them.
USES OF DATA MODEL:
Data modeling techniques and methodologies are used to model data in a standard,
consistent, predictable manner in order to manage it as a resource. The use of data modeling
standards is strongly recommended for all projects requiring a standard means of defining and
analyzing data within an organization, e.g., using data modeling:
Data modeling may be performed during various types of projects and in multiple phases of
projects. Data models are progressive; there is no such thing as the final data model for a
business or application. Instead a data model should be considered a living document that will
change in response to a changing business. The data models should ideally be stored in a
repository so that they can be retrieved, expanded, and edited over time. Whitten (2004)
determined two types of data modeling:
Strategic data modeling: This is part of the creation of an information systems strategy,
which defines an overall vision and architecture for information systems is defined.
Information engineering is a methodology that embraces this approach.
Data modeling during systems analysis: In systems analysis logical data models are
created as part of the development of new databases.
Data modeling is also used as a technique for detailing business requirements for specific
databases. It is sometimes called database modeling because a data model is eventually
implemented in a database.
HOW DATA MODELS DELIVER BENEFIT.
Data models provide a structure for data used within information systems by providing
specific definition and format. If a data model is used consistently across systems then
compatibility of data can be achieved. If the same data structures are used to store and access
data then different applications can share data seamlessly. The results of this are indicated in the
diagram. However, systems and interfaces often cost more than they should, to build, operate,
and maintain. They may also constrain the business rather than support it. This may occur when
the quality of the data models implemented in systems and interfaces is poor.
Business rules, specific to how things are done in a particular place, are often fixed in the
structure of a data model. This means that small changes in the way business is conducted
lead to large changes in computer systems and interfaces. So, business rules need to be
implemented in a flexible way that does not result in complicated dependencies, rather
the data model should be flexible enough so that changes in the business can be
implemented within the data model in a relatively quick and efficient way.
Entity types are often not identified, or are identified incorrectly. This can lead to
replication of data, data structure and functionality, together with the attendant costs of
that duplication in development and maintenance. Therefore, data definitions should be
made as explicit and easy to understand as possible to minimize misinterpretation and
duplication.
Data models for different systems are arbitrarily different. The result of this is that
complex interfaces are required between systems that share data. These interfaces can
account for between 25-70% of the cost of current systems. Required interfaces should be
considered inherently while designing a data model, as a data model on its own would not
be usable without interfaces within different systems.
Data cannot be shared electronically with customers and suppliers, because the structure
and meaning of data has not been standardized. To obtain optimal value from an
implemented data model, it is very important to define standards that will ensure that data
models will both meet business needs and be consistent.
Conceptual schema: describes the semantics of a domain (the scope of the model). For
example, it may be a model of the interest area of an organization or of an industry. This
consists of entity classes, representing kinds of things of significance in the domain, and
relationships assertions about associations between pairs of entity classes. A conceptual
schema specifies the kinds of facts or propositions that can be expressed using the model.
In that sense, it defines the allowed expressions in an artificial "language" with a scope
that is limited by the scope of the model. Simply described, a conceptual schema is the
first step in organizing the data requirements.
Logical schema: describes the structure of some domain of information. This consists of
descriptions of (for example) tables, columns, object-oriented classes, and XML tags. The
logical schema and conceptual schema are sometimes implemented as one and the same.
Physical schema: describes the physical means used to store data. This is concerned with
partitions, CPUs, table spaces, and the like.
This approach allows the three perspectives to be relatively independent of each other.
Storage technology can change without affecting either the logical or the conceptual schema. The
table/column structure can change without (necessarily) affecting the conceptual schema. In each
case, of course, the structures must remain consistent across all schemas of the same data model.
application that is being developed, perhaps in the context of an activity model. The data model
will normally consist of entity types, attributes, relationships, integrity rules, and the definitions
of those objects. This is then used as the start point for interface or database design.
The process of designing a database involves producing the previously described three
types of schemas - conceptual, logical, and physical. The database design documented in these
schemas are converted through a Data Definition Language, which can then be used to generate a
database. A fully attributed data model contains detailed attributes (descriptions) for every entity
within it. The term "database design" can describe many different parts of the design of an
overall database system. Principally, and most correctly, it can be thought of as the logical design
of the base data structures used to store the data. In the relational model these are the tables and
views. In an object database the entities and relationships map directly to object classes and
named relationships. However, the term "database design" could also be used to apply to the
overall process of designing, not just the base data structures, but also the forms and queries used
as part of the overall database application within the Database Management System or DBMS.
In the process, system interfaces account for 25% to 70% of the development and support
costs of current systems. The primary reason for this cost is that these systems do not share a
common data model. If data models are developed on a system by system basis, then not only is
the same analysis repeated in overlapping areas, but further analysis must be performed to create
the interfaces between them. Most systems within an organization contain the same basic data,
redeveloped for a specific purpose. Therefore, an efficiently designed basic data model can
minimize rework with minimal modifications for the purposes of different systems within the
organization.
MODELING METHODOLOGIES:
Data models represent information areas of interest. While there are many ways to create data
models, two modeling methodologies are stand out, top-down and bottom-up:
Bottom-up models are often the result of a reengineering effort. They usually start with
existing data structures forms, fields on application screens, or reports. These models are
usually physical, application-specific, and incomplete from an enterprise perspective.
They may not promote data sharing, especially if they are built without reference to other
parts of the organization.
Top-down logical data models, on the other hand, are created in an abstract way by
getting information from people who know the subject area. A system may not implement
all the entities in a logical model, but the model serves as a reference point or template.
Sometimes models are created in a mixture of the two methods: by considering the data needs
and structure of an application and by consistently referencing a subject-area model.
Unfortunately, in many environments the distinction between a logical data model and a physical
data model is blurred. In addition, some CASE tools dont make a distinction between logical
and physical data models.
Conceptual Data Modeling - used to figure out how major electronic and communication
systems are connected together
Enterprise Data Modeling - contains many of the same aspects of conceptual data modeling,
but streamlined for unique capabilities of an individual organization.
Logical Data Modeling - has two main functions, to serve as the building block for physical
data modeling, and to document certain identified relationships in a business function
RESULT:
Successfully understand the concepts of Data Modeling.
Ex No: 3
Date:
SOURCE CODE GENERATORS
AIM:
To practice and understanding the concepts of source code generation using Rational
Rose Software.
Rational Rose:
Rational Rose is the design tool of choice for Java programmers. It provides many features, most
interesting for us is its ability to provide design, modeling and visualization of java constructs
including packages, classes, fields, interfaces, imports, inheritance, fields, methods and
modifiers.
Forward engineering is the process of generating Java source from one or more classes,
packages, or components in a Rational Rose model.
Depending upon which version of JDK you are using you may give a classpath to src.jar, src.zip
or other appropriate library file.
Creating a class
In the logical view of your new model create a class called Point.
2. Right click the class Point and click New Attribute. Name the attribute itsX and itsY.
3. Right click again, click New Operation. Name the new operation getX(), and getY().
5. In the browser window, click on Logical View and then expand on Point.
5. Double click itsX and set its type to int and also set its various modifiers [private, etc.], also for itsY.
6. Similarly, double-click getX() and getY() in the browser and set its various attributes {return type,
etc.}
7. In the browser, left-click the Component View to create a new component called Point.
8. In the browser, drag the Point class to the Point component to assign the class to the Component.
9. Check the browser to make sure the class now has the component name next to it in parenthesis.
10. The browser should now look as follows:
11. In the browser or in the diagram, right-click the Point class, click Java > Generate Java.
12. Since this is the first time youve generated code for this model, Rational Rose displays a mapping
dialog prompting you to map the file it will generate to a directory in your class path. Click on the class
path name to select it, click on the component name to select it, then click Map:
Use the same technique of creating a class, create an abstract class name Shape.
Double click on the class Shape to open Class specification and change its modifier into abstract.
Do step 7 16 as describe above, to generate Java file of this model, and save the model.
Create a new concrete class Circle with radius (double) as a member and getRadius() (returning
double) as its operation. It should be look like :
Generate inheritance relationship between Circle (subclass) and Shape (super class). Click on
generalization icon (see below figure) or select Tool Create Generalization.
While the pointer is displaying up arrow (generalization mode), drag it from Circle class to Shape
abstract class. Your model should look like :
Validate your model by double-clicking the class Circle, then verify that abstract class Shape has been
added in extends fields.
Do step 7 16 as describe above, to generate Java file of this model, and save the model. If it is
successful then the getArea() operation will automatically added to Circle class. As following figure:
Select Association icon (as shown bellow) or select Tool Create Association.
While the pointer is displaying up arrow (Association mode), drag it from Shape class to Point class.
Your model should look like:
Double click on the line between Shape and Point to open Association specification, to update the
properties such as Name, the Roles etc.
RESULT
Successfully gained more knowledge and understood the source code generation.
EX.NO: 4
DATE:
ABSTRACT:
The Student Mark Analysis System deals with the complete academic details of
the students .It comprises of the Roll No, Name, Mark, Total and average. It can be accessed by
the faculty who alone can change or update the marks of the student. It is also the duty of the
faculty to maintain the records, the duty of the administrator is to generate the report cards to the
faculty members. The faculty will calculate the total marks based on the percentage obtained by
the student. The role of the Student of the student is to just to view the marks entered by the
faculty.
The main scope of the project is to get the student mark and update it whenever
necessary and then to display it for the students and faculties.
REQUIREMENTS:
HARDWARE:
256 MB RAM
80GB HARDDISK
SOFTWARE:
DESIGN:
Student details
Mark analysis
USE CASE
CLASS DIAGRAM
SEQUENCIAL DIAGRAM
COLLOBORATION DIAGRAM
CODING:
Form2:
Dim rs As Recordset
Private Sub Command1_Click()
Data1.Recordset.AddNew
Data1.Recordset.Update
MsgBox ("Added")
End Sub
Private Sub Command2_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
Text5.Text = " "
Text6.Text = " "
End Sub
Private Sub Command3_Click()
If Data1.Recordset.EOF <> True Then
If Data1.Recordset.Fields(0) = Text1.Text Then
Text2.Text = Data1.Recordset.Fields(1)
Text3.Text = Data1.Recordset.Fields(2)
Text4.Text = Data1.Recordset.Fields(3)
Text5.Text = Data1.Recordset.Fields(4)
Text6.Text = Data1.Recordset.Fields(5)
End If
End If
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Command6_Click()
Form4.Show
End Sub
Private Sub Form_Activate()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
Text5.Text = " "
Text6.Text = " "
End Sub
Form3:
Private Sub Command1_Click()
If Data1.Recordset.EOF <> True Then
If Data1.Recordset.Fields(0) = Text1.Text Then
Text2.Text = Data1.Recordset.Fields(1)
Text3.Text = Data1.Recordset.Fields(2)
Text4.Text = Data1.Recordset.Fields(3)
Text5.Text = Data1.Recordset.Fields(4)
Text6.Text = Data1.Recordset.Fields(5)
Text7.Text = Data1.Recordset.Fields(6)
Text8.Text = Data1.Recordset.Fields(7)
End If
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Activate()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Login Form:
Student Details:
TESTING:
Software Testing
The design of text for software and other engineered products can be challenging as
the initial design of the protect
Integration Testing:
Integration testing is a systametic technique for constucting the program structure
while at the same time conducting tests to uncover errors associated with interfacing
.Incremental integration is the anthesis of thebig bang approach
Smoke Testing:
Smoke testing is an integration testing approach that is commonly used when
stringk warappedsoftware.Products are being developed.It is designed as a pacing mechanism
for time critical projects.
CONCLUSION:
This software could be installed far more quickly. It is, however, a useful tool which may
help lecturers to update the student marks easily, and it can be extended to include many more
functions.
EX.NO: 5
DATE:
ABSTRACT:
Library management system can be used to view books, issue the books and make return and
renewal process this is the case of the prevailing system, but in this project the student could
view his own syllabus and question papers and can downloaded it as if he could do from his mail
id,Student and faculty can make use of this system to search what could do from his mail
id.Student and faculty can make use of this system to search what book he wants and where it is
placed in the library without searching through the racks.
REQUIREMENTS:
HARDWARE:
2GB RAM
80GB HARDDISK
SOFTWARE:
Macromedia Dreamweaver(PHP)
MySQL (phpmyadmin)
Member details
Book details
DIAGRAMS:
USE CASE
CLASS DIAGRAMS
SEQUENCE DIAGRAM
COLLBORATION DIAGRAM
CODING:
Form1:
Private Sub Option1_Click()
Form3.Show
End Sub
Private Sub Option2_Click()
Form4.Show
End Sub
Private Sub Option3_Click()
Form5.Show
End Sub
Private Sub Option4_Click()
Form6.Show
End Sub
Private Sub Option5_Click()
Form7.Show
End Sub
Form2:
Private Sub Command1_Click()
Data1.Recordset.AddNew
MsgBox "Record Added"
End Sub
Private Sub Command2_Click()
If Text1.Text = Data1.Recordset.Fields(0) Then
Text2.Text = Data1.Recordset.Fields(1)
Text3.Text = Data1.Recordset.Fields(2)
Text4.Text = Data1.Recordset.Fields(3)
End If
End Sub
Private Sub Command3_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
End Sub
Private Sub Command4_Click()
Data1.Recordset.AddNew
Data1.Recordset.Update
MsgBox "Record Updated"
End Sub
Form3:
Private Sub Command1_Click()
Data1.Recordset.AddNew
MsgBox "Record added"
End Sub
Private Sub Command2_Click()
If Data1.Recordset.Fields(4) = Text1.Text Then
Text2.Text = Data1.Recordset.Fields(5)
Text3.Text = Data1.Recordset.Fields(6)
Text4.Text = Data1.Recordset.Fields(7)
Text5.Text = Data1.Recordset.Fields(8)
Text6.Text = Data1.Recordset.Fields(9)
End If
End Sub
Private Sub Command3_Click()
Data1.Recordset.AddNew
Data1.Recordset.Update
MsgBox "Record Updated"
End Sub
Private Sub Command4_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
Text5.Text = " "
Text6.Text = " "
End Sub
Private Sub Command5_Click()
End
End Sub
Private Sub Text6_Click()
Text6.Text = Val(Text4.Text) - Val(Text5.Text)
End Sub
Form4:
Private Sub Command1_Click()
Data1.Recordset.AddNew
MsgBox "Record Added"
End Sub
Private Sub Command2_Click()
End Sub
Form5:
Private Sub Command1_Click()
If Text1.Text = Data1.Recordset.Fields(4) Then
MsgBox "Book Returned"
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Activate()
'Text1.Text = " "
End Sub
Form6:
Private Sub Command1_Click()
Data1.Recordset.AddNew
Data1.Recordset.Update
MsgBox "book Reneval"
End Sub
Form1:
Form2:
Form3:
Form4:
Form5:
Form6:
Form7:
TESTING:
Generate report cards:
This module allows the faculty to generate the report cards that are going to contain
the student academic details.
Software Estimation:
A successful project is one delivered on time,within budget and with the required
quality.A porjcet manager producer estimate of effort,which affect costs and of activity
durations which affect the delivery time.
Cost Estimation:
Project cost can be obtained by multiplexing the estimated effort with the man power
cost per month.
The overhead cost would include the costs of hardware and software required for the
porject and the company overheads for adminstrations,office space.
Software Testing
The design of text for software and other engineered products can be challenging as
the initial design of the protect
White Box testing:
White box testing sometimes called glass box testing is a test case design method
that users the control structures of the procedural design to device test cases
Smoke Testing:
Smoke testing is an integration testing approach that is commonly used when
stringk warappedsoftware.Products are being developed.It is designed as a pacing mechanism
for time critical projects.
Software Debugging :
Software debugging is one of the major tasks of programming with advent of
concurrent programming with complexity was added to the already difficut debugging process.
The basic concept inheritance in software debugging as well as list of error related to
concurrency.
CONCLUSION:
From our conclusion we declare that the project is completely based on spell checking and
the error words will be displayed in red color font as well as the count of the errors will be
displayed. We have successfully presented the program progress without any backend support
and connecting with local disk directory has been done.
EX.NO:
TELEPHONE DIRECTORY
DATE:
ABSTRACT:
To develop a project that manages the telephone line numbers under a single platform for
effective searching and viewing the information of the any telephone subscribers that any
customer want to know. A customer can demand any type of information such as telephone
numbers, address, or name of the particular person by specifying any one of the details
mentioned above in the search column or he/she can browse through the list of pages for the
information he wants. He can also know the latest news and call tariffs and new facilities
available for the existing customers.
The yellow page consists of the information of various private agencies and
organizations under single category. This will be very useful for the people who are involved in
the business field and people in the field of commerce.
The search is the function and this connected to the server. The Server searches the value
in the database (Ms access or oracle) and returns the match found. If it doesnt found any match
an error message is given.
The Std&Isd Search is associated with Std and Isd number, which is stored in the server.
The user can specify the number to find the address or the user can give the subscriber name and
get the phone number from the various set information displayed.
The Emergency numbers can also be displays according to the selected options like
Hospitals, ambulance, etc, the address of the nearest available home will also be displayed in an
interactive format.
The call tariff also gives the various options available and customer is allowed to choose
any scheme. The user can make use of the listed facilities. The user can further link to the
www.chennaibsnl.nic.in website for further enquiry details.
REQUIREMENTS:
HARDWARE:
2GB RAM
80GB HARDDISK
SOFTWARE:
Macromedia Dreamweaver(PHP)
MySQL (phpmyadmin)
DESIGN:
Search by name
Addnew
DIAGRAMS:
USECASE DIAGRAMS
CLASS DIAGRAMS
SEQUENCE DIAGRAM
COLLOBORATION DIAGRAM
CODING:
Login Form:
Private Sub Command1_Click()
If Trim(Text1.Text = "admin") And Trim(Text2.Text = "sec") Then
Form2.Show
Else
MsgBox "Check UserName and Password"
End If
End Sub
Private Sub Command2_Click()
End
End Sub
MainForm:
Private Sub Command1_Click()
Form3.Show
End Sub
Private Sub Command2_Click()
Form4.Show
End Sub
Private Sub Command3_Click()
Form5.Show
End Sub
Private Sub Command4_Click()
Form6.Show
End Sub
Private Sub Command5_Click()
Form7.Show
End Sub
Private Sub Command1_Click()
Data1.Recordset.AddNew
Data1.Recordset.Update
MsgBox "Record added"
End Sub
Private Sub Command2_Click()
Text1.Text = Data1.Recordset.Fields(0)
Text2.Text = Data1.Recordset.Fields(1)
End Sub
Private Sub Command3_Click()
Text1.Text = " "
Text2.Text = " "
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Form_Activate()
Text1.Text = " "
Text2.Text = " "
End Sub
AddNewEntry:
Private Sub Command1_Click()
Data1.Recordset.AddNew
MsgBox "Record Added"
End Sub
Private Sub Command2_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
End Sub
Private Sub Command3_Click()
End
End Sub
Update Entry:
Private Sub Command1_Click()
Data1.Recordset.AddNew
Data1.Recordset.Update
MsgBox "data updated"
End Sub
Private Sub Command2_Click()
End
End Sub
Search Standard Code:
Private Sub Command1_Click()
If Combo1.Text = Data1.Recordset.Fields(4) Then
Label4.Caption = Data1.Recordset.Fields(1)
End If
End Sub
Search By Name:
Private Sub Command1_Click()
If Combo1.Text = Data1.Recordset.Fields(2) Then
Label3.Caption = Data1.Recordset.Fields(2)
Label4.Caption = Data1.Recordset.Fields(3)
Label5.Caption = Data1.Recordset.Fields(4)
Label6.Caption = Data1.Recordset.Fields(5)
End If
Output Form:
Login Form:
Form1:
Form2:
Form3:
Form4:
Form5:
TESTING:
CONCLUSION:
The TELEPHONE DIRECTORY SYSTEM is the greatest improved achieved and
implemented over the manual system using case fields and paper. The computerization of the
system has speeded up the process to a greater extent. The telephone directory system by large
proves to be very reliable. The system has been checked with some dummy values and has been
explored as much as it could be possible.
EX.NO:
TEXT EDITOR
DATE:
ABSTRACT:
The text editor mainly aims at developing an application that helps us in creating and
editing text files. The application is more user friendly and platform independent.
Creating a new file, opening an existing file, saving a file and editing the typed text.
REQUIREMENTS:
HARDWARE:
2GB RAM
80GB HARDDISK
SOFTWARE:
Macromedia Dreamweaver(PHP)
MySQL (phpmyadmin)
USECASE DIAGRAM
CLASS DIAGRAM
SEQUENCE DIAGRAM
COLLOBORATE DIAGRAM
CODING:
Dim t As String
Dim a As String
Private Sub ffont_Click()
C2.Flags = cdlCFBoth
C2.ShowFont
r1.SelFontName = C2.FontName
r1.SelFontSize = C2.FontSize
End Sub
Private Sub mabout_Click()
MsgBox ("version 1.1")
End Sub
Private Sub mcentre_Click()
r1.SelAlignment = rtfCenter
End Sub
Private Sub mcolor_Click()
C2.ShowColor
r1.SelColor = C2.Color
End Sub
Private Sub mcopy_Click()
a = r1.SelText
End Sub
Private Sub mcut_Click()
r1.SelText = ""
End Sub
Private Sub mdelete_Click()
a = r1.SelText
r1.SelText = ""
End Sub
Private Sub mexit_Click()
End
End Sub
Private Sub mfind_Click()
t = InputBox("find what")
r1.Find t
End Sub
Private Sub mleft_Click()
r1.SelAlignment = rtfLeft
End Sub
Private Sub mnew_Click()
Dim h As String
If r1.Text = "" Then
r1.SetFocus
Else
h = MsgBox("the text in the file has changed, Do you want to save?", vbExclamation +
vbYesNo)
If h = vbYes Then
C2.Filter = "*txt"
C2.ShowSave
r1.SaveFile (C2 > FileName)
If h = vbNo Then
'h = vbNo
r1.Text = ""
r1.SetFocus
End If
End If
End If
r1 = ""
End Sub
Private Sub mopen_Click()
C2.Filter = "*txt"
C2.DefaultExt = "txt"
C2.ShowOpen
r1.SaveFile (C2.FileName)
End Sub
Private Sub mpaste_Click()
r1.SelText = a
End Sub
Private Sub mprint_Click()
C2.ShowPrinter
End Sub
Private Sub mright_Click()
r1.SelAlignment = rtfRight
End Sub
Private Sub msave_Click()
C2.Filter = "*.txt"
C2.ShowSave
r1.SaveFile (C2.FileName)
End Sub
Private Sub msaveas_Click()
C2.Filter = "*txt"
C2.DefaultExt = "txt"
C2.ShowSave
r1.SaveFile (C2.FileName)
End Sub
LOGIN FORM
TESTING:
Software Testing
The design of text for software and other engineered products can be challenging as
the initial design of the protect
White Box testing:
White box testing sometimes called glass box testing is a test case design method
that users the control structures of the procedural design to device test cases
Unit testing:
Unit testing forces verification effort on the smaller unit of sofrware design the
software component or module.
Integration Testing:
Integration testing is a systametic technique for constucting the program structure
while at the same time conducting tests to uncover errors associated with interfacing
.Incremental integration is the anthesis of thebig bang approach
Smoke Testing:
Smoke testing is an integration testing approach that is commonly used when
stringk warappedsoftware.Products are being developed.It is designed as a pacing mechanism
for time critical projects.
Software Debugging :
Software debugging is one of the major tasks of programming with advent of
concurrent programming with complexity was added to the already difficut debugging process.
The basic concept inheritance in software debugging as well as list of error related to
concurrency.
CONCLUSION:
The TEXT EDITOR to perform the cut, copy, paste operations. Then also performing the
font format. The computerization of the system has speeded up the process to a greater extent.
EX.NO:
DICTIONARY
DATE:
ABSTRACT:
The Dictionary projects ongoing, voluntary program that provides information to its
members regarding membership details, new words to update, and the detail specified by the
members. It is intended to provide intensive facilities to its members.
FUNCTIONALITIES:
The main functionalities in the dictionary are user administrator and maintain database.
After getting the access by the user they will do search of the particular word.
REQUIREMENTS:
HARDWARE:
2GB RAM
80GB HARDDISK
SOFTWARE:
Macromedia Dreamweaver(PHP)
MySQL (phpmyadmin)
DATABASE DESIGN:
ADDNEW
SCANNING:
DIAGRAMS:
USE CASE DIAGRAMS
CLASS DIAGRAMS
SEQUENCE DIAGRAM
COLLOBORATION DIAGRAMS
FORM2: DICTIONARY
Private Sub Command1_Click()
Form3.Show
End Sub
Private Sub Command2_Click()
Form4.Show
End Sub
Private Sub Command3_Click()
Form5.Show
End Sub
Private Sub Command4_Click()
End
End Sub
FORM3:ADDNEW
End Sub
FORM5: SCANNING
Private Sub Command1_Click()
Data1.Recordset.MoveFirst
While Data1.Recordset.EOF = False
If Data1.Recordset.Fields(0) = List1.Text Then
Text2 = Data1.Recordset.Fields(1)
End If
Data1.Recordset.MoveNext
Wend
End Sub
Private Sub Command2_Click()
End
End Sub
LOGIN:
DICTIONARY
ADD NEW
SEARCH BY WORD
TESTING:
Software Testing
The design of text for software and other engineered products can be challenging as
the initial design of the protect
White Box testing:
White box testing sometimes called glass box testing is a test case design method
that users the control structures of the procedural design to device test cases
Unit testing:
Unit testing forces verification effort on the smaller unit of sofrware design the
software component or module.
Integration Testing:
Integration testing is a systametic technique for constucting the program structure
while at the same time conducting tests to uncover errors associated with interfacing
.Incremental integration is the anthesis of thebig bang approach
Smoke Testing:
Smoke testing is an integration testing approach that is commonly used when
stringk warappedsoftware.Products are being developed.It is designed as a pacing mechanism
for time critical projects.
Software Debugging :
Software debugging is one of the major tasks of programming with advent of
concurrent programming with complexity was added to the already difficut debugging process.
The basic concept inheritance in software debugging as well as list of error related to
concurrency.
CONCLUSION:
The CREATING DICTIONARY to perform the search by name, scanning process. The
computerization of the system has speeded up the process to a greater extent.
INVENTORY SYSTEM
EX.NO: 9
DATE:
ABSTRACT:
The main objective of this project is to overcome the work load and time
consumption which makes the maintenance of the stock In an organization as a tedious process.
This project provides complete information about the details of the stock to the users. This
project Identifies the amount of stock available, the product that is purchased faults in the
product ,products that are replaced, products that have been sold and date at which are bought
and sold in a particular concern.Seperate modules have been created for purchasing, viewing
stock details,selling,details and delivery details. As a whole, marketing process can be improved
if stock has been maintained properly.
REQUIREMENTS:
HARDWARE:
2 GB RAM
SOFTWARE:
DATABASE DESIGN
BILL:
PURCHASE
SALES
DIAGRAMS:
USECASE DIAGRAM
CLASS DIAGRAM
SEQUENCE DIAGRAM
COLLOBORATION DIAGRAM
CODING:
INVENTORY REPORT FORM
Text5.Text = ""
End Sub
PURCHASE FORM
Private Sub Command1_Click()
Data1.Recordset.AddNew
MsgBox ("RECORDS ARE ADDED")
Data1.Recordset.Update
End Sub
Private Sub command2_Click()
Data1.Recordset.AddNew
Data1.Recordset.Update
End Sub
End Sub
Private Sub Command5_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
End Sub
Private Sub Command6_Click()
End
End Sub
SALES FORM
Private Sub Command1_Click()
Data1.Recordset.AddNew
MsgBox ("DATA IS ADDED")
Data1.Recordset.Update
End Sub
Private Sub command2_Click()
If Data1.Recordset.EOF <> True Then
If Data1.Recordset.Fields(0) = Text1.Text Then
Text1.Text = Data1.Recordset.Fields(0)
Text2.Text = Data1.Recordset.Fields(1)
Text3.Text = Data1.Recordset.Fields(2)
Text4.Text = Data1.Recordset.Fields(3)
End If
End If
End Sub
Private Sub Command4_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
End Sub
LOGIN:
PURCHASE FORM
TESTING:
Generate report cards:
This module allows the faculty to generate the report cards that are going to contain
the student academic details.
Software Estimation:
A successful project is one delivered on time,within budget and with the required
quality.A porjcet manager producer estimate of effort,which affect costs and of activity
durations which affect the delivery time.
Cost Estimation:
Project cost can be obtained by multiplexing the estimated effort with the man power
cost per month.
The overhead cost would include the costs of hardware and software required for the
porject and the company overheads for adminstrations,office space.
Software Testing
The design of text for software and other engineered products can be challenging as
the initial design of the protect
White Box testing:
White box testing sometimes called glass box testing is a test case design method
that users the control structures of the procedural design to device test cases
CONCLUSION:
EX.NO: 10
DATE:
QUIZ
SYSTEM AIM:
To implement the Quiz System using Rational Software.
ALGORITHM:
Step 1: Identify the Actors and Use cases.
In this system,the actors and use
cases are: Actors: User ,System and
Database.
Use cases: Login,Option,answering questions,calculating marks and Display
score card.
Step 2: Build the relationship between actors and use cases.
The use case diagram for the quiz system is given in Fig(1).
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
USER
DATABASE
WWW
WW.VIDYARTHIPLUS.COM
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
SOURCE CODE
LOGIN FORM:
Option Explicit
Public LoginSucceeded As Boolean
Private Sub cmdCancel_Click()
LoginSucceeded = False
End
End Sub
Private Sub cmdOK_Click()
If txtUserName = "mca" Then
If txtPassword = "mca" Then
LoginSucceeded = True
Form1.Show
Me.Hide
Else
MsgBox "Invalid Password, try again!", vbInformation, "Login"
txtPassword.SetFocus
End If
Else
MsgBox "Invalid Username, try again!", vbInformation, "Login"
End If
.IDYARTHIPLUS.COM
End Sub
Form 1:
Private Sub Option2_Click()
Form2.Show
Me.Hide
End Sub
Private Sub Option3_Click()
Form5.Show
Me.Hide
End Sub
Private Sub Option4_Click()
Form6.Show
Me.Hide
End Sub
Form 2:
Dim a As Integer
Private Sub Command1_Click()
Text1.Text = ""
If Option2.Value = True Then
Text1.Text = Val(Text1.Text) + 10WW.VIDYARTHIPLUS.COM
Else
Text1.Text = Val(Text1.Text) + 0
End If
Frame2.Visible = True
Frame1.Visible = False
End Sub
Private Sub Command2_Click()
If Option7.Value = True Then
Text1.Text = Val(Text1.Text) + 10
Else
Text1.Text = Val(Text1.Text) + 0
End If
Form3.Show
Me.Hide
End Sub
Private Sub Form_Load()
Frame2.Visible = False
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Text1.Text = Val(Text1.Text) + 10
Else
Text1.Text = Val(Text1.Text) + 0
End If
Frame2.Visible = True
Frame1.Visible = False
End Sub
Private Sub Command2_Click()
If Option13.Value = True Then
Text1.Text = Val(Text1.Text) + 10
CO
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Else
Text1.Text = Val(Text1.Text) + 0
End If
Form8.Show
Me.Hide
End Sub
Private Sub Form_Load()
Frame2.Visible = False
End Sub
RESULT FORM:
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()
rs(0) = lable2.Caption
rs(1) = Text1.Text
rs(2) = Text2.Text
AddNew
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
OUTPUT:
LOGIN
FORM :
FO
RM 1:
WW
W.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
FORM 2:
WW
W.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
FORM 3:
WW
W.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
RESULT FORM:
RE
SULT:
Thus the above program has been successfully completed and drawn in Rational Rose.
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
EX.NO: 11
DATE:
ATM SYSTEM
AIM
To implement the ATM System using Relational Software.
ALGORITHM
1. ALGORITHM FOR USE CASE DIAGRAM:
Step1: Identify the Actors and Use cases.
WWW.VIDYAR
V+
THIPLUS.COM
TEAM
WWW.VIDYARTHIPLUS.COM
.COM
TEAM
WWW.VIDYARTHIPLUS
V+
WWW.VIDYARTHIPLUS.COM
<Implements>
<Implements>
<Implements>
<Implements>
V+
WWW.VIDYARTHIPLUS.COM
Procedure to write the software for the ATM system using rational Software tool
Selecting the Software:
1. Click startRational SoftwareRational Rose Enterprise Edition.
Create the project:
2. In the Create New model window select VB6 Standard FrameworkA screen
appears; select the untitled project from the browser window and save it.
To draw the diagram:
3. Right Click the use case viewNewUse case diagramSequence diagramclass
diagram (name and save the files)
4. Click use case diagramusing the tool box build the use case diagram.
5. Click sequence diagramusing the tool box build the sequence diagram.
6. Click class diagramusing the tool box build the class diagram.
Generate the coding form:
7.Right click Component viewcomponent diagramOpen specificationselect the
Stereotype as DLLSelect the language as Visual BasicSwitch from General tab to
Realize tabSelect the classes you created in class diagramright clickAssignOk.
8. Right click component viewupdate code from modelthe tool window for
converting diagrams to code appearsnextFinishthe skeleton code in VB is
generated automatically for the class diagram.
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
SOURCE CODE:
PINPROCESS CODING:
Dim DB As Database
Dim RS As Recordset
Dim A As Integer
Private Sub Command1_Click()
A = Val(Text1.Text)
RS.MoveFirst
While (True)
If Val(A) = Val(RS(3)) Then
form2.Show
GoTo AA
Else
RS.MoveNext
End If
If RS.EOF = True Then
MsgBox "YOUR PIN NUMBER IS WRONG"
GoTo AA
End If
Wend
AA:
End Sub
V+
WWW.VIDYARTHIPLUS.COM
DISPLAY CODING:
Dim DB As Database
Dim RS As Recordset
Private Sub Command1_Click()
RS.MoveFirst
While (True)
If Val(Form1.Text1.Text) = Val(RS(3)) Then
Form3.Show
GoTo AA
Else
RS.MoveNext
End If
Wend
AA:
End Sub
Private Sub Command2_Click()
Form4.Show
End Sub
Private Sub Command3_Click()
Form5.Show
End Sub
Private Sub Command4_Click()
Form6.Show
End Sub
Private Sub Command6_Click()
Form1.Show
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
WITHDRAW CODING:
Dim DB As Database
Dim RS As Recordset
Dim B As Double
Private Sub Command1_Click()
B=0
B = Val(Text1.Text)
RS.MoveFirst
While (True)
If Val(Form1.Text1.Text) = Val(RS(3)) Then
If (Val(B) > Val(RS(4))) Then
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
End If
Wend
AA:
BB:
Form1.Show
Form1.Text1.Text = ""
Form1.Text1.SetFocus
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Form1.Show
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
End Sub
Private Sub Form_Load()
Set DB = OpenDatabase("E:\atm\STORAGE.mdb")
Set RS = DB.OpenRecordset("CUSDET")
Text1.Text = ""
End Sub
V+
WWW.VIDYARTHIPLUS.COM
RS(4) = Val(B)
RS(5) = Val(RS(4))
RS.Update
GoTo AA
End If
Else
RS.MoveNext
End If
Wend
AA:
BB:
Form1.Show
Form1.Text1.Text = ""
Form1.Text1.SetFocus
End Sub
Private Sub Command2_Click()
Form1.Show
End Sub
Private Sub Form_Load()
Set DB = OpenDatabase("E:\atm\STORAGE.mdb")
Set RS = DB.OpenRecordset("CUSDET")
Text1.Text = ""
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Text1.Text = ""
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
GoTo AA
Else
RS.MoveNext
End If
Wend
AA:
Form1.Show
Form1.Text1.Text = ""
Unload Me
BB:
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Form1.Show
End Sub
Private Sub Form_Activate()
RS.MoveFirst
While (True)
If Val(Form1.Text1.Text) = Val(RS(3)) Then
Label2.Caption = RS(3)
GoTo AA
Else
RS.MoveNext
End If
Wend
AA:
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
OUTPUT:
MEN
U FORM:
WWW.V
V+
IDYARTHIPLUS.COM
TEAM
WWW.VIDYARTHIPLUS.COM
WITH
DRAW FORM:
WWW.VIDYARTHIP
V+
LUS.COM
TEAM
WWW.VIDYARTHIPLUS.COM
MOBI
LE NUMBER CHAGE FORM:
WWW.V
V+
IDYARTHIPLUS.COM
TEAM
WW.VIDYARTHIPLUS.COM
RESULT:
Thus the above program has been successfully completed and drawn in Rational Rose.
EX.NO: 12
DATE:
TICKET RESERVATION SYSTEM
AIM
Information_Cancellation
Seats _Available
Sys
Passenger
Reservation_of_Ticket
Reserve_the_Ticket
Database
View_and_print_the_journey_r...
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Cancellation_of_Ticket
passenger
sys
Cancel_the _Ticket
d
atabase View_and_Print_Cancelled_Details
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
pass enger
sys tem
databas e
2.Provide details
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
system
database
cancellation
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
WWW.VIDYARTHIP
V+
LUS.COM
TEAM
WWW.VIDYARTHIPLUS.COM
WWW.VIDYARTHIPLUS.CO
V+
M
TEAM
WWW.VIDYARTHIPLUS.COM
Procedure to write the software for the Online Ticket Reservation System Using
Rational Software tool
Selecting the software:
1.click start->Rational Software->Rational Rose Enterprice Edition.
Create the project:
2.In the Create New Model window select VB6 Standard Framework->A screen
appears;select the untitled project from the browser window and save it.
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
SOURCE CODE:
FORM 1:
Private Sub Command1_Click()
If Text1.Text = "online" And Text2.Text = "mca" Then
MsgBox "WELCOME"
Form2.Show
Form1.Hide
Else
MsgBox "INVALIDE LOGIN"
End If
End Sub
FORM 2:
Private Sub Command1_Click()
Form2.Hide
Form3.Show
End Sub
Private Sub Command2_Click()
Form2.Hide
Form4.Show
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
rs(7) = Text7.Text
rs(8) = Text8.Text
rs(9) = Text9.Text
MsgBox "new Record Added"
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
End Sub
Private Sub Command2_Click()
rs.MovePrevious
Combo1.Text = rs(0)
Text1.Text = rs(1)
Text2.Text = rs(2)
Text3.Text = rs(3)
Text4.Text = rs(4)
Text5.Text = rs(5)
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Text6.Text = rs(6)
Text7.Text = rs(7)
Text8.Text = rs(8)
Text9.Text = rs(9)
End Sub
Private Sub Command3_Click()
rs.MoveNext
Combo1.Text = rs(0)
Text1.Text = rs(1)
Text2.Text = rs(2)
Text3.Text = rs(3)
Text4.Text = rs(4)
Text5.Text = rs(5)
Text6.Text = rs(6)
Text7.Text = rs(7)
Text8.Text = rs(8)
Text9.Text = rs(9)
End Sub
Private Sub Command4_Click()
rs.MoveLast
Combo1.Text = rs(0)
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Text1.Text = rs(1)
Text2.Text = rs(2)
Text3.Text = rs(3)
Text4.Text = rs(4)
Text5.Text = rs(5)
Text6.Text = rs(6)
Text7.Text = rs(7)
Text8.Text = rs(8)
Text9.Text = rs(9)
End Sub
Private Sub Command5_Click()
rs.Delete
Combo1.Text = ""
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Text9.Text = ""
End Sub
Private Sub Command6_Click()
Form2.Show
Form3.Hide
End Sub
Private Sub Command7_Click()
Combo1.Text = ""
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
End Sub
Private Sub Command8_Click()
DataReport2.Show
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Security Info=False"
rs.Open "details", db, adOpenDynamic, adLockOptimistic
Combo1.Text = rs(0)
Text1.Text = rs(1)
Text2.Text = rs(2)
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Text3.Text = rs(3)
Text4.Text = rs(4)
Text5.Text = rs(5)
Text6.Text = rs(6)
Text7.Text = rs(7)
Text8.Text = rs(8)
Text9.Text = rs(9)
End Sub
Private Sub Home_Click()
Form3.Hide
Form2.Show
End Sub
FORM 4:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Private Sub Combo1_Click()
Select Case Combo1.Text
Case "Vaigai Express"
Text4.Text = "TN 28/1234"
Text5.Text = "Chennai"
Text6.Text = "Kovai"
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Text7.Text = "7.00AM"
Text8.Text = "800"
Case "Kovai Express"
Text4.Text = "TN 07/1235"
Text5.Text = "Kovai"
Text6.Text = "Delhi"
Text7.Text = "2.00PM"
Text8.Text = "1500"
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
End Sub
Private Sub Command1_Click()
Form4.Hide
Form2.Show
End Sub
Private Sub Command3_Click()
rs.Delete
End Sub
Private Sub Command4_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Combo1.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Text2.Text = rs(1)
Text3.Text = rs(2)
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Combo1.Text = rs(3)
Text4.Text = rs(4)
Text5.Text = rs(5)
Text6.Text = rs(6)
Text7.Text = rs(7)
Text8.Text = rs(8)
End Sub
Private Sub Command7_Click()
rs.MoveNext
Text1.Text = rs(0)
Text2.Text = rs(1)
Text3.Text = rs(2)
Combo1.Text = rs(3)
Text4.Text = rs(4)
Text5.Text = rs(5)
Text6.Text = rs(6)
Text7.Text = rs(7)
Text8.Text = rs(8)
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
End Sub
Private Sub Form_Load()
Combo1.AddItem ("Vaigai Express")
Combo1.AddItem ("Kovai Express")
Combo1.AddItem ("Blue Mountain")
Combo1.AddItem ("Pandiyan Express")
db.CursorLocation = adUseClient
db.Open "Provider=MSDAORA.1;Password=tiger;User ID=scott;Data
Source=oracle;Persist Security Info=True"
rs.Open "reser222", db, adOpenDynamic, adLockOptimistic
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
End Sub
Private Sub Report_Click()
DataReport2.Show
End Sub
FORM 5:
Dim a As Integer
Dim b As Integer
Dim c As Integer
Dim d As Integer
Dim i As Integer
'Dim e As Integer
Private Sub Command1_Click()
If Option1 = True Then
Text3.Text = "Male"
ElseIf Option2 = True Then
Text3.Text = "Female"
End If
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Combo1.Text = ""
Combo2.Text = ""
Combo3.Text = ""
Combo4.Text = ""
End Sub
Private Sub Command5_Click()
If Option3 = True Then
Text8.Text = "Firstclass"
ElseIf Option4 = True Then
Text8.Text = "Secondclass"
End If
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Form6.Hide
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
OUTPUT:
FORM 1:
WW
W.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
FORM 2:
WW
W.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
FORM 3:
WW
W.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
FORM 4:
WW
W.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
FORM 5:
WW
W.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
FORM 6:
RE
SULT:
Thus the above program has been successfully completed and drawn in Rational Rose.
EX. NO: 13
DATE:
PAYROLL PROCESSING
AIM:
To Implement the Payroll Processing using Rational Software.
ALGORITHM:
1. ALGORITHM FOR USE CASE DIAGRAM:
STEP1: Identify the Actors and Use Cases.
STEP2: Build the relationship between actors and Use case.The use case diagram for the
payroll processing is given in Fig(1).
F
ig(1):Use case diagram for the payroll processing
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Fig (2):
Sequence diagram for payroll processing
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
STEP 2: Class diagram for each object is divided into three parts.
Top portion represents the class Name.
Middle portion represents the Attributes.
Bottom portion represents the Methods.
The Class diagram for Payroll Processing shown in Fig (3).
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Procedure to write the software for the payroll processing using Rational software tool
Selecting the Software:
1.Click startRational SoftwareRational Rose Enterprise Edition.
Create the project:
2.In the Create New Model window select VB6 Standard FrameworkA screen appears;select the
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
SOURCE CODE:
LOGIN PROCESS:
Dim db As Database
Dim rs As Recordset
Private Sub Command2_Click()
Data1.Recordset.update
MsgBox "RECORDS ARE SUCCESSFULLY UPDATED"
End Sub
Private Sub Command3_Click()
admin.Show
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Data1_Validate(Action As Integer, Save As Integer)
Data1.Visible = False
End Sub
Private Sub Form_Load()
Set db = OpenDatabase("D:\CASE TOOLS\emp.mdb")
Set rs = db.OpenRecordset("emp1")
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
ADMIN PROCESS:
Dim db As Database
Dim rs As Recordset
Private Sub Form_Load()
Set db = OpenDatabase("D:\CASE TOOLS\emp.mdb")
Set rs = db.OpenRecordset("emp1")
End Sub
Private Sub Label2_Click()
addemp.Show
End Sub
Private Sub Label3_Click()
delete.Show
End Sub
Private Sub Label4_Click()
update.Show
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
rs(5) = Text6.Text
rs(6) = Text7.Text
rs(7) = Text8.Text
rs(8) = Text9.Text
rs(10) = Text10.Text
rs(9) = Text11.Text
rs.update
MsgBox "RECORD IS ADDED"
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
rs.AddNew
End Sub
Private Sub Data1_Validate(Action As Integer, Save As Integer)
Data1.Visible = False
End Sub
Private Sub Form_Load()
Set db = OpenDatabase("D:\CASE TOOLS\emp.MDB")
Set rs = db.OpenRecordset("emp1")
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
rs(9) = Text11.Text
MsgBox "RECORDS ARE SUCCESSFULLY UPDATED"
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
End Sub
Private Sub Command3_Click()
admin.Show
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Command5_Click()
rs.Edit
rs(0) = Text1.Text
rs(1) = Text2.Text
rs(2) = Text3.Text
rs(3) = Text4.Text
rs(4) = Text5.Text
rs(5) = Text6.Text
rs(6) = Text7.Text
rs(7) = Text8.Text
rs(8) = Text9.Text
rs(10) = Text10.Text
rs(9) = Text11.Text
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
empdetails.Label13.Caption = rs(4)
empdetails.Label14.Caption = rs(5)
empdetails.Label15.Caption = rs(6)
empdetails.Label17.Caption = rs(7)
empdetails.Label19.Caption = rs(8)
empdetails.Label23.Caption = rs(10)
empdetails.Label21.Caption = rs(9)
GoToaa
Else
rs.MoveNext
End If
Wend
aa:
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Data1_Validate(Action As Integer, Save As Integer)
Data1.Visible = False
End Sub
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
WWW.VIDYARTHIPLUS.COM
TEAM
V+
WWW.VIDYARTHIPLUS.COM
OUTPUT:
ADMIN LOGIN FORM:
AD
MINISTRATOR FORM:
WWW.VI
V+
DYARTHIPLUS.COM
TEAM
WWW.VIDYARTHIPLUS.COM
EMPLOYEE FORM:
DELET
E FORM:
WW
W.VIDYARTHIPLUS.COM
TEAM
V+
WW.VIDYARTHIPLUS.COM
UPDATE FORM:
EMPLO
YEE ADMIN FORM:
WW.VID
V+
YARTHIPLUS.COM
TEAM
WWW.VIDYARTHIPLUS.COM
EMPLO
YEE DETAILS:
RESU
LT:
Thus the above program has been successfully completed and drawn in Rational Rose.
WWW.VIDYARTHIP
WWW.VIDYARTHIPLUS.COM
TEAM
V+