Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribedimage text in transcribed

Also the codes should look like here please Thankyou

image text in transcribed

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" #include #include char * Reverse(char * str) {} int CharFreq(char* str, char ch){} int UpperCase(char * str){} Stringops. char * Reverse(char *); String.c #include #include #include #include "stringops.h" void Palindrome (char * str){} void 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; }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

1. Understand how verbal and nonverbal communication differ.

Answered: 1 week ago