some C programming problems...
Posted on 1998-06-29
1.)Dates are commonly printed in several different formats in business correspondence. Two of the more common formats are:
07/21/97 and July 21, 1997
Write a program that reads a date in the first format and prints the date in the second format.
2.)Write a program that reads a line of text and prints a table indicating the number of occurrences of each letter of the alphabet in the text.
3.)Implement a multipurpose sorting program in C using function pointers. The following functions are expected.
a) bubble() -> for sorting
b) swap() -> to interchange two values in two locations
c) ascending() -> to verify the two values passed to this function are in ascending order
d) descending() -> to verify the two values passed to this function are in descending order
The bubble() function should be passed with the array of integers, the array size and the pointer to the function ascending() or descending() (depending upon
the user's choice). Use bubble sort.