Sie sind auf Seite 1von 6

Date: 21/10/2017

Department of Computer Science

Kanchrapara College Computer Science Honours 1st year


Software Lab Practical List:

1. Write a programme to find the area and perimeter of a circle.


2. Write a programme to swap two numbers with 3rd variable.
3. Write a programme to swap two numbers without 3rd variable.
4. Write a programme to find the square of a given number.
5. Write a programme to find the power of a given number.
6. Write a programme to check the given number is >1000 or not.
7. Write a programme to find the maximum and the minimum number
within two numbers using ternary operator.
8. Write a programme to find the maximum and the minimum number
within three numbers without using ternary operator.
9. Write a programme to find the maximum and the minimum number
within two numbers without using ternary operator.
10. Write a programme to check that the triangle can form or not when
three sides of a triangle is given.
11. Write a programme to make a basic arithmetic operational calculator
by using switch case.
12. Write a programme to convert the temperature from Fahrenheit to
Celsius and vice versa using switch case.
13. Write a programme to calculate the sum of 1^1+2^2+3^3+4^4+……..+n^n
using for loop.
14. Write a program to calculate 1*2*3*…..*n or n! Using for loop.
15. Write a programme to calculate the sum of 1^1/1 + 2^2/2 + 3^3/3 +............
+ n^n/n.
16. Write a programme to calculate the multiplication from n1 to n2 (n1*.......
*n2).
17. Write a programme to calculate the sum of 1^1 + 2^2 + 3^3 +....... + n^n
without using pow function.
18. Write a programme to calculate the multiplication without using the
multiplication sign (*).
19. Write a programme to calculate the division without using the division
sign (/).
20. Write a programme to calculate the basic arithmetic operation use
charter as case number and the programme will be continue until the
user chose exit.
21. Write a programme to print the Fibonacci series.
22. Write a programme to print the Fibonacci series in a specific range.
23. Write a programme to reverse a given number.
24. Write a programme to calculate the sum of the digits in a given number.
25. Write a programme to find out the integer number form the digits
entered by the user. The total number of the digits is also mentioned by
the user.

Teachers Signature
Kanchrapara College
Date: 21/10/2017 Department of Computer Science

26. Write a programme to find out the integer number form the digits
entered by the user. The user enters the digits and at the end the user
enter dot (.) to stop to enter the digits.
27. Write a programme to check the given number is Armstrong number or
not.
28. Write a programme to check the given number is Krishnamurthy
number or not.
29. Write a programme to check the given number is Palindrome number or
not.
30. Write a programme to check the given number is Ramanujan number or
not.
31. Write a programme to find the greatest common divisor (GCD) of two
given number.
32. Write a programme to find the least common multiple (LCM) of two
given number.
33. Write a programme to check the given number is prime number or not.
34. Write a programme to print the prime number in a given range.
35. Write a programme to check the given number is a twin prime number
or not.
36. Write a programme to print the pattern given blow:

1 2 3 4

2 3 4 5

3 4 5 6

4 5 6 7

37. Write a programme to print the pattern given blow:

0 1 0

1 0 1

0 1 0

38. Write a programme to print the pattern given blow:

1 2 3

2 4 6

3 6 9

39. Write a programme to print the pattern given blow:

1 2 3 4

10 20 30 40

100 200

1000
Teachers Signature

Kanchrapara College
Date: 21/10/2017 Department of Computer Science
40. Write a programme to print the pattern given blow:

1 2 3 4

1 2 3

1 2

41. Write a programme to print the pattern given blow:

1 2 3 4 3 2 1

1 2 3 2 1

1 2 1

42. Write a programme to print the pattern given blow:

1 0 1 0

0 1 0

1 0

43. Write a programme to print the pattern given blow:

1 0 1 0 1 0

1 0 1 0 1

0 1 0 1

0 1 0

1 0

44. Write a programme to print the pattern given blow:


1 1
1 2 2 1

1 2 3 3 2 1

1 2 3 4 3 2 1

Teachers Signature

Kanchrapara College
Date: 08/01/2018 Department of Computer Science

45. Write a programme to print the pattern given blow:

A A

A B B A

A B C B A

46. Write a programme to print the pattern given blow:

A B C D C B A

A B C C B A

A B B A

A A

47. Write a programme to print the pattern given blow:

4 3 2 1

4 3 2

4 3

48. Write a programme to print the pattern given blow:

1 2 3 4

1 2 3

1 2

49. Write a programme to print the pattern given blow:

1 2 3 4

2 3 4

3 4

4
Date: 08/01/2018
Department of Computer Science

50. Write a programme to print the pattern given blow:

1 2 1

1 2 3 2 1

1 2 1

51. Write a programme to print the pattern given blow:

1 1

1 2 1

1 2 2 1

52. Write a programme to print the pattern given blow:

* *

* * *

* * * *

* * *

* *

53. Write a programme to print the pattern given blow:

* *

* *

* *

*
Date: 08/01/2018 Department of Computer Science

54. Write a programme to print the pattern given blow:

1 2 3 4 3 2 1

1 2 3 2 1

1 2 1

1 2 1

1 2 3 2 1

1 2 3 4 3 2 1

55. Write a programme to print the pattern given blow:

1 2 3 4

4 3 2 1

1 2 3 4

4 3 2 1

56. Write a programme that will implement trouser.


57. Write a programme that will implement linear search.
58. Write a programme that will implement frequency search.
59. Write a programme that will implement binary search.
60. Write a programme that will implement bubble short.
61. Write a programme to calculate the sum of two matrixes.
62. Write a programme to calculate the multiplication of two matrixes.
63. Write a programme to find out the transpose of a matrix.
64. Write a programme to find out the determination of a matrix.
65. Write a programme to find out the inverse of a matrix.

Do the following without using “string.h”

66. Write a programme that will implement pattern matching.


67. Write a programme to find the vowel of a text.
68. Write a programme to find the frequency of character from text.
69. Write a programme to check the entered string is a palindrome string or
not.
70. Write a programme to remove the unnecessary space from text.
71. Write a programme find the abbreviation of name (Pritam Ghosh >P G
and P Ghosh).
72. Write a programme to reverse the words of a string and reverse of
string.
73. Write a programme to capitalize the 1st character of every word.
74. Write a programme to convert upper to lower case.
75. Write a programme to convert lower to upper case.

Das könnte Ihnen auch gefallen