| |||
| Assignments
Revised: | |||
|---|---|---|---|
| Assignment Number |
Assignment | Date Due | Points |
| 1 | Write a C Program that prints an ASCII table for the characters valued 32 to 127. The character along with its integer value should be printed in decimal octal and hex. | 2/10 | 20 |
| 2 | Implement the CGI library (mycgilib.c) covered in class on 2/9. The source files (.c and .h )are to be in a subdirectory (folder) of you home directory CGI. | 2/16 | 20 |
| 3 | Use the CGI library (mycgilib.c) to write a Farenheight to Celcius cgi program. The program should produce output in two columns with headers for the columns. | 2/18 | 20 |
| Info | See some notes on CGI and preprocessor in cginotes.htm | 2/18 | 20 |
| 4 |
Write the Lotto program as covered and discussed in class.
The program must have the following functions:
| 3/11 | 40 |
| 5 |
Write a procedure called:
void sort(int list[], int size)while the size of the list is greater than 1 find the largest element in the list swap that element with the last element in the list decrease the size of the list by 1The function must make use of a function you wrote in assignment 6. The following program is to be used as the main program and submitted with the assignment #include <stdio.h>
main()
{
int numbers[] = {3,4,0,1,15,6,4,35,14,7,42,2};
int listsize;
listsize= ( sizeof numbers )/ sizeof(numbers[0]);
printf("The original list is: ");
printnums(numbers,listsize);
sort(numbers,listsize);
printf("The sorted list is: ");
printnums(numbers,listsize);
return 0;
}
| 3/11 | 20 |
| 6 | Implement the sort() routine into the lotto program. | 3/11 | 20 |