Sie sind auf Seite 1von 2

Consider flowchart as a program n solve it in C(definition here is important)

Wherever u read desing a flowchart take it as write a program)

Write programs to --
7 Copy one string to another without using strcpy() function.
8. Copy one string to another using strcpy() function.
9. Concatenate one string to another without using strcat() function. (i.e. connect
one string at end of another)
10 Concatenate one string to another using strcat() function. (i.e. connect one
string at end of another)
11. Compare two strings without using strcmp() function.
Compare two strings using strcmp() functi
12 Copy the city-names array to another array in uppercase.
2 Accept a city-name (say search_city); count number of occurance of
search_city variable in the above 3 created city-names array. Give proper output
message
13 Create two arrays Country and Capital each of 10 elements. Read 10 country-
names and their capital-names from user and store them in Country and Capital
arrays respectively. Now show a menu having 3 menu-items:
(1) Search Capital
(2) Search Country
(3) Exit
In first option, accept a country-name from user and show corresponding capital on
screen.
In second option, accept a capital-name from user and show corresponding country
on screen. If not found, then give appropriate “Not found” message.
5 Create two arrays Name and Age each of 10 elements. Read 10 names of children
and their age from user and store them in Name and Age arrays respectively.
Now show a menu having 4 menu-items:
(1) Search age
(2) Search name
(3) Sort name viz.
(4) Sort age viz.
(5) Exit
In first option, accept student-name from user and show corresponding age on
screen.
In second option, accept an age from user and show all names having that age.
In third option, sort both the arrays in ascending order of names.
In forth option, sort both the arrays in ascending order of ages.

14) Read a string from user and count number of words in the string
15) Read your name from the keyboard and output a list of ASCII codes which
represent your name.
16) Find reverse string of a user-entered string.
17) Read a string from user and check whether it is a palindrome or not.
18. Design an algorithm to count number of vowel characters in an input string.

19. Design an algorithm to count number of upper case alphabets in a given string.

20. Design an algorithm to count frequency of each digits in a given integer constant.
21. Design an algorithm to count number of words in a given string.

22. Design an algorithm to display a string in the middle of a line.

23. Design an algorithm to extract a specific word form a string.

24. Design an algorithm to determine whether string consists of only digits or not.

25. Design an algorithm to determine whether both input strings are identical or not.

26. Design an algorithm to display a string in left justified manner.

Das könnte Ihnen auch gefallen