Write a program which accepts a sentence from the user and alters it as follows:
Every space is replaced by *, case of all alphabets is reversed, digits are replaced by ?
Write a program that accepts names of n cities and write functions for the following:
a. Search for a city
b. Displays the longest string
c. Sorts the names
Write a program that accepts a sentence and splits the sentence into words. Sort each word and reconstruct the sentence.
Input â€“ this is a string Output â€“ hist is a ginrst
Write a menu driven program which performs the following operations on strings. Write a separate function for each option. Use pointers
i. Copy one string to another
ii. Concatenate two strings
iii.Count number of occurrences of a character in the string.
iv. Replace all occurrences of a character by another.
Create a structure student (roll number, name, marks of 3 subjects, percentage). Accept details of n students and write a menu driven program to perform the following operations. Write separate functions for the different options.
iii) Display all student details
iv) Display all student having percentage > _____
v) Display student having maximum percentage