Question: Write a C program that reads a string then asks the user to enter two characters (x and VD. The program replaces in the string


Write a C program that reads a string then asks the user to enter two characters (x and VD. The program replaces in the string by Example Output Enter your sentence: Hello to c programming Enter the character you want to replace: o Replace o by: K The string after replacement: HellK tk c prkgramming Rubrics 2 point(s): Correct implementation of replacement. 4 point(s): Using gets and scanf. 2 point(s): Correct output. 2 point(s): No syntax errors. . Create a function called Firstupper with return type void that takes a string as parameter. The function converts the first letter for each word in the string to upper case and the remaining letters to lower case. Your main function should read in the string and then call the function (Firstupper) to do the conversion. You must then print the output from maino Example Output Enter your sentence: capitalize only the FIRST letter for each word in string. The string after conversion: Capitalize only the First Letter For Each word in String. Rubrics 4 point(s): Correct implementation of Firstupper. 2 point(s): Using gets.. 2 point(s): Correct output. 2 point(s): No syntax errors. Write a C program that finds the minimum and maximum elements in an integer array with 10 elements. Use a pointer to read in and print the elements of the array and to find the minimum and maximum elements in the array. Print the value of the minimum element, the value of the maximum element, the indexes of the minimum and maximum elements, and their addresses in memory. Example Output Enter 10 elements: 7.5 8 9 3 44 5 0 7 5 You Entered: 75 8.9 344 5 0 7 5 The min is 0. found in the index 7, in the address 0061FEC8 The max is 44. found in the index 5, in the address 0061FECO Rubrics 4 point(s): Using pointers. 2 point(s): Using scanf(). 2 point(s): Correct output. 2 point(s): No syntax errors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
