Homework 2 COP 3223C Introduction to Programming with C, Section 0106 Spring 2021 1 DESCRIPTION For this assignment you will be working with numeric types, functions, and arrays. You will write three functions named IsDecimalInteger, GetSortingOrder, and RemoveExtraSpaces. All three functions should be in a single C source file named homework2.c. The descriptions of each function are listed below in the Function Requirements Section. Feel free to implement additional "helper" functions as you see fit. 2 DELIVERABLES A single source file named homework.cmust be submitted to Webcourses by the assignment deadline (posted in Webcourses) 3 GRADING RUBRIC Uses correct filename (See Deliverables) Includes appropriate header comment (See Style Requirements) Uses tasteful comments (See Style Requirements) Follows all style requirements (See Style Requirements) Required functions work correctly and produce correct output (See Function Requirements) 5 pts 5 pts 10 pts 20 pts 60 pts Total 100 pts 4 SUPER IMPORTANT INFORMATION Sharing code or posting assignment details in public places will be considered academic dishonesty and will result in an automatic O grade for this assignment. Feel free to have high level discussions about the assignment and your solution with your classmates. In general. discussions about the assignment are encouraged if they are only with students actively enrolled in this course and do not include any sharing of code. Copying source code from the internet or other sources other than your own brain will be considered academic dishonesty and will result in an automatic Ograde for this assignment Your source file must be named correctly to receive full credit. See Deliverables for the required filename. If you submit your file multiple times to Webcourses an additional "n" will be added to the end of the filename (example: homework.c, homeworki-1.c, homework1-2.c, etc.). Files with this suffix will also be accepted. Your source file must contain the exact method signatures listed in Function Requirements to receive full credit Your source file must compile and run to receive credit. Submissions that do not compile will receive an automatic 0 grade. Submissions that print extra information to the console will not receive full credit. Your submission should only produce console output if specifically requested in Function Requirements. Page 2 of 6 5 FUNCTION REQUIREMENTS The source file you submit should contain the following functions. Please note that these functions are useful tools, which are not a part of the Standard Library. Being developed well, you can use them in real-world projects. _Bool IsDecimalInteger (char str()); Description: The function takes a string (character array) and checks if it is a valid decimal representation of an integer number. Please note that using functions like atoi (-) from the Standard Library is not really helpful here since the actual (mathematical) integer number might be larger than the maximum possible value of the type unsigned long long int. Your function must not have any restriction on the integer values (the length of the string representation). If str represents an integer, the function must return 1. Otherwise return o. Examples: Return value *23510 -2319" Ofextra spaces in front) "2319" 1 *25g17" Onon-digit inside) 200-50 O(the function does not compute expressions, it simply checks if str represents an integer number or not) O fempty string) 1 *570.11" O(this is a decimal representation of a real number, but not an integer number) str 1 char GetSortingorder (double arr[], size_t arr_size); Description: The function checks if the array arr (whose elements are of type double) is sorted (elements come in non-decreasing order: if 21// Homework 1 homework.c 31//