GROUP A
Write and Algorithm and draw flowchart along with C program for the following questions.
2) WAP to find the sum, product and difference of two given numbers.
3) WAPT accept the days and display the numbers of weeks, months and days.
4) WAP to find and display the interest of given principle, rate and time.
5) WAP to find the greatest number among 3 given numbers.
6) WAP to accept the age and display whether he can vote or not. (age>18)
7) WAP to accept the number and display whether it is odd or even.
GROUP BSolve the following problems in C.
1) WAP to find the sum of all even numbers among 1 to 100.2) WAP to find the sum of every digit of given number.
3) WAP to find if the given number is palindrome or not.
4) WAP to find if the given number is prime or composite
5) WAP to print the given number in reverse order.
6) WAP to print following patterns…
a. 1,11,111,1111,11111
b. 0,1,1,2,3,5,8……10th term
c. 2,5,10,17.......10th term
d. 2,4,6,8,10........up to 10
e.
*
**
***
****
*****
f.
1
121
12321
1234321
123454321
g.
1
22
333
4444
55555
GROUP CPerform the following Array programs in C
1) WAP to input marks of 5 subjects and display total marks and average marks.2) WAP to input the n numbers and display its sum.
3) WAP to find the smallest number among n numbers.
4) WAP to sort the n numbers in the descending order.
5) WAP to find the greatest number from 10 input numbers.
6) WAP to find the sum of two 3x3 matrices.
GROUP DPerform the following Array programs in C
1) WAP to reverse the name of a student2) WAP to check whether the input string is palindrome or not.
3) WAP to convert the given text into lowercase.
4) WAP to input name of 5 students and sort them in the alphabetical order.
5) WAP to input two names and find the longest one.
0 Comments