Professional Documents
Culture Documents
Table of Contents
Task: 01...........................................................................................................................................7
1.1 Object Oriented Programming Language..............................................................................7
1.1.1 What is the Programming Language..............................................................................7
1.1.2 Generation of programming language............................................................................7
Task: 02.........................................................................................................................................15
2.1 Objects of “Super Sonic” Company....................................................................................15
Task: 03(a).....................................................................................................................................17
3.1 Class Diagram......................................................................................................................17
Task: 03(b).....................................................................................................................................18
3.2 Sequence Diagram...............................................................................................................18
Task: 03(c).....................................................................................................................................19
3.3 ER Diagram.........................................................................................................................19
Task: 03(d).....................................................................................................................................20
3.4 Use case Diagram................................................................................................................20
Task: 04.........................................................................................................................................21
4.1 Login form.......................................................................................................................21
Task: 05.........................................................................................................................................24
5.1 Association..........................................................................................................................24
5.2 Composite............................................................................................................................25
5.3 Aggregation.........................................................................................................................26
Task: 06(a).....................................................................................................................................27
6.1 Polymorphism......................................................................................................................27
Task: 06(b).....................................................................................................................................28
6.2 Control Structures................................................................................................................28
Task: 07.........................................................................................................................................30
7.1 Integrated Development Environment.................................................................................30
7.1.1 Visual Studio Ultimate 2013........................................................................................30
7.1.2 New Project..................................................................................................................31
7.1.3 Solution Explorer..........................................................................................................32
7.1.4 Toolbox.........................................................................................................................33
7.1.5 Editors and Designers...................................................................................................33
7.1.6 Properties Windows......................................................................................................34
List of Figures
Figure 1(Programming Language)..................................................................................................8
Figure 2(Programming Language)..................................................................................................8
Figure 3(OOP)...............................................................................................................................13
Figure 4(OOP)...............................................................................................................................13
Figure 5(OOP)...............................................................................................................................14
Figure 6(OOP)...............................................................................................................................14
Figure 7(Class Diagram)................................................................................................................17
Figure 8(Sequence Diagram).........................................................................................................18
Figure 9(ERD)...............................................................................................................................19
Figure 10(Use case diagram).........................................................................................................20
Figure 11(Login Form)..................................................................................................................21
Figure 12(Login Form)..................................................................................................................21
Figure 13(Staff Details).................................................................................................................22
Figure 14(Staff Details).................................................................................................................22
Figure 15(Staff Details).................................................................................................................23
Figure 16(Staff Details).................................................................................................................23
Figure 17(Polymorphism)..............................................................................................................27
Figure 18(Control Structures)........................................................................................................28
Figure 19(Control Structures)........................................................................................................29
Figure 20(IDE)...............................................................................................................................30
Figure 21(IDE)...............................................................................................................................30
Figure 22(IDE)...............................................................................................................................31
Figure 23(IDE)...............................................................................................................................31
Figure 24(IDE)...............................................................................................................................32
Figure 25(IDE)...............................................................................................................................32
Figure 26(IDE)...............................................................................................................................33
Figure 27(IDE)...............................................................................................................................33
Figure 28(IDE)...............................................................................................................................34
Figure 29(IDE)...............................................................................................................................34
Figure 30(Login Form)..................................................................................................................46
Figure 31(Login Form)..................................................................................................................47
Figure 32(Passengers Detail).........................................................................................................47
Figure 33(Passengers Detail).........................................................................................................48
Figure 34(Passengers Detail).........................................................................................................48
Figure 35(Login Form)..................................................................................................................49
Figure 36(Admin)..........................................................................................................................49
Figure 37(Staff).............................................................................................................................50
Figure 38(Staff).............................................................................................................................50
Figure 39(Comments)....................................................................................................................51
Figure 40(Comments)....................................................................................................................52
Figure 41(Comments)....................................................................................................................53
Figure 42(Comments)....................................................................................................................53
Figure 43(Installation)...................................................................................................................56
Figure 44(Installation)...................................................................................................................56
Figure 45(Installation)...................................................................................................................57
Figure 46(Installation)...................................................................................................................57
List of Tables
Table 1.............................................................................................................................................8
Table 2...........................................................................................................................................37
Table 3...........................................................................................................................................37
Table 4...........................................................................................................................................37
Table 5...........................................................................................................................................38
Table 6...........................................................................................................................................38
Table 7...........................................................................................................................................38
Table 8...........................................................................................................................................38
Table 9...........................................................................................................................................38
Table 10.........................................................................................................................................39
Table 11.........................................................................................................................................39
Table 12.........................................................................................................................................39
Table 13.........................................................................................................................................39
Table 14.........................................................................................................................................40
Table 15.........................................................................................................................................40
Table 16.........................................................................................................................................40
Table 17.........................................................................................................................................40
Table 18.........................................................................................................................................41
Table 19.........................................................................................................................................41
Table 20.........................................................................................................................................41
Table 21.........................................................................................................................................41
Table 22.........................................................................................................................................42
Table 23.........................................................................................................................................42
Table 24.........................................................................................................................................42
Table 25.........................................................................................................................................42
Table 26.........................................................................................................................................42
Table 27.........................................................................................................................................43
Table 28.........................................................................................................................................43
Table 29.........................................................................................................................................43
Table 30.........................................................................................................................................43
Table 31.........................................................................................................................................44
Table 32.........................................................................................................................................44
Table 33.........................................................................................................................................44
Table 34.........................................................................................................................................44
Table 35.........................................................................................................................................45
Task: 01
1.1 Object Oriented Programming Language
Let’s we discuss about the programming languages.
FORTRAN
COBAL
Common Business Oriented Language.
It developed in 1959.
It designed to be common to many different computers.
Pascal
Invented by Nicklaus Wirth (1971)
Pascal was designed
To teach programming to invoices by emphasizing the structure programming
approach.
Pascal became the most popular language in academic.
C
Developed by Dennis Ritchie at Bell Laboratories (1970s)
Provides control and efficiency of assembly language.
Often used for system programs.
Most of the UNIX operating system written in c
Features:
C has all the high-level instructions
C has low-level instructions
C is very efficient language; its instructions are short.
C has been standardized by ANSI and ISO
Ada
It was created for the U.S. Department of Defense (DOD)
Features:
Ada has high-level instructions
Ada has instructions to allow real-time processing
This makes it suitable for process control.
Ada has parallel-processing capabilities. It can run on mainframe computers with multi
processor.
Table 1
Name Vinushika
Attribute
Height 5.9 feet
Class
Weight Object
70kg
Age
26
Eat () Eat ()
Method
Sleep () Sleep ()
Inheritance
Inheritance is an OOP feature that allows developing class once, and then reusing the code
over and over as the basis of new classes.
For an example if we take car, bus, and three-wheeler all are classes. It can be come under
vehicle class is the super class (Base class), and other classes are sub classes (Derived class).
Now we can discuss how to apply inheritances into C# application. The given example will
tell about the inheritance. In this example the base class is salary, derived class is
ManagerSalary.
Figure 3(OOP)
Constructors
Constructors are special class methods that are executed when a new instance of class is
created.
Constructors are used to initialize the data members of the object.
Constructors must have exactly the same name as the class they don’t have a return type.
Here we have used Line which is used again same name in the class that is constructors.
Every time it will execute.
Figure 4(OOP)
Destructors
A destructor is a special member function of a class that is executed whenever an object of its
class goes out of scope.
Destructor has specific symbol to use (~).
Figure 5(OOP)
Abstract Class
The abstract classes provide a common definition of a base class that can be shared by
multiple derived classes.
The abstract class often provides incomplete implementation.
To instantiate an abstract class we must inherit from it and complete its implementation.
Figure 6(OOP)
Encapsulation
Encapsulation is a mechanism to restrict access to a class or class members in order to hide
design decisions that are likely to change.
Access modifiers control where a type or type member can be used.
Here I have used private encapsulation. This means only internal restriction. Outsiders’
cannot use it.
Figure 7(Encapsulation)
Interfaces
Interfaces are used to establish contracts through which objects can interact with each other
without knowing the implementation details.
An interface definition cannot consider of any data fields or any implementation details such
as method bodies.
A common interface defined in the system namespace is the Myinterface namespace. This is
s simple interface defined as follows:
Figure 8(Interface)
Each class that implements Myinterface is free to provide its own custom comparison logic
inside the compare to method.
Polymorphism
Polymorphism is the ability of derived classes to share common functionality base classes but
still define their own unique behavior.
Polymorphism allows the objects of derived class to be treated at runtime as objects of the
base class. When a method is invoked at runtime.
Its exact type is identified, and the appropriate method is invoked from the derived class.
Here I have give an example of polymorphism.
Figure 9(Polymorphism)
Figure 10(OOP)
Here class name called rectangle. The rectangle contains length and width. The following
figure will explain the instance variable and instance method.
Figure 11(OOP)
Task: 02
2.1 Objects of “Super Sonic” Company
Human
-ID : Integer
-First Name : String
-Last Name : String
-Address : String
-Sex : String
+tostring (): String
Here the Class name in human. The attributes of human is ID, First Name, Last Name,
Address, and Sex. The method is human behaviors.
Passenger
#Passenger ID : Integer
-First Name : String
-Last Name : String
-Current Location : String
-Destination of Arrival
-No of Passengers : Integer
-Contact No : Integer
-Hire Date : Integer
-Hire Date : Integer
+Getting registered()
+Hire vehicle()
Class is a template for making objects. The passenger is object of the class. That means class
is a human, and object is a passengers. The attribute of the passenger is Passenger ID, First
Name, Last Name, Current Location, Destination of Arrival, Contact No, Hire Date, and Hire
Time. The method of the passenger is getting registration, and hires the vehicles.
Staff
#Staff ID : Integer
-First Name : String
-Last Name : String
-Address : String
-Sex : String
+Register passengers()
+Maintenance()
Staff is a one of the object in human class. The attributes of staff is Staff ID, First Name, Last
Name, Address, and Sex. The method is registered passengers, and maintenance.
Vehicle Owner
#Vehicle Owner ID : Integer
-First Name : String
-Last Name : String
-Address : String
-Contact No : Integer
-Sex : String
+Getting registerd()
+Hire vehicle()
The vehicle owner is another object of class. The attributes of the object is Owner ID, First
Name, Last Name, Address, Contact No and Sex. The method of the object is getting
registered, and hire vehicle.
Task: 03(a)
3.1 Class Diagram
Human
-ID : Integer
-First Name : String
-Last Name : String
-Address : String
-Sex : String
+tostring (): String
1 *
1
Invoice Vehicle
#Vehicle ID : Integger
#Invoice No : Integer 1 1
-Vehicle model : String
-Date : Integer
-Owner ID : Integer
-Hire vehicle : String
-Down payment : Integer +tostring (): String
+Get hired vehicle() Figure 12(Class Diagram)
+Print bill()
Task: 03(b)
3.2 Sequence Diagram
Vehicle
Login Login Passengers Payments Taxi Owner
Manager Receptionist Payment Details Owners Satffs Detail Database
Correct Wrong Detail Detail Details
Detail
Display Details
Display Details
Display
Search
Details
Receptionist
Input
Re-enter Input
Insert,
Insert, Update, Delete
Update,
Deatils into the Database
Delete
Display Search Details
Insert,
Update,
Delete
Insert, Update, Search,Delete Details
Deatils
into the
Database
Display
Search
Details
Figure 13(Sequence Diagram)
Task: 03(c)
3.3 ER Diagram
TOwner *
SSPassengerDetails * VehicleOwnerDetails * SSVehicle *
TaxiOwnerID
PassengerID VehicleOwnerID VehicleID
FirstName
FirstName FirstName
LastName VehicleType
LastName LastName
Address OwnerID
CurrentLocation Address
ContactNo
DestinationOfArrival ContactNo
NoOfPassengers Gender
ContactNo
HireDate
HireTime
Invoice *
SSStaffDetails *
InvoiceNo
StaffID LoginForm *
OwnerID Username
FirstName
Date Password
SalaryDetails * LastName
VehicleModel Usertype
StaffID Address
Downpayment
MonthlySalary Gender
ContactNo
Figure 14(ERD)
Task: 03(d)
3.4 Use case Diagram
Include
Taxt Owner
Figure 15(Use case diagram)
Task: 04
4.1 Login form
“Super Sonic Matrix Taxi” company needs to store information about their taxies details.
Lets we discuss about their login form. In this login form there are in two users, Admin and
receptionist. Both users have different types of username, password, and user type. Other cannot
see the records more secured.
Task: 05
5.1 Association
An association is an equal relationship between two classes which specifies the manner in which
objects belonging to the classes are related. In our system also there are multiple relationships
between the objects.
If we take staff and taxi owner have relationship. That is the instance of staff handles minimum
one maximum many taxi owner, Instance of taxi owner assisted by minimum one maximum one
staff. The relationship is one-to-many.
Another example of association is staff and passenger. The instance of staff handles minimum
one maximum many passenger, Instance of passenger assisted by minimum one maximum one
staff. The relationship is one-to-many.
Passenger Staff
1 *
#Passenger ID : Integer #Staff ID : Integer
-First Name : String -First Name : String
-Last Name : String -Last Name : String
-Current Location : String -Address : String
-Destination of Arrival -Sex : String
-No of Passengers : Integer +Register passengers()
-Contact No : Integer +Maintenance()
-Hire Date : Integer
-Hire Date : Integer
+Detting registered()
+Hire vehicle()
5.2 Composite
Composite is a part of relationship. This means if we take computer system, it consist several
components such as keyboard, mouse and etc. The computer is an aggregation, another kind of
association among objects.
Computer
One form of aggregation involves a strong relationship between an aggregate object and
component objects. This called composite
In this case the aggregation is Receptionist. The receptionist is important of the system. Without
the receptionist the vehicle owner, passenger, taxi owner cannot interact with the company and
they cannot give the details. If we take passenger they could not use the system because in here
the passenger give their details to receptionist then receptionist inform the details to the taxi
owner.
Receptionist
5.3 Aggregation
It is a specialized from of association where all object have their own lifecycle but there is
ownership. This represents “whole-part or part-of” relationship. This represents diamond shape
with straight line.
In here the relationship has between staff and company. Staff belongs to the company. Staff is a
part of company.
Company Staff
Task: 06(a)
6.1 Polymorphism
Polymorphism is the ability of derived classes to share common functionality base classes but
still define their own unique behavior.
Polymorphism allows the objects of derived class to be treated at runtime as objects of the base
class. When a method is invoked at runtime.
Its exact type is identified, and the appropriate method is invoked from the derived class.
Here I have give an example of polymorphism.
Figure 22(Polymorphism)
Task: 06(b)
6.2 Control Structures
I have used control structure in my system. The following figures will explain about the control
structures.
Login Form
Task: 07
7.1 Integrated Development Environment
Figure 25(IDE)
There exist different versions of visual Studio, such as Visual Studio Express (free), Visual
Studio Professional, Visual Studio Premium and Visual Studio Ultimate.
But I have used Visual studio Ultimate 2013 version in my software.
Figure 26(IDE)
The first thing we have to create a new application is to create a new project. This can be done
from start page:
Figure 27(IDE)
Figure 28(IDE)
Figure 29(IDE)
In this widow we will select an appropriate template based on what kind of application we want
to create, and a name and location for the project and widow.
The most common applications are:
Windows Form Application
Console Application
WPF Application
ASP.NET Web Application
7.1.3 Solution Explorer
Solution and projects contain items the represents the references, data connections, folders, and
files that we need to create the application. A solution container can contain multiple projects
and a project contain typically contain multiple items
Figure 30(IDE)
7.1.4 Toolbox
The Toolbox contains all the necessary controls. We need to create the user interface. See figure
below.
Figure 31(IDE)
In order to use them in our user interface, we just drag and drop them to the “Form”, as shown
below;
Figure 32(IDE)
Code Editor:
Figure 33(IDE)
Each control we have on our user interface has lots of Properties we can set.
Figure 34(IDE)
Test: 08
8.1 Test Cases
Use case Computer keyboard control
Function being tested Keyboard functionality
Initial state of component Idle
Input username
Expected output Correct username
Result Correct username
Table 2
Task: 09
9.1 Analyze the test cases
Test case ID 01
Module Manager Form
Input Manager Form
Expected result Display manager form
Actual result Display the manager form
Remark Display the manager form
Table 22
Test case ID 02
Module Staff Form
Input Staff Form
Expected result Display staff form
Actual result Display the staff form
Remark Display the staff form
Table 23
Test case ID 03
Module Passengers Detail Form
Input Save passengers detail
Expected result Allow to save passengers detail
Actual result Save the passengers details
Remark Save record
Table 24
Test case ID 04
Module Passenger Details Form
Input Update passenger details
Expected result Allow to update passengers detail
Actual result Update the passengers details
Remark Update record
Table 25
Test case ID 05
Module Passenger Details Form
Input Delete passenger details
Expected result Allow to delete passengers detail
Actual result Delete the passengers details
Remark Delete record
Table 26
Test case ID 06
Module Staff Details Form
Input Save staff details
Expected result Allow to save staff details
Actual result Save the staff details
Remark Save record
Table 27
Test case ID 07
Module Staff Details Form
Input Update staff details
Expected result Allow to update staff details
Actual result Update the staff details
Remark Update record
Table 28
Test case ID 08
Module Staff Details Form
Input Delete staff details
Expected result Allow to delete staff details
Actual result Delete the staff details
Remark Delete record
Table 29
Test case ID 09
Module Payment Details Form
Input Save payment details
Expected result Allow to delete payment details
Actual result Save the payment details
Remark Save record
Table 30
Test case ID 10
Module Payment Details Form
Input Update payment details
Expected result Allow to update payment details
Actual result Update the payment details
Remark Update record
Table 31
Test case ID 11
Module Payment Details Form
Input Delete payment details
Expected result Allow to delete payment details
Actual result Delete the payment details
Remark Delete record
Table 32
Test case ID 12
Module Vehicle Owner Details Form
Input Save vehicle owner details
Expected result Allow to save vehicle owner details
Actual result Save the vehicle owner details
Remark Save record
Table 33
Test case ID 13
Module Vehicle Owner Details Form
Input Update vehicle owner details
Expected result Allow update to vehicle owner details
Actual result Update the vehicle owner details
Remark Update record
Table 34
Test case ID 14
Module Vehicle Owner Details Form
Input Delete vehicle owner details
Expected result Allow delete to vehicle owner details
Actual result Delete the vehicle owner details
Remark Delete record
Table 35
Task: 10
10.1Feedbacks Methods
10.1.1 Questioners
o This is the one of the best way to identify others suggestion about our system.
Yes No No
comments
Will you be happy with new system?
Will you comfortable with new system?
10.1.2 Interview
The interview between Dharshika and Manager about the new system for the “Super Sonic
Matrix Taxi” Company.
Dharshika: Good morning sir.
Manager: Good morning, please have a seat, what can I do for you.
got the software to your system, please check and see whether if it is make any changes,
Manager: Yes sure, (The manager is checking software). It is very user friendly. It is
really easy to work with this software and nice interfaces are available in this software.
Definitely this software will help to insert, update, select and delete information about
the vehicle. Thank you so much you have prepared very good and useful software for us.
Dharshika: You’re welcome. I am very happy about the system. Once again I want
Task: 11
Let’s discuss user friendliness of the “Super Sonic” Metered Taxi system.
Login Form
This is the “Super Sonic” login form. This will give security for the company records. There are
two users are using the system. Administrator and receptionist other not allowed seeing the
records. If someone logon the system it will not open the company details. If we take
administrator can see all the details of the system, but the receptionist can only adding details
into the system. The main advantage of the system is receptionist panel connected to the
administrator panel, if the receptionist makes any changes it will automatically save on the
administrator panel. The users have particular username, password and user type. It will get into
their panel. Once the users enters their correct username, password and user types then user no
need to click the login button, just keep the mouse curser on the login button it will
automatically open the particular panel. The following figure will explain about it.
This is form is record the passenger details form. There are inert, delete, search, delete, clear and
exit buttons. If we take insert button it will save all the details, update can make changes in the
record, search can easily find out the particular owner details, clear is clears the textboxes, exit
is close the entire form. These buttons are more user-friendly to the users. If we need to find
particular person details, we no need to go throw the entire details, just go to the owner id
textbox and enter the person id no and once the click the search button it will display the person
details on the above grid view. Each and every buttons gives message once we enter, update or
delete and records in the form. This will give more satisfaction to the user.
Task : 12
12.1 Maintenance and guide
Login Form
This is the login form of the “Super Sonic” system. If we take adminstrator have specific
username , password and usertype.
USERNAME : Admin
PASSWORD : 12345
USERTYPE : Admin
Administrator can only use this username, password, and user type others cannot use the same
authentications. If anyone enters wrong authentication the system will give error message. This
is give following figure.
Figure 41(Admin)
Receptionist has some limitations. He/ She cannot break the rules of the “Super Sonic” company.
He has to be response the entire details of the new system. The receptionist all so cannot see all
the details; he has some restrictions about the work. This means he only can enters, update,
searches and deletes the details. He also has same login form but the different username,
password, and user type.
USERNAME: Staff
PASSWORD: 123
USERTYPE: Staff
Figure 42(Staff)
Figure 43(Staff)
12.2 Comments
Figure 44(Comments)
Figure 45(Comments)
Figure 46(Comments)
Figure 47(Comments)
I have used store procedure in my software. The reasons are given why I have chose the store
procedure in my software.
Improve security: Database administrator can control the users who access the stored procedure.
Separate or abstract server side functions from the client side.
Less chance to data become corrupted through faulty client programs.
Reduce development cost and increase reliability
Store procedures are tunable to improve the performance. When same stored procedure executed
again, it can use the previously cached execution plans.
USE TaxiService
@StaffID int,
@FirstName varchar (50),
@LastName varchar (50),
@Address varchar (50),
@Gender varchar (50),
@ContactNo nchar (10)
)
AS
BEGIN
UPDATE SSStaffDetails SET
FirstName=@FirstName,@LastName=LastName,Address=@Address,ContactNo=@ContactNo,Gender=@Gen
der WHERE StaffID=@StaffID
END
12.3 Installation
Figure 48(Installation)
Figure 49(Installation)
Figure 50(Installation)
Figure 51(Installation)
Bibliography
C#. (2014, 22 08). C#. Retrieved from http://msdn.microsoft.com/en-
us/library/aa288436(v=vs.71).aspx.