Right Method to do the Program in Examination | Semester 2 | Laptop Purposes | ICSE X | Anjali Ma'am



Use code LEAF to avail 20% low cost. Value hike coming quickly.
https://unacademy.com/manage-goals

Hyperlink to organize MCQs for Semester 2
https://youtube.com/playlist?record=PL6RC2RXzp6ZdCF0XCYNoJDFxv1k7fGocT

Hyperlink to the Playlist for ARRAYS (Semester 2)
https://youtube.com/playlist?record=PL6RC2RXzp6ZcSrW715wq6bkGTBQF3-FCx

Hyperlink to the Playlist for STRING HANDLING (Semester 2)
https://youtube.com/playlist?record=PL6RC2RXzp6ZcmGvDWhvxfG9oHL93oFezb

Hyperlink to the Playlist for LIBRARY CLASSES (Semester 2)
https://youtube.com/playlist?record=PL6RC2RXzp6ZegYjsYPLI2eQXXIx7R-Po1

Hyperlink to the Playlist for ENCAPSULATION (Semester 2)
https://youtube.com/playlist?record=PL6RC2RXzp6Ze2ExYIV1Vdkh9ft61ExhcA

Be a part of our telegram channel : https://t.me/leafclasses

Leaf lessons in not solely a YouTube channel but additionally a imaginative and prescient to impart greatest data to our younger aspirants of ICSE “Laptop Purposes” topic.

In case of any doubt be at liberty to remark under.

supply

34 thoughts on “Right Method to do the Program in Examination | Semester 2 | Laptop Purposes | ICSE X | Anjali Ma'am

  • May 21, 2022 at 6:47 pm
    Permalink

    Miss, do we need to write variable table for the program?

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    Mam are variable description table and comments required 😊?❀️ Thank you for all your efforts I will miss you in my class 11th.Bye mamπŸ₯°

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    I don't even know how to write a program πŸ˜‘ I was practicing but still..

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    Maam is it really mandatory to write comments? Since our teacher has not told us anything related to it and i am confused. Please tell

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    Ma'am in the displaying part in the loop instead of using i<e and i<O,can we use i<even.length and i<odd.length

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    Mam, do we need to specify the purpose of the object sc in variable description table:
    Scanner sc=new Scanner(System.in) ;

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    Ma'am in binary search if elements are arranged in ascending and descending order will they have different logics?

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    Mam Please check πŸ™πŸ™I have done it like this πŸ‘‡
    import java.util.*;
    class even_odd
    {
    public static void main(String args[])
    {
    Scanner sc=new Scanner(System.in) ;
    int a[ ]=new int[20];
    System.out.println("Enter 20 numbers");
    int n1=0, n2=0;
    for(int i=0; i<20; i++)
    {
    a[i]=sc.nextInt() ;
    if(a[i]%2==0)
    n1++;
    else
    n2++;
    }
    int even[ ]=new int[n1];
    int odd[ ]=new int[n2];
    int o=0, e=0;
    for(int i=0; i<20; i++)
    {
    if(a[i]%2==0)
    {
    even[e]=a[i];
    e++;
    }
    else
    {
    odd[o]=a[i];
    o++;
    }
    }
    System.out.println("Elements of even array:") ;
    for(int i=0; i<n1;i++)
    {System.out.println(even[i]);
    }
    System.out.println("Elements of odd array:") ;
    for(int i=0; i<n2;i++)
    {System.out.println(odd[i]);
    }
    }}

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    is variable discription table is important to make???

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    Ma'am what about variable declaration?
    Is it necessary to make the table? Bcz in our pre boards our marks got deducted bcz of that only. So, plz tell

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    import java.util.*;

    class even_oddarray

    {

    public static void main()

    {

    Scanner in=new Scanner(System.in);

    int a[]=new int[10];

    int even[]=new int[10];

    int odd[]=new int[10];

    System.out.println("Enter the Elements");

    for(int i=0;i<10;i++)

    {

    a[i]=in.nextInt();

    }

    System.out.println("Even Numbers in even[] are :");

    for(int i=0;i<10;i++)

    {

    if(a[i]%2==0)

    {

    even[i]=a[i];

    System.out.println(even[i]);

    }

    }

    System.out.println("Odd Numbers in odd[] are :");

    for(int i=0;i<10;i++)

    {

    if(a[i]%2==1)

    {

    odd[i]=a[i];

    System.out.println(odd[i]);

    }

    }

    }}

    *Can we do the program which u did in video like this?

    Reply
  • May 21, 2022 at 6:47 pm
    Permalink

    What is defining a class? Are methods necessary in it? Can't we follow the usual way of public static void main.. scanner … ?
    Please tell ma'm

    Reply

Leave a Reply

Your email address will not be published.