Professional Documents
Culture Documents
24.Implement and test the binary search method. The program first creates
an array of 10 elements of int type. It displays this array and then prompts
the user to enter a key for testing binary search
25.Create a Date class which consists of fields Day, Month and Year.
Include Appropriate Constuctors and a method NextDay() which
increments the day by 1 and then displays the date in proper format day-
month-year. Check the validity of date.
Reading
Cricket
Dancing
Football
Cricket
iii)WAP to accept two files names as command line argument. Copy only
those lines from the first file to second file which contains the word
“computer”