Programming: Write the following programs using C language. Each program should date of creation on the top (use comments). Write a clear and properly indented code and use comments properly.
1. Simple if statement program. [5 points]
2. Read from a file and do computation and write the output to a file. [5 points]
3. Write a program that computes the factorial or the power with the use of functions. [5 points]
4. Write a conversion program. (e.g. kilos to pounds, feet to inches, UK pounds to us dollars). The program must have different functions for:
a. input.
b. conversion
c. output [5 points]
5. Write a program that creates a two-dimensional array and prints a specific output. [5 points]
6. An array of Strings (creation, manipulation). [5 points]
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
29 | 30 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 1 | 2 |