Number of programs -20 S.No Topic Number of programs 1 User Defined Functions 4 2 Constructors 4 3 Encapsulation 1 4 Library Classes 3 5 String handling 3 6 Arrays 5
File type Stick file First Page or cover page Will be provided by School. Pen Blue or Black (preferably Black) Pages A4 size (One side rule and one side blank )
Cover page
Index Page S.No Topic Page no 1 User Defined Functions 2 Constructors 3 Encapsulation 4 Library Classes 5 String handling 6 Arrays
Acknowledgement
Content of the chapter-1
Question (Sample)
Sample Program (Hand written)
Variable description table(VDT) (hand written) Variable Data type Description C double Used to store the calculated value in Celsius. F double Input by the user , the temperature in Fahrenheit.
Output (hand written /Printout)
Content of the chapter-2
Program
VDT table and OUtput
USER-DEFINED FUNCTIONS(ANY 4) PROGRAMS FROM PAGE NUMBER 142 T0 146 PROGRAMS FROM 163,155 (ANY 4)
ENCAPSULATION(1 PROGRAM) THEORY AND EXAMPLES BASED
EXAMPLE 1
EXAMPLE 2
LIBRARY CLASSES( any 3) PROGRAM TO INPUT A SENTENCE THROUGH PARAMETERS. Find and print the number of digits spaces letters and special characters.(page 217) Program library issues(219) Program an electricity company(221)
String handling( any 3) Program to count the number of spaces vowels and number of words in the sentences: “hello how are you”
String handling 2. Write a program that encodes a word into Piglatin . To translate a word into a Piglatin word, convert the word into uppercase and then place the first vowel of the original word as the start of the new word along with the remaining alphabets. The alphabets present before the vowel being shifted towards the end followed by “AY”. Sample Input (1) : London, Sample Output (1) : ONDONLAY Sample Input (2) : Olympics, Sample Output (2) : OLYMPICSAY
String handling 3.Write a program to input a sentence and convert it into uppercase and count and display the total number of words starting with the letter ‘A’. Example: Sample Input: ADVANCEMENT AND APPLICATION OF INFORMATION TECHNOLOGY ARE EVER CHANGING. Sample Output: Total number of words starting with letter ‘A’ = 4.
Arrays ( any 5) Arrays Bubble sort Selection sort Linear search Binary search
Arrays (5 programs) program no 1 Write a Program to input three names in an array and print the output in the reverse order of the input. Sample input- Rohit Rameez Robert Sample output-Robert Rameez Rohit
Program 2 Write a Program to input 10 integers in an array and sort them in ascending order using bubble sort and display the sorted array.
Program 3 Write a Program to input 10 integers in an array and sort them in ascending order using selection sort and display the sorted array.
Program 4 Write a program to input 10 numbers in an array. Also input a number to be searched in a given array using a linear search and print the last occurrence of the number in the given array it is present.
Program 5 Based on binary search
Program 6 WAP to input 3 names. Print the names in ascending order of alphabets(in uppercase) using bubble sort.
Program 7 Write a Program to input 10 numbers in an array, calculate and print the sum and average of the arrays.