Page 442 - computer science (868) class 11
P. 442
INTERNAL ASSESSMENT
Marks: 30
Teachers should maintain a record of all the assignments done by the students as part of the practical work
throughout the year and give it due credit at the time of cumulative evaluation at the end of the year. Students are
expected to do a minimum of twenty assignments for the year and ONE project based on the syllabus.
Candidates will be required to submit a work file containing the practical work related to programming assignments
done during the year and ONE project.
1. Programming assignments done throughout the year: 10 marks
2. Project Work (based on any topic from the syllabus): 5 marks
Program 1 Write a program to find the sum of two binary numbers.
1 import java.util.*;
2 class binary_Add
3 {
4 public static void main()
5 {
6 //Two variables to hold two input binary numbers
7 long bin1, bin2;
8 int i = 0, carry = 0, j;
9 //This is to hold the output binary number
10 int add[] = new int[10];
11 //To read the input binary numbers entered by user
12 Scanner sc = new Scanner(System.in);
13 System.out.println("Sum of the Binary Number ");
14 System.out.println("-------------------------");
15 //getting first binary number from user
16 System.out.print("Enter the first binary number : ");
17 bin1 = sc.nextLong();
18 //getting second binary number from user
19 System.out.print("Enter the second binary number : ");
20 bin2 = sc.nextLong();
21 System.out.println("-------------------------");
440440 Touchpad Computer Science-XI

