You are on page 1of 8

WORKSHOP 1

JAVA PROGRAMMING

 Create a template, EB.ONLINE.SHOPPING for defining the table properties.

 Add the following fields to the table with the following properties:
Field Name Length Data Type Description
@ID 20 ID should begin with “OS”
Should have drop down
from Customer
CUSTOMER.NO Customer Application
Should have drop down
COUNTRY Alphanumeric from Country Application
REGISTER.DATE 11 Date
XX.ADDRESS 35 Alphanumeric
Should have dropdown as
Amazon,Flipkart and
TYPE.OF.ONLINE.PORTAL Alphanumeric Myntra
Should have option like
UPI,Cash on Delivery,
Credit Card,Debit
MODE.OF.CASH Card,NetBanking
CURRENCY Currency To be defaulted to USD.
REG.AMOUNT 18 Amount
ADDL.FEES 18 Amount
Should have drop down
from Account Application.
Should be inputtable if
Cash is selected in
ACCOUNT.NO Account MODE.OF.CASH
Should be inputtable if
Card is selected in
CARD.DETAILS Numeric MODE.OF.CASH
Should be inputtable if upi
is selected in
UPI.ID Alphanumeric MODE.OF.CASH
POINTS.EARNED 3 Numeric
TOT.AMOUNT 18 Amount

Validation on the fields:


Raise error in case the REGISTER.DATE is greater than today.
TOT.AMOUNT should be sum of REG.AMOUNT and ADDL.FEES.

You might also like