Académique Documents
Professionnel Documents
Culture Documents
DOC
WHOLE SYLLABUS REVISION WITH FUNDAMENTAL PROGRAMS
If-Else
1. Leap Year (practice of nested if)
b b 2 4ac
2. Roots of quadratic equation
2a
and if equal (b2-4ac==0), distinct(>0) or imaginary (<0).
www.kishorepandit.com
Nested Looping
22. Special/ krishnamurthy number (145=1!+4!+5!)
23. Sum of
1+ 2
1+ 2 + 3
...
1 + ..n
1!
2!
3!
n!
24. Prime number between 1 and 100.
25. Multiplication Tables of numbers between 13 and 19.
26. Frequency of each character in a string.
27. Frequency of each digit in a number.
28. 1
1
*
A
1
12
22
**
AB
10
123
333
***
ABC
101
1234 4444
****
ABCD
1010
1
T
T
1
Reversing
23
AA
TA
25
456
BBB
TAB
368
7 8 9 10
LLLL
TABL
4 7 9 10
EEEEE TABLE
|
30. Enter 5 values in an array and display the sum and average
of even numbers.
31. Enter names and marks in an array and display the name of
the student who has scored the highest marks.
32. Store name and phone numbers in 2 different arrays. Ask
for a name and display the phone number.
33. Store item[], quantity[], price[] & display bill (with headings)
34. Store 10 values in an array. Reverse it in itself. Delete the
5th value (shift all values to the left and put a zero at the end).
35. Show unique values in an array.
36. Menu (1) Merge 2 arrays in third (2) Sum 2 arrays in third
Double Dim
(a). 3 Salesmen, 4 zones - display total of each salesman and zone, (b) Sum of
Diagonals, (c) Display the location of a name in 3x3 Array., (d). Add 2 matrices.
Strings
37. Count vowels in either case
38. Palindrome
39. Piglatin (KING=INGKAY, TROUBLE = OUBLETRAY).
40. Toggle case and succeed one character of a string.
41. Capitalize first character of each word of a sentence.
42. Display words which start with the letter A or a.
43. Show This in place of That in a sentence and also
display a count of the occurrences.
44. Longest word in a sentence
45. Initials of a name (E.g. M.K.G.).
46. Display a sentence in reverse.
47. Sort the alphabets of a word.
48. Binary to Decimal / Decimal to Binary.
Object Oriented Programming
(Programs in condition/Ranges important for this)
49. Class: TRIANGLE
Private instance variables: s, a, b, c.
Private functions: calcS() To calculate S
Public Functions: A default & a parameterized constructor.
input() to input values
double area() to calculate and return the area
display()- to display the area calculated by area()
Also write main() in another class to execute the functions of
the class defined above.
50. Intentionally left blank.
[END]
KP/ICSE2013/SECTIONB.DOC /Page 1 of 1