Question: 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

 1) Description: In this assignment, you will write a program that

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

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!