1. Write a program to compute the roots of a quadratic equation ax2 + bx + c = 0, where a, b, and c are real numbers. Structure your program as described below. A. The input file is named input_equations.txt which contains the three coefficients of an equation in each line as below: 1.0 -3.0 2.0 1 0 -4.84 1 0 1 You may create more inputs if you need. B. Write a function compute_roots that has five parameters: a : Coefficient of x2 b : Coefficient of x c : constant term *root1 : pointer to a double type variable *root2 : pointer to a double type variable The function updates the memory locations pointed to by root1 and root2 with the two roots of the quadratic equation, if they have real-valued roots. If the roots are complex, then the memory locations are left unchanged. The function returns a value 1 if the roots are real-valued, otherwise returns 0. C. Write the main function which reads the equations from the input file, one at a time, computes the roots using the function compute_roots. The output for every equation is written into the output file as below: 1 -3 2 root1 = 1 root2 = 2 1 0 -4.84 root1 = -2.2 root2 = 2.2 1 0 1 The roots are complex D. Call your program quadratic-roots.c and the output file as roots.txt. 2. The file "original.txt" contains integer numbers in them. You are required to create another file, named "encoded.txt", from the original file. Write a program "encoding.c" that reads every integer from the "original.txt" file and writes the integer and the sum of the digits of the integer to the "encoded.txt" file. The "encoded.txt" contains twice the number of integers compared to the "original.txt" file. The contents of a sample "original.txt" and "encoded.txt" files are shown below. original.txt file contents 1234 3527 9882 83421 23421 Corresponding encoded.txt file 1234 10 3527 17 9882 27 83421 18 23421 12