Wednesday, 13 February 2013

Mrs.Jayanthi Srinivasalu









We do not choose to be born. We do not choose
our parents. We do not choose to die; nor do
we choose the time and conditions of our death.
But within the realm of choicelessness, we do
choose how we live.
Joseph Epstein

I can say for sure you lived well.
Where do I start ... talented craft teacher, great cook, lovely friend,wonderful colleague , asset to the institution list is endless.The programs in the school and The Pakenham Walsh House sports tent will not be same again.. Thank You Jayanthi for all you have done to us.

I read this somewhere......

God saw you getting tired
And a cure was not meant to be.
So he put his arms around you
And whispered 'Come to Me'.
With tearful eyes we watched you …

Rest In Peace

Thursday, 7 February 2013

Loop 2

Points  to  remember :
1. for( i =1,x=1;i<=5;x++,i++)
 two variables can be assigned initial values. Both get incremented simultaneously.But the loop will go on till i is less than or equal to 5.
2.  When you have nested loops, the inner loop gets executed completely,then it goes to outer loop.
3. A compund statement is a set of two or more statements.It is also caleed a block.                                          [ICSE 2005]
4. for loop is fixed iterative type, where the loop repeat for a definite number of times. while and do - while varying iterative type , where the statements are repeated till the condition is true.
5.
1. Write a program to display the following :
a)
1
1  2
1  2  3
1  2  3  4
1  2  3  4  5

b)
1
2  2
3  3  3
4  4  4  4
5  5  5  5  5

c)
5  4  3  2  1
5  4  3  2
5  4  3
5  4
5

2. Write a program to input a number and check whether it is a Special number or not. A number is said to be Special number, if the sum of the factorial of each digit of the number is same as the original number.                 [ICSE 2011]
145= 1 ! + 4! + 5!
      =1+24+120
       =145

3. Write a program to input a number and check whether it is a Automorphic number or not. A number is said to Automorphic if the original number is present on the right of the square of the number.
 5 is Automorphic = 25
25 is Automorphic =625

4. A number is said to be Neon , if sum of all the digits of square of a number is equal to the entered number.

9 = square is 81
   = 8 +1
   = 9

Monday, 4 February 2013

Loop - class 9

Points to remember :
1. break statement is used to break the loop.
2. continue sends the control to the update expression.
3. for loop is used for fixed iterations.That is where you know the final limit.
4. In while loop, condition is tested before execution.
5. The do while loop executes the statements atleast once even if the condition is false.
6. Infinite loop : control does not reach the test condition.
7. Empty loop : loop does not contain any statement in the body.


1. What will be the output for the following programs:
i)
            for(a=0;a<30;a++)
           {
                   if(a==5)
                   break;
                   System.out.print(+a);
          }

ii)
      for(x=1;x<=5;x++)
      {
           if(x==2)
          continue;
          if(x==4)
          continue;
System.out.println(x);
      }
iv)
        int x=0;
       while(x<=10)
        {
               x++;
             if(x==4)
              break;
             System.out.println(x);
        }
2. Differentiate : while and do while.
3.Write a program to enter a number and print the sum of odd numbers and even numbers for the first n natural numbers.                                                                     [ICSE]
4.
      i)         12+22+32+42+…………+n2
      ii)     x2/2+x3/3+………xn/n

1. Fibonacci series:
 0,1,1,2,3,5,8.............................
2. Prime number:
    The divisors are one and the number itself.
    e.g : 5 : divisors 1 and 5
3. Perfect number :
     The sum of the divisors(excluding the number) equal to the number itself.
    e.g : 6
       divisors are 1+2+3=6
4. Armstrong number:
    e.g :
         153=13+53+33
               =1+125+27
               =153
5. Palindrome number:
  e.g:
        272: reverse the number 272.

switch - 2

Points to remember:
1. break statement is used to come out of switch structure.
2. Each of the case value must be unique. The value should be a constant not a variable.
3. character constant should be enclosed by a single quotation.
4. case is a keyword.
5. After case, colon should be used.
6. Default is optional, but it is a good practice to write it.

1. Write a menu driven program to convert temperature from Centigrade to Fahrenheit.                               [ICSE]
c=(5/9)*(f-32)
f=(1.8)c+32

Friday, 1 February 2013

Chicago Children's Choir

Chicago Children's Choir performed in our school on 1st February, 2013. It was fantabulous.


Switch - 1

Points to remember:
1.  switch,case and default  in small letters
2. After switch , the  constant must be either  integer or character constant.
3. If the input doesnot match any given choices , the default will be executed.
4.break statement is compulsory, otherwise all the cases will be executed.
5. After case and the constant , there is a colon(:)
6. After switch there is no semi colon.
7. No two cases can have the same value.

Section A
1. What is the function of default in switch statement?
                                                                                      [ICSE 2005]
2. Write down the syntax of switch case.                [ICSE 2007]
3. What is the purpose of break statement?
4. Re write the following using switch case
int n=0,ch;
if(ch==1)
{
n++;
System.out.println(n);
}
if(ch==2)
{
n+=2;
System.out.println(n);
}
if(ch==3)
{
n+=3;
System.out.println(n);
}

Section B
1. Write a menu driven program to find the area of an equlateral triangle(ET) , a right angled triangle (RT), a scalene triangle (ST)respectively.
2. Write a menu driven program to calculate the area of
circle =p*r*r
square = side * side
rectangle = length * breadth                                 [ICSE 2005]
Display the menu to output the area as per the user's choice. For an incorrect input, appropriate message should be displayed.

Decision Making - 2

1. Calculate the income tax based on the gross annual income  as per the given rule :

Gross annual income                             Tax deduction

<=100000                                                        Nil

100001 to 150000                             10%of the income exceeding 1 lakh

150001 to 200000                             5000+20%of the income exceeding 150000

Above 200000                                  15000+30%of the income exceeding 200000

Write a programto input gross annual  income and print the payable income tax.
2. The water department has an annual water conservation policy.The rates are based on the water consumption of the consumer.
Water in gallons                                        Tax rate
>=45 but <=75                                             475.00
>75 but <=125                                             750.00
>125 but <=200                                         1225.00
>200 but <=350                                         1650.00
>350                                                           2000.00
Display an annual water tax on the input value of water consumption.                                                    [ICSE 2003]
3. Write a program to find the gross salary of an employee for the following allowances and deduction.
Dearness allowance (DA)= 25% of Basic Pay
House rent allowance(HRA) = 15% of basic pay
Provident fund(PF) = 8.33% of basic pay                       
Net pay = Basic+DA+HRA
Gross Pay = Net pay - PF                                           [ICSE 2005]