Question: use these: 1) Description: In this assignment, you will write a program that consists of multiple C files. The first C file (stringops.c) will contain

 use these: 1) Description: In this assignment, you will write a

use these:

program that consists of multiple C files. The first C file (stringops.c)

will contain some basic string operations as functions and the second C

1) Description: In this assignment, you will write a program that consists of multiple C files. The first C file (stringops.c) will contain some basic string operations as functions and the second C file (string.c) will contain some complex string operations as functions. Your main C file (main.c) will contain only a main function. Stringops.c file will provide these operations: char * Reverse (char* str): Reverses the given string str (e.g., "abc" to "cba") int UpperCase(char* str): Returns 1 if all chars in the given string are all uppercase int CharFreq(char* str, char ch): Returns the number of occurrences of character ch in the string str String.c file will provide these operations: void Palindrome(char* str): Prints whether the given string str is a palindrome or not int UpperCaseFreq(char* str): Returns the number of frequencies of all uppercase letters in the given string str The main function in Main.c will: first, read a string from the user and display whether it is a palindrome or not second, read a string from the user and if the string is all in uppercase then returns the number of occurrences of all uppercase letters in that string You will also write a makefile to create an executable named "string" from these multiple C files. The make file should also contain a target named "clean" for removing all object files. II) Usage: make /string Enter a string to check whether it is a palindrome(First Step) jhgghj The reverse of jhgghj is jhgghj The string jhgghj is a palindrome Enter a string to check its content (Second Step) JDHYR The frequency of Ain JDHYR is O The frequency of B in JDHYR is 0 The frequency of C in JDHYR is 0 The frequency of D in JDHYR is 1 The frequency of Ein JDHYR is 0 The frequency of F in JDHYR is 0 The frequency of G in JDHYR is 0 The frequency of H in JDHYR is 1 The frequency of l in JDHYR is O The frequency of Jin JDHYR is 1 The frequency of K in JDHYR is 0 The frequency of L in JDHYR is 0 The frequency of Min JDHYR is 0 The frequency of N in JDHYR is O The frequency of O in JDHYR is 0 The frequency of P in JDHYR is 0 The frequency of Q in JDHYR is O The frequency of R in JDHYR is 1 The frequency of Sin JDHYR is 0 The frequency of T in JDHYR is 0 The frequency of U in JDHYR is 0 The frequency of Vin JDHYR is 0 The frequency of Win JDHYR is 0 The frequency of Xin JDHYR is 0 The frequency of Yin JDHYR is 1 Syringops.c #include "stringops.h" #include #include char * Reverse(char * str) {} int CharFreq(char * str, char ch){} int UpperCase(char * str){} I Stringops.h char * Reverse(char *); Stringops.h char * Reverse(char *); I String.c void Palindrome(char * str){} int UpperCaseFreq(char* str){} String.h Main.c #include #include #include "string.h" int main() { char str[100],ch; printf("Enter a string to check whether it is a palindrome "); scanf("%s", str); Palindrome (str); printf("Enter a string to check its content "); scanf("%s", str); UpperCaseFreq(str); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!