Sample Question No. 4 for IP - Informatics Practices ( AISSCE 2014 ) _ B
[2+2+3+3]
ABC School uses the following interface built in java
to check the eligibility of a student for a particular stream from science,
commerce and humanities. The user first enters the total percentage and selects
the desired stream by selecting the appropriate option button. An additional 5%
is marks is given to students of NCC.
Write Java Code for the following
(a) On the Action event of the close button the
application gets closed.
(b) On the Action event of the clear button all the
text fields and the check boxes get cleared.
(c) On Action event of the button ‘Calc Percentage’
Net percentage of the student is calculated and displayed in the appropriate
text filed. Net percentage is same as that of the actual percentage if the
student doesn't opts for NCC otherwise 5% is added to actual percentage.
(d) On Action Event of the button ‘Result’, the
application checks the eligibility of the students and display result in the
appropriate text field. Minimum percentage for science is 70, for commerce 60
and humanities 40.
