Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
9Activity
0 of .
Results for:
No results containing your search query
P. 1
SomPrgs.

SomPrgs.

Ratings: (0)|Views: 462|Likes:
Published by api-3756871

More info:

Published by: api-3756871 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Topic
Page No

1. /* Write a C programme to accept a list of dataitems & find the IInd largest &
IIsmallest in it & take average of both & search for that value. display
appropriate message on successful search.*/

1
2.
2
3.
2
4. /* Write a Cprogramme to arrange the given numbers in asceding order
2
5. /* Program to convert the given binary number into decimal */
3
6. /* Program to convert the given binary number into decimal */
3
7. /* Write a C program to find the area of a triangle, given three sides*/
4
8. /*Write a C program to generate and print first N FIBONACCI numbers*/
4
9. /* Write a C program to find the GCD and LCM of two integers output the
results along with the given integers. Use Euclids' algorithm*/
5

10. /* Write a C program to find the sum of odd numbers and sum of even
numbers from 1 to N. Output the computed sums on two different lines with
suitable headings */

6
11. /* Write a C program to reverse a given integer number and check whether
it is a palindrome. Output the given numbers with suitable message*/
7

12. /* Write a C program to find the value of sin(x) using the series up to the
given accuracy (without using user defined function) Also print sin(x) using
library function*/

8

13. /* Write a C program to find the value of cos(x) using the series up to the
given accuracy (without using user defined function) Also print cos(x) using
library function.

9
14. /* Write a C program to check whether a given number is prime or not and
output the given number with suitable message
10
15. /* Write a C program to generate and print prime numbers in a given range.
Also print the number of prime numbers*/
11

16. /* Write a C program to find the number of integers divisible by 5 between
the given range N1 and N2, where N1 < N2 and are integers. Also find the
sum of all these integer numbers that divisible by 5 and output the
computed results

12

17. /* Write a C program to read N integers (zero, +ve and -ve) into an array A
and to a) Find the sum of negative numbers b) Find the sum of positive
numbers and c) Find the average of all input numbers. Output the various
results computed with proper headings */

13
18. /* Write a C program to find the area of a circl, given the radius*/
14

19. /* Write a C program to input N numbers (integers or reals) and store them
in an array. Conduct a linear search for a given key number and report
success or failure in the form of a suitable message*/

15
20. /* Write a C program to sort N numbers in ascending order using Bubble
sort and print both the given and the sorted array with suitable headings */
17

21. /* Write a C program to accept N numbers sorted in ascending order and to search for a given number using binary search. Report sucess or fialure in the form of suitable messages*/

18
22. /* Write a C program to input real numbers and find the mean, variance and
standard deviation
*/
20

23. /* Write a C program to read in four integer numbers into an array and find the average of largest two of the given numbers without sorting the array. The program should output the given four numbers and the average with suitable headings.

21

24. /* Write a C program to evaluate the given polynomial P(x)=AnXn + An-1Xn-
1 + An-2Xn-2+... +A1X + A0, by reading its coefficents into an array.
[Hint:Rewrite the polynomial as P(x) = a0 + x(a1+x(a2+x(a3+x(a4+x(...x(an-
1+xan)))) and evalate the function starting from the inner loop]*/

23
25. /* Write a C program to read two matrices A (MxN) and B(MxN) and perform
25
1
addition OR subtraction of A and B. Find the trace of the resultant matrix.
Output the given matrix, their sum or Differences and the trace.*/
26. /* Write a C program to read A (MxN), find the transpose of a given matrix
and output both the input matrix and the transposed matrix.*/
28

27. /* Write a C program to read a string and check whether it is a palindrome or not (without using library functions). Output the given string along with suitable message*/

29

28. /* Write a C program to read two strings and concatenate them (without
using library functions). Output the concatenated string along with the given
string.

31
29. /*Write a C program to find the simple interest,given principle,rate of interest
and times*/
31

30. /* Write a C program to read an English sentence and replace lowercase
characters by uppercase and vice-versa. Output the given sentence as well
as the case covrted sentence on two different lines.*/

32

31. /* Write a C program read a sentence and count the number of number of vowels and consonants in the given sentence. Output the results on two lines with suitable headings

33

32. /* Write a C program to read N names, store them in the form of an array and sort them in alphabetical order. Output the give names and the sorted names in two columns side by side wih suitable heading

34

33. /* Write a C program to sort given N elements using SELECTION sort
method * using functions a) To find maximum of elements b) To swap two
elements

35

34. /* Develop functions a) To read a given matrix b) To output a matrix c) To
compute the product of twomatrices .Use the above functions to read in two
matrices A (MxN)* B (NxM), to compute the product of the two matrices, to
output the given matrices and the computed matrix in a main function*/

37

35. /* Write a C program to read a matrix A (MxN) and to find the following using
functions a) Sum of the elements of each row b) Sum of the elements of
each colum c) Find the sum of all the elements of the matrix .Output the
computed results with suitable headings*/

39

36. /* Write a C program to read two integers M and N and to swap their values.
Use a user-defined function for swapping. Output the values of M and N
before and after swapping with suitable messages

41

37. /* Write a C program to read N integers and store them in an array A, and so find the sum of all these elements using pointer. Output the given array and the computed sum with suitable heading

*/
42
38. /* Write a C program to check whether a given integer is odd or eve*/
43
39. /* Write a C program to check whether a given integer number is positive or
negative*/
43
40. /* Write a C program to find the biggest of three numbers*/
44

41. /* write a C program to find and output all the roots of a quadratic equation,
for non-zero coefficients. In case of errors your program should report
suitable error message*/

45

42. /* Write a C program to simulate a simple calculator to perform arithmetic
operations like addition, subtraction,multiplication and division only on
integers. Error message should be repoetrd if any attempt is made to divide
by zero

46
43. /* Write a C program to find the sum of 'N' natural numbers*/
48

44. /*Program to accepts two strings and compare them. Finally it prints
whether both are equal, or first string is greater than the second or the first
string is less than the second string*/

48
45.
50
46. /* Program to find the sum of cos(x) series*/
51
47. /* 4. Write a c program to compute the surface area and volume of a cube*/
51
48. /* Writ a C programme to cyclically permute the elements of an array A. i.e.
the content of A1 become that of A2.And A2 contains that of A3 & so on as
52
2
An contains A1 */
49. /* Write a to accept a 1-Darray of N elements & split in to 2 halves & sort 1st
half in ascending order & 2nd into descending order. */
52
50. /* Write a C program to accept a decimal number and conert it binary * and
count the number of 1's in the binary number*/
53
51. /* program to delete the desired element from the list*/
54
52. /* Write a C program to arrange the given numbers in descending order */
55
53. /* Write a "C" programme to Interchange the main diagonal elements With
the secondary diagonal elements */
56
54.
57

55. /* Program to accept N integer number and store them in an array AR.The
odd elements in the AR are copied into OAR and other elements are copied
into EAR. Display the contents of OAR and EAR*/

59
56.
59
57. /*Program to generate the fobonacci sequence*/
59
58.
60
59. /*Program to insert an element at an appropriate * position in an array*/
61
60.
63
61. /* Write a "C" programme to interchange the any tworows &columns of a
matrix*/
64
62.
64
63.
67
64. /* Write a "C" programme to interchange the any tworows &columns of a
matrix*/
69
65.
70
66. /* Program to compute mean, varience and standard deviation */
71
67. /* 2. Write a c program to multifly given number by 4 using bitwise
operators*/
72
68.
72
69. /* Write a C programme (1-D Array) store some elements in it.Accept key &
split from that point. Add the first half to the end of second half*/
73
70. /* program to reverse the given integer*/
74
71. /* program to reverse the given integer*/
74
72. /* Write a "c" programme to find the frequency of odd numbers & even
numbers in the input of a matrix */
75

73. This program is to illustrate how user authentication is made before allowing
the user to access the secured resources. It asks for the user name and
then the password. The password that you enter will not be displayed,
instead that character is replaced by '*' .

76
74. /* program to determine the given number is odd */
76
75. /* program to find the sum of first 50 natural numbers*/
76
76. /* program to illustrate if statement with compount statement*/
77
77. /* program to check if the two numbers are equal*/
77
78. /* program to find the largest among three numbers*/
77
79. /* program to categorize the person based on height*/
78
80. /* program to determine the quadrant of a point in a cartesian coordinate
system*/
78
81. Program to find the ares of different geometrical figures using switch
statement */
79
82. /* program to grading the student */
80
83. /* program to find the sum of 50 numbers using for */
80
84. /* program to illustrate compound statement with for loop*/
80
85. /* program to find the factorial of a number */
81
86. /* program to illustrate for loop without some loop expressions */
81
87. /* program to accept a string and find the sum of all digits in the string*/
81
88. * program to find the sum of the sine series */si
82
89. /* program to find the sum of two 1-D arrays using * Dynamic Memory
83
3

Activity (9)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Svatsan Sri liked this
Heidy liked this
Jay Sharma liked this
swathir007 liked this
partho1432513 liked this
Sri Ram liked this
durga0318 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->