Hello. Please answer the following C programming question correctly by fulfilling all of the directions. Please do not use very advanced syntax to solve the problem and do not use string.h and all functions in this library.  Also, please create a complete file header based on the file header style picture.  *If correctly fulfill and answer all of the directions correctly, I will give you a thumbs up. Thanks. —------------------------------------------------------------------------------------------------------------------ Question - Instructions: ** For the following question and its steps, do not use string.h and all functions in this library.  Step 1. Write a function to reverse a string. Function name: reverse_str Return type: void Parameter list: a pointer to a char Please don’t print the array backward. Don’t use another array to make the string reversed. You should reverse the string in place. Function Description: This function reverses a string by swapping the first character by the last character of the string and continuing with the second character and one character to the last and so on. Make sure don't repeat this procedure up to the size of the string. Otherwise, you will get the same string. To make sure your function works well don't try palindrome strings like RACECAR. Step 2. Write a function to find the size of a string. Function name: size_str Return type: int Parameter list: a pointer to a char. Function Description: Each string has a '\0' or null character(ASCII code of 0) at the end. You can use this property to find the size of a string.  Step 3: Write the main function, define a string and call reverse_str to reverse the string and determine if the string is a palindrome or not? Main Function Sample: #include int main() {     char str[] = "Your String";     int size;     size = size_str(str)       //print the size of str   reverse_str(str);   //print the reverse of str     return 0; } void reverse_str(char *str) {    //Code it. } int size_str(char *str) {     //Code it. }

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Hello. Please answer the following C programming question correctly by fulfilling all of the directions. Please do not use very advanced syntax to solve the problem and do not use string.h and all functions in this library.  Also, please create a complete file header based on the file header style picture. 

*If correctly fulfill and answer all of the directions correctly, I will give you a thumbs up. Thanks.

—------------------------------------------------------------------------------------------------------------------

Question - Instructions:

** For the following question and its steps, do not use string.h and all functions in this library. 

Step 1. Write a function to reverse a string.

  • Function name: reverse_str
  • Return type: void
  • Parameter list: a pointer to a char
  • Please don’t print the array backward.
  • Don’t use another array to make the string reversed. You should reverse the string in place.
  • Function Description: This function reverses a string by swapping the first character by the last character of the string and continuing with the second character and one character to the last and so on. Make sure don't repeat this procedure up to the size of the string. Otherwise, you will get the same string. To make sure your function works well don't try palindrome strings like RACECAR.

Step 2. Write a function to find the size of a string.

  • Function name: size_str
  • Return type: int
  • Parameter list: a pointer to a char.
  • Function Description: Each string has a '\0' or null character(ASCII code of 0) at the end. You can use this property to find the size of a string. 

Step 3: Write the main function, define a string and call reverse_str to reverse the string and determine if the string is a palindrome or not?

Main Function Sample:

#include <stdio.h>

int main()
{

    char str[] = "Your String";
    int size;
    size = size_str(str)
      //print the size of str
  reverse_str(str);
  //print the reverse of str
    return 0;
}

void reverse_str(char *str)
{

   //Code it.

}

int size_str(char *str)
{

    //Code it.

}

******** *************
* Project : <Name of project | assignment>
* File
<Name of source code file>
:
* Date
: <Date created>
*
* Description : (Narrative description, not code)
*
1) What is the purpose of the code; what problem does the code solve.
* 2) What algorithms, techniques, etc. are used in implementing the data structures.
*
*
Code Changes: <Description | date of modifications>
********************************************************/
Transcribed Image Text:******** ************* * Project : <Name of project | assignment> * File <Name of source code file> : * Date : <Date created> * * Description : (Narrative description, not code) * 1) What is the purpose of the code; what problem does the code solve. * 2) What algorithms, techniques, etc. are used in implementing the data structures. * * Code Changes: <Description | date of modifications> ********************************************************/
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Introduction to Coding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education