Anda di halaman 1dari 10

Course Name: Programming In Java Assignment Brief No: 1

Student Name: Felisha Hosein 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 Assignment Brief No: 1
Student Name: Felisha Hosein 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 Assignment Brief No: 1
Student Name: Felisha Hosein 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 computer’s
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 high-
level 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 Assignment Brief No: 1
Student Name: Felisha Hosein 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 Assignment Brief No: 1
Student Name: Felisha Hosein Student edexcel No: D674966

System Designs for Desktop Application

a) Class Diagram
1 Rents
v 1.. *
CUSTOMER REGISTERATION CAR
+userId:string
-custName:string -plateno:string
Makes -pickdate:date -carname:string
-custAdd:string

v
-custAge:string -returndate:date -cartype:string
-custMoble:int 1.. * -pickuploc:string -carcolour:string
1.. * -vehiclelass:string -rent: double
-custEmail:string

#register() -add()
-reserve()
#login() -modify()
+search()
-reservation() -reserve()
1.. *
1.. * Ma 1.. *
k es

Add
Makes

RETURN 1
1.. *
v

MANGER/STAFF
PAYMENT 1.. *
1.. *
+id:int +sid:int

v
-id:int
-retdate:date Process 1 -sname:string
-amount:double -sposition:string
-custName:string -printinvoice:string

-update()
#pay() -modifinginginfo()
-confirm() -printinvoice()
1.. 2

ad
ds
1
EARLY RETURN LATE RETURN MANGER/ADMIN

-id:int 1 View
-id:int
-id:int -name:string
-latecharge:double #password:

1..*
-add() REPORTS
#pay() -id:int
-confirm() -modify()
-confirm() -startdate:date
-view()
-enddate:date
-cartype:string
-sales:string
-amtavaiable:string
-amtrented-string
-generate()
-print()
-save()

Page | 3
Course Name: Programming In Java Assignment Brief No: 1
Student Name: Felisha Hosein Student edexcel No: D674966

b) Use Case
Car Rental Use Case
Staff
View & Print
Register as member Invoices

Make reservations for a <<include>>


car\cars Process Rental
ds>>
<<exten
Pick up car View & Edit
bookings
Return care << << e
ex xte View & Edit client
ten nds
>> info
ds
>> Early Return
View available
cars, times & dates Manager
Late Return

Cancel Booking <<extends>> Process Cancel /


Customer delete Bookings

View past bookings

View Invoices

View reports by
Vehicles

Admin

Page | 4
Course Name: Programming In Java Assignment Brief No: 1
Student Name: Felisha Hosein 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 & Confirm


date availability of
>>
deu
ncl requested vehicle
chooses Return <<I
Location Process Rental
e>>
ud
chooses return time & ncl
<< I
date
Print Invoice Manager
Confirm Selected
Vehicle & date >
lude> Reserve vehicle for
<<Inc customer
Customer
Makes Payment

Cancel Bookings

Page | 5
Course Name: Programming In Java Assignment Brief No: 1
Student Name: Felisha Hosein 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 System
1. The user searches for a vehicle to rent 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 5. The system processes the information and
register or login. confirms the availability of the requested
4. The user confirms selected vehicle, date & vehicle.
time of pick up and return.

Page | 6
Course Name: Programming In Java Assignment Brief No: 1
Student Name: Felisha Hosein Student edexcel No: D674966

6. The user makes payments 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 System
1. The user enters criteria for vehicle and 2. The system out puts wrong information
submits search. based on the users criteria.

Alternative Scenario 2

User System
1. The user enters information to book a 2. The system confirms booking an crashes
vehicle and submits and confirms. without really saving the users
information.

Alternative Scenario 3
User System
1. The user enters criteria for vehicle and 2. The system out puts no information
submits search.

Page | 7
Course Name: Programming In Java Assignment Brief No: 1
Student Name: Felisha Hosein 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

Anda mungkin juga menyukai