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.

}

### Code Documentation Template

Below is a template for documenting your code, which can help in providing a detailed and structured explanation of your project and the problem it solves. This template is particularly useful for educational purposes, ensuring clarity and understanding for those reviewing your code.

```
/***********************************************
*                                               
*  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> 
*                                               
************************************************/
```

### Detailed Explanation of Each Section

1. **Header Section**:
   - **Project**: Indicate the name of the project or assignment.
   - **File**: Specify the name of the source code file.
   - **Date**: Provide the date when the file was created.

2. **Description Section**:
   - This part requires a narrative description of the code (not the code itself). Include answers to the following:
     - **Purpose**: Explain the purpose of the code and the specific problem it aims to solve.
     - **Techniques Used**: Describe the algorithms, techniques, and data structures used in the implementation.

3. **Code Changes Section**:
   - Document any modifications to the code with a brief description and the date of each change. This helps in tracking the evolution of the project over time.

---

This template should be filled out accurately to improve code readability, maintainability, and ease of collaboration among team members.
Transcribed Image Text:### Code Documentation Template Below is a template for documenting your code, which can help in providing a detailed and structured explanation of your project and the problem it solves. This template is particularly useful for educational purposes, ensuring clarity and understanding for those reviewing your code. ``` /*********************************************** * * 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> * ************************************************/ ``` ### Detailed Explanation of Each Section 1. **Header Section**: - **Project**: Indicate the name of the project or assignment. - **File**: Specify the name of the source code file. - **Date**: Provide the date when the file was created. 2. **Description Section**: - This part requires a narrative description of the code (not the code itself). Include answers to the following: - **Purpose**: Explain the purpose of the code and the specific problem it aims to solve. - **Techniques Used**: Describe the algorithms, techniques, and data structures used in the implementation. 3. **Code Changes Section**: - Document any modifications to the code with a brief description and the date of each change. This helps in tracking the evolution of the project over time. --- This template should be filled out accurately to improve code readability, maintainability, and ease of collaboration among team members.
Expert Solution
steps

Step by step

Solved in 5 steps with 3 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