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. }

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter10: Application Development
Section: Chapter Questions
Problem 3VE
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning