BOARD PROGRAM class 9-10 icse programs PROGRAMMING
admin  

ICSE Class 10 Important Computer Programs

ICSE Class 10 Important Computer Programs

The ICSE Class 10 computer science curriculum is designed to provide students with a solid foundation in programming. Learning these programs is crucial as they help develop logical thinking, problem-solving skills, and a deep understanding of how computers work. Here’s a look at some essential computer programs that every ICSE Class 10 student should master.

ICSE Class 10 Important Computer Programs

1. Fibonacci Series

For a dedicated post with explanation ,click here : Fibonacci Series: For ICSE Class 10 Students

Understanding the Fibonacci series is fundamental for students. This program teaches recursion and iteration, which are crucial concepts in programming. The Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones, usually starting with 0 and 1.

Sample Code:

gamma codepublic class Fibonacci {
    public static void main(String[] args) {
        int n = 10, t1 = 0, t2 = 1;
        System.out.print("First " + n + " terms: ");

        for (int i = 1; i <= n; ++i) {
            System.out.print(t1 + " ");
            int sum = t1 + t2;
            t1 = t2;
            t2 = sum;
        }
    }
}

2. Palindrome Check

For a dedicated post with explanation ,click here : Palindrome Check : For ICSE Class 10 Students

A palindrome is a word, number, or other sequences of characters that reads the same forward and backward. This program helps students understand string manipulation and logic building.

Sample Code:

gamma codepublic class Palindrome {
    public static void main(String[] args) {
        String str = "madam";
        String reversedStr = new StringBuilder(str).reverse().toString();
        if (str.equals(reversedStr)) {
            System.out.println(str + " is a palindrome.");
        } else {
            System.out.println(str + " is not a palindrome.");
        }
    }
}

3. Bubble Sort

Sorting is a crucial concept in computer science. The bubble sort algorithm is a simple way to sort an array by repeatedly stepping through the list, comparing adjacent elements, and swapping them if they are in the wrong order.

Sample Code:

gamma codepublic class BubbleSort {
    public static void main(String[] args) {
        int[] arr = {5, 1, 4, 2, 8};
        bubbleSort(arr);
        System.out.println("Sorted array:");
        for (int i : arr) {
            System.out.print(i + " ");
        }
    }

    public static void bubbleSort(int[] arr) {
        int n = arr.length;
        for (int i = 0; i < n - 1; i++) {
            for (int j = 0; j < n - i - 1; j++) {
                if (arr[j] > arr[j + 1]) {
                    int temp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = temp;
                }
            }
        }
    }
}

4. Armstrong Number (ICSE Class 10 Important Computer Programs)

An Armstrong number (or narcissistic number) is a number that is the sum of its own digits each raised to the power of the number of digits. This program helps in understanding the use of loops and mathematical operations in programming.

Sample Code:

gamma codepublic class ArmstrongNumber {
    public static void main(String[] args) {
        int number = 153;
        int originalNumber, remainder, result = 0, n = 0;

        originalNumber = number;

        for (;originalNumber != 0; originalNumber /= 10, ++n);

        originalNumber = number;

        for (;originalNumber != 0; originalNumber /= 10) {
            remainder = originalNumber % 10;
            result += Math.pow(remainder, n);
        }

        if(result == number)
            System.out.println(number + " is an Armstrong number.");
        else
            System.out.println(number + " is not an Armstrong number.");
    }
}

5. Factorial of a Number

The factorial of a number is the product of all positive integers less than or equal to that number. This program is a classic example that illustrates the use of loops or recursion in programming.

Sample Code:

gamma codepublic class Factorial {
    public static void main(String[] args) {
        int num = 5;
        long factorial = 1;
        for (int i = 1; i <= num; ++i) {
            factorial *= i;
        }
        System.out.println("Factorial of " + num + " = " + factorial);
    }
}

ICSE Class 10 Important Computer Programs : Conclusion

Mastering these programs is essential for ICSE Class 10 students as they lay the foundation for more advanced programming concepts. Understanding these basic programs not only helps in scoring well in exams but also builds the critical thinking and problem-solving skills necessary for future computer science studies.


To practice programming you can use highly recommended https://www.bluej.org/

Leave A Comment