Page 64 - IP
P. 64
}
jTextAreal.showText (" " + Total) ;
(g) Mr. Ram Kishore, the owner of the Kiddi Land Enterprises has asked his
programmer Saumya to develop the following GUI in Netbeans.
Mr. Ram accepts payment through three types of credit cards. The offer
is given according to the following scheme:
Type of Card Offer
Platinum 20% of amount
Gold 15% of amount
Silver 10% of amount
If the Bill amount is more than Rs.25,000/- then the customer gets an
additional
offer of 5%. Write the Java code for the following:
(a) To assign Additional offer as 0(jTextField4) and Net amount as
0 (jTextField5). Also set them as un-editable.
(b) [when "Calculate Offer"(JButton1) is clicked]
To calculate discount as per the given criteria and display the same
in
jTextField3. To assign Additional offer (jTextField4) as 5% of
amount(jTextField2) as per the above condition.
To enable "Calculate Net Amount"(jButton2) button
5