Anda di halaman 1dari 1

EJB assignment: VAT CALCULATOR

Create an application using Session Bean as following:


a. Write session Bean with following functionality: [10]
- the bean has a business method caculatePay() should calculate payment of the invoice
based on the following formula:
Totalpay = invoicePay + VATRate * invoicePay

- VATRate is depending on ProductType as following:

ProductType VATRate
Service 10%
Hardware 5%
Software 0%

- ProductType and invoicePay is transferred from client

b. Create EJB jar file and save the jar naming it VATSessionBean.jar [5]

c. Create Client with name invoiceClient as following: [10]

- ProductType has three values:

Service
Hardware
Software

- User chooses ProductType, enters ProductName and invoicePayment ,after that, user clicks
on Ok button. Client requires server (VATBean) calculate the total Payment and display
the result on the TotalPayment TextField.
- When user is click on Clear button, all elements of this form will be clear.
- When user is click on Close button, this form will be close.
By Mr.3

Anda mungkin juga menyukai