Write a program to accept 2 dates in the string format dd/mm/yyyy and find the difference in days between the 2 dates. Example: INPUT: Date 1 : 20/12/2012 Date 2 : 11/02/2013 OUTPUT: Difference = 54 days The program should include the part for validating the inputs namely the date and the day on 1st January of that year.

Read More »# Class 12

## ISC Practice Paper [Computer Science (2013)]

This practice paper consists of 3 questions of 10 marks each. The timing for this paper is 45 minutes. You need to attempt all the given questions. The questions given in this paper basically covers the questions related to Output, completing a given program, Data structures, Recursion and Complexity.

Read More »## Collection of String Programs using Recursion [ISC Computer Science]

This PDF is a collection of various programs on Strings done using the Recursive concept. The unique feature of this collection is that along with the recursive codes, we have provided the Iterative codes of the same program as well. This will facilitate the students in understanding the concept of recursion well.

Read More »## Program for Generating Lucky Numbers (ISC 2001) – [Method 1]

This is the Java program for generating the Lucky Numbers within a given range. This is the 1st method, and it uses only one single dimensional array to generate the Lucky Numbers. Consider the sequence of natural numbers. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Removing every second number produces the sequences 1, 3, 5, 7, 9 Removing every third number produces the sequences 1, 3, 7,9 Removing every fourth number produces the sequences 1, 3, 7 Hence, The Lucky numbers less than 10 are: 1, 3, 7

Read More »## [Solved] Question 10 (Happy Number) – ISC 2012 Computer Science

Program to check if a given number is a happy number or not. A happy number is a number in which the eventual sum of the square of the digits of the number is equal to 1. Example: 28 [Question 10 (ISC 2012)]

Read More »## Sample Programs on Operations on Text Files for ISC Computer Science

Sample programming codes of the operations performed on a text file. These operations include: Creating and Writing to a Text File Reading and Displaying from a Text File Copying the records of a Text File into another Text File Deleting a record from a File Inserting a record into a File Deleting a file completely Renaming an old file to a new file name Editing/Replacing a record in a File Sorting the records stored in the file in alphabetical order Searching for a record in a file Merging 2 files into a single file

Read More »## Program for displaying the Denominations of an Amount

Java program to accept the amount from the user and display its break-up in descending order of denomination. (i.e. preference should be given to the highest denomination available) along with the total number of notes.

Read More »## Program to Check for Kaprekar Number

Program in Java (BlueJ) to input a number and check whether it is a Kaprekar number or not. A Kaprekar number is a number, whose square is found out and the sum of the left and right part of its square (divided from its middle part) is equal to the number itself.

Read More »## [Question 1 (Prime Palindrome)] ISC 2012 Practical [Solved]

Java Program for Printing all the Prime palindrome numbers in the given range. Solution of Program 1 of ISC 2012 Computer Science Practical Exam.

Read More »## Program on Decimal to Roman Number Conversion [Method 2]

This is the Second Method of Converting a Decimal Number entered by the user into its Roman Equivalent. Kindly read Method 1 also. [Note: The number entered should be within the Range 1-3999]

Read More »## Program on Decimal to Roman Number Conversion [Method 1]

This is the First method of finding the Roman equivalent of any Decimal number entered by the user. [The number entered should be within the Range 1-3999]

Read More »## Program to find the LCM of two numbers [Method 2]

This is Method 2 of finding the LCM of two given numbers and is a better way of finding the LCM compared to Method 1. It is better because, the number of times the for loop executes is reduced drastically.

Read More »