Write a C program (unix) to demonstrate passing parameters to the main function. This project will test your ability to create related functions to perform parts of the same task. In addition it will expand the parameter passing concepts to now include the main function. NOTE: Do not use any screen clear or other cursor manipulation calls in your code. Do no prompt the user or read any input from the keyboard. It is absolutely imperative that the following be used in the code. MUST use: void main(int argc, char **argv); int hexnum(char *s); int hexdigit(char c); void usage(int c); A POW function must also be used to determine conversion.!! Given: A hexadecimal number passed on the command line. You will need: A function to convert individual hex digits (ie, hexdigit). A function to convert the whole number (ie, hexnum). A function to display errors and exit (ie, usage). Perform the following: (In no particular order) 1) Check for the appropriate number of parameters (too many or not enough). If not, display error message. Use MAIN to determine this (counts arguments). 2) Convert the hex number to decimal: Please use SWITCH STATEMENTS with hexdigit to perform this. 3) Trap for bad hex digits. Is it a valid hexidecimal digit? If not, display error message. Use hexnum (default -1) to determine. 4) Display the original number and its converted value or error. 5) Please clearly comment the code. Thank you.
## Deliverables
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
## Deadline information
As soon as possible