Informatics Paper

Published on March 2017 | Categories: Documents | Downloads: 23 | Comments: 0 | Views: 157
of 3
Download PDF   Embed   Report

Comments

Content

 

Roll NO Subject Code No 065 Time Allowed : 3 hours

Maximum Marks : 14 Informatics Practices – Practical Session 2012-13

Q 1: Mr. Radhey Shyam Bansal Bansal the owner of the Kiddi Land Enterprises Enterprises has asked asked his programmer Ekta to develop the following GUI in netbean

Mr. Bansal accepts payment through three types' of credit cards The discount is given according to the following scheme:

If the Bill amount is more than 25,000, then the customer gets an ad additional ditional discount of 5% Write Java code for the following: i. 

To assign Additional Discount as 0 (jTextField4) and Net Amount as 0 (jTextField5). Also Set them as un-editable.

ii. 

[ When “Calculate Discount” (jbutton1) is clicked ]

1

 

To Calculate discount as per given criteria and display the same in jTextField3 To assign Additional Discount (jTextField4) as 5% of amout(jTextField2) as per the above condition To enable “Calculate Net Amount” (jButton2) button

iii. 

2

* When “Calculate Net Amount” (jButton2) is clicked +  

To calculate Net Amount as [Total Cost (jTextField2) – Discount(jTextField3) –  Additional Discount (jtextField4)] To Display the Net Amount in jTextField5. Q 2: What will be displayed in JTextField1 after executing following code

2 2

int m=16; m=m+1; if(m<15)  jTextField1.setText(Integer.toString(m));  jTextField1.setText(Integ er.toString(m)); else  jTextField1.setText(Integer.toString(m+15));  jTextField1.setText(Integ er.toString(m+15)); Q 3: What message will be displayed in Message Dialog after executing the following code

2

int p,q=100; for(p=10;p<=12;p++) { Q+=p; } JOptionPane.showMessageDialog(n JOptionPane.show MessageDialog(null,”P ull,”P : ”+p+“ Q :”+q+”’);  

Q 4: What will be displayed in jTextArea1 after executing the following statement?  jTextArea1.setText(“cbse \n Practical Exam \t IP”);  Q 5: Consider the table exam given below. Write command in MySql for (i) to (v) and output for (vi) to (viii)

1

 

  To list the names of those students who have obtained first division in

i. 

ascending order of name ii. 

1/2

To display a report listing name, subject and annual stipend received assuming that the stipend column has monthly stipend

iii. 

1/2

To count the number of students who have either Accounts or Informatics as subject

iv. 

1/2

To insert a new row in the table exam: 6,’Mohan’,500,’English’,73,’Second’

1/2

v. 

To display a list of students who have average in range 60-70

1/2

vi. 

Select count (Distinct subject) from Exam;

1/2

vii. 

select avg(Stipend) from exam where division=’Third’;

1/2

viii. 

select min(average) from exam where subject=’’English’;

1/2

`

`

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close