Answered step by step
Verified Expert Solution
Question
1 Approved Answer
As you can understand i need those codes in c Please. If you do correctly ill give you an upvote and my friends too so
As you can understand i need those codes in c Please. If you do correctly ill give you an upvote and my friends too so be quick, please.
Also the codes should look like here please Thankyou
a 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 jugghj The string jugghj is a palindrome a 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 jugghj The string jugghj is a palindrome #include "stringops.h" #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started