ASSIGNMENT MONTH : JUNE-JULY
Use of 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 –
for example 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 (i.e. wrong inputs)
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 pattern/figure (make a
general prog. for any no. of rows / lines)
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * *
* * * *
* * * *
* * * * *
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 following pattern (make a general
prog. for any no. of rows): Enter a number: 6
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
ASSIGNMENT MONTH : AUGUST
8. Write a program
to print the Fibonacci series of specified terms (0 1 1 2 3 5 ………)
9. Write a program
to check whether a entered year is leap year or not.
10. Write
a program to check whether a character is lower case alphabet with and without
library functions.
11. Write a program to find sum of a given Arithmetic and Geometric
progression of integers.
12. Write a program to check whether a number is palindrome or not.
13. Write
a program to print sum of digits of entered number. (For example 125=1+2+5=8).
14. Write
a program to display bar chart of a given statistical data
(frequency for each class is given)
15. Write
a menu based program to perform ADD, SUBTRACT, MULTIPLY, DIVISION of two given
numbers.
16. Write
a program to display Geometric series and Arithmetic series having a given
initial value and a factor to add/multiply.
17. Write a program to find the value of “m” to the power “n”.
18. Write
a program to calculate roots of a quadratic equation in all cases.
19. Write
a Menu driven program to perform mathematical operations on complex
numbers
(ADD, SUB, MULT,DIV , CONJUGATE , MOD , POLAR
FORM ).
20. Write
a program that converts a numerical value to a word form.
253.596
- two five three decimal point five nine six
-456
- minus four five six
ASSIGNMENT MONTH : SEPTEMBER
STANDARD LIBRARY & USER DEFINED FUNCTIONS (String Operations)
21. Write
a program to find the minimum and maximum value from an array of numbers.
22. Write
a program to print the reverse of a string with and without using library
functions.
23. 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.
24. Write
a program to arrange the array elements in ascending order / descending order.
25. 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.
26. Write a program to concatenate 2 character strings with and
without using library function.
27. Write a program to predict future of a entered person name
(Future
forecasting GAME using randomization concept).
ASSIGNMENT MONTH : OCTOBER
28. Write a program to produce random numbers lying in a specified range.
29. Write a program to merge 5 strings (names) and display the final
string .
30. Write a program to reverse the content of a string without using
any temporary storage.
31. Write
a program to convert a decimal number into binary number and vice versa.
32. Write a program to swap two integers using the concept call by value and call by
reference.
33. Write a method that accepts two integral parameters a and b and
interchange their values with and without using temporary variable.
ASSIGNMENT MONTH : NOVEMBER & DECEMBER
STRUCTURES & ARRAYS(user defined data type , 1-D and 2-D array
implememntation)
34. Print
the FOURTH largest element of an array.
35. Write
a program to delete ALL Repeating/duplicate elements from a linear array.
36. Write
a program to check equality of two matrices having complex numbers as elements.
37. Write
a program to find sum of elements in an array along a row and along a column .
38. Write
a program to find product of elements in a 2-D array along a column and along a
row.
39. Write
a program to perform mathematical operations (ADD,SUB,MULT,TRANSPOSE) on two
matrices.
40. Write
a program to find the sum of left and right diagonal elements of a NxN matrix.