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. i) Search ii) Modify iii) Display all student details iv) Display all student having percentage > _____ v) Display student having maximum percentage
Create a structure employee (id, name, salary). Accept details of n employees and write a menu driven program to perform the following operations. Write separate functions for the different options. i) Search by name ii) Search by id iii) Display all iv) Display all employees having salary > _____ vi) Display employee having maximum salary
Write a program which accepts a string and an integer (0 or 1) as command line arguments. If the integer entered is 0, sort the string alphabetically in the ascending order and if it is 1, sort it in the descending order. If the user enters invalid number of arguments, display appropriate message. (Hint â€“ use atoi)