Client Server Application

Only available on StudyMode
  • Download(s) : 28
  • Published : March 18, 2013
Open Document
Text Preview
Prepared by Emaliana Kasmuri

Assignment for BITP 3123

Table of Contents
1.

Client Server Application using Java ................................................................................ 1

2.

Requirements and Screen Design for Client Side ............................................................ 1

3.

Requirements and Screen Design for Server Side ........................................................... 2

4.

Requirements for the Client Server Application ................................................................ 3

5.

Requirement for Submission of Application ...................................................................... 3

6.

Evaluation of the Client Server Application ....................................................................... 3

7.

Evaluation Schedule ......................................................................................................... 3

ii

Assignment for BITP 3123

List of Figures
Figure 1: GUI design for client side ........................................................................................... 1 Figure 2: GUI design for server side......................................................................................... 2

iii

Assignment for BITP 3123

1. Client Server Application using Java
This assignment is to create a client server application for a point of sales system. A client will receive sales input from user and send the information to the server for calculation. The server will return the total sales amount to the client. The client will display and issue a receipt to the customer. The server will calculate the total sales transaction daily. This assignment carries 20% from total coursework marks.

2. Requirements and Screen Design for Client Side
Figure 1 shows screen design for client side. The screen is used to receive input from the user to calculate and record sales transaction.

Figure 1: GUI design for client side

The requirements for the client side as follows: 1.
2.
3.
4.

The client shall display a message to indicate the server readiness. The list of ISBN is retrieve from database.
The value of discount are 0%, 5%, 10%, 20% and 30%
Sub Total, Total Item, Total Price, Remainder, Book Details, Sales Details and Price are not editable.
5. The following happens when the user selects ISBN.
a. Book details and price will be displayed
6. The following happens after the user enters quantity, select discount rate then click Confirm button.
a. Total item will be calculated by the server.
b. Subtotal will be calculated by the server.
c. Total price will be calculated by the server.
d. Sales details will be displayed.
e. ISBN, Price, Quantity and Book Details will be cleared ready for the next input. 7. The following happens when the user click Clear button.
1

Assignment for BITP 3123

a. Item Select ISBN is selected.
b. Price will be cleared but left with RM.
c. Quantity will be cleared.
d. Book details will be cleared.
8. The following happens when Cash button is clicked after the value of Cash is entered. a. Remainder will be calculated.
9. The receipt will be printed (into a text file) when the user click Print Receipt button. The receipt will not be printed if Cash is never clicked.
10. An appropriate message must be displayed to the user if any of the exception occurs.

3. Requirements and Screen Design for Server Side
Figure 2 shows screen design for client site. The screen is used to display the activities occurs at the server side.

Figure 2: GUI design for server side

The requirements for the server side as follows: 1. The server will be in ready mode when the user clicks the Start Server button. 2. The server will send an acknowledgement of readiness when there is a client request for connection.

3. All calculation will be done at the server side.
4. The server will record all the sales transactions and server activities...
tracking img