Programming Assignment for XI C- CS Students 2013-14
List of Programs
for the Session 2013 - 2014
Subject: Computer
Science (083) Class: XI
FLOW OF CONTROL(use
if, if-else , if-else-if, while,
do-while,for,switch-case,continue,break,exit)
1. Write a program to print the
mathematical table of numbers 1 to 10.
(Generalize it to display the table of numbers lying in a
given range – between 30 and 50.)
2. Write a program to find the
factorial value of a number entered by the user and also display the maximum
number that is allowed in the present
execution environment/platform. Make provision to handle negative integers and
floating numbers.
3. Write a program to check
whether the number is prime or not.
4. Write a program to display
co-prime pairs lying in a specified range of natural numbers.
Note : m and n are said to be co-prime iff GCD(m,n) = 1
5. Write a program to print the
given figure (make a general prog. for any no. of rows)
*
* *
* * *
* * * *
* * * * *
6. Write a program to print the
given figure (make a general prog. for any no. of rows)
&
& &
& & &
& & & &
& & &
& &
7. Write a program to print the
given figure (make a general prog. for any no. of rows)
&
& &
& &
& &
& &
&
&
& & & & & & & & &
& & & & & & &
8. Write a program to print the following pattern (make a general prog. for any no. of rows):
1
2 2
3 3 3
4 4 4 4
9. Write a program to print the following pattern(make a general prog. for any no. of rows):
1
2 2
3 3
3 3
4 4 4
4 4 4
10. Write a program to display the
name of the month depends upon the number
( between 1-12) be enter by
the user.
11. Write a program to print the
Fibonacci series of specified terms (0 1 1 2 3 5 ………)
12. Write a program to check
whether a entered year is leap year or not.
13. Write a program to check
whether a character is lower case alphabet with and without library functions.
14. Write a program to find sum and average of n
natural numbers, odd numbers and even
Numbers.
15. Write a program to check whether a number is palindrome
or not.
16. Write a program to print sum of digits of entered number. (For example
125=1+2+5=8).
17. Write a program to display Bar chart of a statistical data.
18. Write a menu based program to perform ADD, SUBTRACT, MULTIPLY, DIVISION of
two given numbers.
19. Write a program To display Geometric
series and Arithmetic series having a given initial value and a factor to
add/multiply.
20. Write a program to find the value of “m” to the power
“n”.
21. Write a program to display bar chart of a given
statistical data
(frequency for each class is given)
Class Frequency
0-10 15
10-20 20
20-30 10
30-50 5
50-60 25
70-80 30
80-90 10
90-100 40
22. Write a program to calculate roots of a quadratic
equation in all cases.
23. Write a Menu driven
program to perform mathematical operations on complex numbers
(ADD,SUB,MULT,DIV,CONJUGATE,MOD,POLAR FORM).
24. Write a program that converts a numerical value to
a word form.
253.596 - two five three decimal point five nine six
456 - four five six
STANDARD LIBRARY & USER DEFINED FUNCTIONS
(String Operations)
25. Write a program to find the
minimum and maximum value from an array of numbers.
26. Write a program to print the
reverse of a string with and without using library functions.
27. Write a program that reads a
string and switch its case (i.e. lowercase character to upper case and vice
versa) with and without using reserved character function.
28. Write a program to arrange the
array elements in ascending order / descending order.
29. Write a program to convert a
decimal number into binary number and vice versa.
30. Write a program to demonstrate call by value and
call by reference.
31. Write a method that accepts two integral parameters
a and b and interchange their values with and without using temporary variable.
32. Write a method powered(a, b) to calculate the value
of a raised to the power b
(both a and
b are integers) without using library functions.
33. Write a program to concatenate 2 character strings
with and without using library function.
34. Write a program to predict future of a entered
person name
(Future forecasting GAME using randomization concept).
35. Write a program to convert Celsius to Fahrenheit
& vice-versa.
36. Write a program to produce negative random numbers
lying in a specified range.
37. Write a program to merge 5 strings and display the
final string.
38. Write a program to reverse the content of a
string/array without using any temporary storage.
STRUCTURES &
ARRAYS(user defined data type , 1-D and 2-D array implememntation)
39. Write a program to perform
mathematical operations (ADD,SUB,MULT,TRANSPOSE) on two matrices.
40. Write a program to search a
specified element from an array.
41. Write a program to find the
sum of left diagonal elements of a nxn matrix.
42. Print the FOURTH largest
element of an array.
43. Write a program to delete ALL Repeating/duplicate
elements from a linear array.
44. Write a program to check
equality of two matrices having complex numbers as elements.
45. Write a program to find sum of
elements in an array along a row.
46. Write a program to find sum of
elements in an array along a column.
47. Write a program to find
product of elements in a 2-D array along a row.
48. Write a program to find
product of elements in a 2-D array along a column.
49. Write a program to find
average of elements in a 2-D array along a row.
50. Write a program to find
average of elements in a 2-D array along a column.
51. Write a program to implement
3-D array.(Enter data, process, display)
52. Write a program to implement
4-D araay. (Enter data, process, display)
For any query feel
free to mail me at hsyadav.kvs@gmail.com