Homework 5 ---------- Program 1 1. Create a 16 kbyte buffer using a char array. 2. Read a file name from the command line. 3. Open the file you read from the command line using the Linux open() call. 4. Use the Linux read() syscall to read the entire contents of the file into your buffer 5. close() the file. 6. Iterate through every character in the buffer, converting all characters to uppercase. You can use the toupper() function for this. 7. open() the same file again, this time for writing. 8. Write the converted buffer back to the file. 9. close() the file. Program 2 Implement a state machine that strips single-line comments from a C file. Your program should read in a file (from a filename specified on the command line). Use the same procedure as above to read the file's contents into a buffer (steps 1-5 above). Parse the buffer character-by-character to identify comments. For the characters that are not comments can be printed out to the terminal using printf() or putchar(). The characters that are comments should not be printed out to the terminal. Your program should print out the contents of the C file except for the single-line comments.