Sie sind auf Seite 1von 10

Course Name: Programming In Java

Student Name: Felisha Hosein

Assignment Brief No: 1


Student edexcel No: D674966

BTEC HND in COMPUTING AND SYSTEMS


DEVELOPMENT

Assignment Brief Number: 1

Course Name: Programming In Java

Student Name: Felisha Hosein

Student Edexcel No:D674966

Page | i

Course Name: Programming In Java


Student Name: Felisha Hosein

Assignment Brief No: 1


Student edexcel No: D674966

Table of Contents
Platform Overview ........................................................................................................................................ 1
a.

Why Java? ......................................................................................................................................... 1

b. ............................................................................................................................................................... 1
System Designs for Desktop Application ...................................................................................................... 3
a)

Class Diagram .................................................................................................................................... 3

b)

Use Case ............................................................................................................................................ 4

c)

Booking Use Case .............................................................................................................................. 5

d)

Use Case Scenario ............................................................................................................................. 6

References .................................................................................................................................................... 8

Page | ii

Course Name: Programming In Java


Student Name: Felisha Hosein

Assignment Brief No: 1


Student edexcel No: D674966

Platform Overview
a. Why Java?
Java was chosen as the preferred language for the application build that Wheelies LTD requires are
based on the following points:

Java is a standardized Platform Specifications for java is are available from several
resources. These resources include books, online information and tutorials developing in
Java.
Java is a Mature Technology The Java Technology has been around for some time and has
been tested and deployed within a number of industries. In terms of implementation as well
as APIs Java is well developed in these areas. Therefore there are less risk for a buggy
platform which may possess security risks, or that it contains flaws in its architecture.
Write-Once-Run-Anywhere this allows for the coding that was done for the current
application can be used in future versions of the products, thereby creating a simpler
process for upgrading your product
Developer Productivity The Java programming language contains well-defined syntax.
Developers are able to write complex logic in it and are able to add their own improvements
or customization if needed.
Java is Object Oriented Because java is Object-oriented it provides great flexibility,
modularity, clarity, and reusability through encapsulation, inheritance, and polymorphism.
Java supports multi-threading threads are native in the Java platform. With multithreaded
programs two or more parts that can run concurrently.

b.
Java supports distributed computing which comprises for several computers working together in a
network. Java is designed to make this type of computing easy as Networking capability is integrated
in Java, this will be useful for Wheelies as they can use the software on multiple computers
connected to their network as in the at the front desk for walk in customer and another one for call
in customers which ever suits their needs using Java as the development language is capable to
accommodate. To run a java program an interpreter is required. Java programs are compiled into
the Java Virtual Machine code called bytecode. The bytecode is machine-independent and can run
on any machine that has a Java interpreter. Whereas other compilers, translate programs in a highlevel language to machine code resulting in that code only being able to run on the native machine.
If you run the program on other machines, it has to be recompiled on that native machine. example,
if you compile a program written in another programming language in Windows, the executable
code generated by the compiler can only run on the Windows platform. With Java, you only need to
compile the source code one time, and the bytecode generated by the compiler can run on any
platform (Operating System) with has the Java interpreter. The Java interpreter translates the
Page | 1

Course Name: Programming In Java


Student Name: Felisha Hosein

Assignment Brief No: 1


Student edexcel No: D674966

bytecode into the machine language of the target machine. This feature as perfect for wheelies as it
will not restrict the company to operate in a closed environment but they are able to have a
heterogeneous environment with a mixture of different operating system if they so desire.

Page | 2

Course Name: Programming In Java


Student Name: Felisha Hosein

Assignment Brief No: 1


Student edexcel No: D674966

System Designs for Desktop Application


a) Class Diagram
Rents

1.. *

v
CAR

-pickdate:date
-returndate:date
-pickuploc:string
-vehiclelass:string

-plateno:string
-carname:string
-cartype:string
-carcolour:string
-rent: double
-add()
-modify()
-reserve()

-reserve()
+search()
1.. *

Ma
k

1.. *

es

1.. *
PAYMENT

RETURN

Add

Makes

1.. *

1.. *

1.. *

REGISTERATION

MANGER/STAFF

1.. *
1.. *
+id:int
-retdate:date

-id:int
-amount:double
-custName:string

#register()
#login()
-reservation()

Makes

CUSTOMER
+userId:string
-custName:string
-custAdd:string
-custAge:string
-custMoble:int
-custEmail:string

Process

+sid:int
-sname:string
-sposition:string
-printinvoice:string

-update()
-modifinginginfo()
-printinvoice()

#pay()
-confirm()

1.. 2

ad
ds

1
EARLY RETURN

-id:int

LATE RETURN

MANGER/ADMIN

-id:int
-latecharge:double

-id:int
-name:string
#password:

View

1..*
-confirm()

#pay()
-confirm()

-add()
-modify()
-view()

REPORTS
-id:int
-startdate:date
-enddate:date
-cartype:string
-sales:string
-amtavaiable:string
-amtrented-string
-generate()
-print()
-save()

Page | 3

Course Name: Programming In Java


Student Name: Felisha Hosein

Assignment Brief No: 1


Student edexcel No: D674966

b) Use Case
Car Rental Use Case
View & Print
Invoices

Register as member

Make reservations for a


car\cars

<<include>>

ds>>
<<exten

Pick up car

Process Rental
View & Edit
bookings

<< e
Return care <<
xte
ex
nds
ten
>>
ds
>>
View available
cars, times & dates
Late Return
Cancel Booking

Staff

Early Return

View & Edit client


info
Manager
Process Cancel /
delete Bookings

<<extends>>

Customer

View past bookings

View Invoices
View reports by
Vehicles
Admin

Page | 4

Course Name: Programming In Java


Student Name: Felisha Hosein

Assignment Brief No: 1


Student edexcel No: D674966

c) Booking Use Case


Booking Use Case Diagram
Browses vehicles
,discounts & prices
Login/Register
chooses Vehicle Class
Staff

chooses pick up location


Chooses pick up time &
date

Confirm
availability of
u
requested vehicle
ncl
<<I
Process Rental
>>
de

chooses Return
Location
ud
ncl
<< I

chooses return time &


date
Confirm Selected
Vehicle & date
Customer

e>>

Print Invoice

>
lude>
<<Inc

Manager

Reserve vehicle for


customer

Makes Payment

Cancel Bookings

Page | 5

Course Name: Programming In Java


Student Name: Felisha Hosein

Assignment Brief No: 1


Student edexcel No: D674966

d) Use Case Scenario


UC02 Booking A Rented Car

The user provides some criteria and the system displays the available information that fits the given
criteria.
Actors

Customer, Staff and Manager.


Actors Goals

To find a particular vehicle to rent on a certain date and time. To access further functions e.g. Edit,
delete, print invoices and view reports, etc.
System Goals

To facilitate the user in a specific car to rent on the accommodated time and day.
References

UC 02

Main Scenario
User
1. The user searches for a vehicle to rent

System
2. The system request search criteria such as
vehicle class type, date & time of
availability to pick up and return and
location pick up.

3. The user provides his/her information to


register or login.
4. The user confirms selected vehicle, date &
time of pick up and return.

5. The system processes the information and


confirms the availability of the requested
vehicle.

Page | 6

Course Name: Programming In Java


Student Name: Felisha Hosein
6. The user makes payments

Assignment Brief No: 1


Student edexcel No: D674966
7. The system confirms payments &
generates an invoice.

8. The staff reserves car for customer.


9. The user comes in and collect vehicle on
the confirmed data & time.
Alternative Scenario 1
User
1. The user enters criteria for vehicle and
submits search.

System
2. The system out puts wrong information
based on the users criteria.

Alternative Scenario 2
User
1. The user enters information to book a
vehicle and submits and confirms.
Alternative Scenario 3
User
1. The user enters criteria for vehicle and
submits search.

System
2. The system confirms booking an crashes
without really saving the users
information.

System
2. The system out puts no information

Page | 7

Course Name: Programming In Java


Student Name: Felisha Hosein

Assignment Brief No: 1


Student edexcel No: D674966

References
http://weblogs.java.net/blog/mlam/archive/2007/04/why_choose_java.html
http://www.cs.armstrong.edu/liang/intro6e/JavaCharacteristics.pdf

Page | 8

Das könnte Ihnen auch gefallen